Skip to content

Keep six decimal places of a warehouse's and a pickup point's coordinates - #1130

Open
KrzysztofPajak wants to merge 1 commit into
developfrom
fix/coordinates-precision
Open

KrzysztofPajak wants to merge 1 commit into
developfrom
fix/coordinates-precision

Conversation

@KrzysztofPajak

Copy link
Copy Markdown
Member

Type: bugfix

Issue

Latitude and longitude of warehouses and pickup points were edited with the default number field, which renders two decimal places. Every save of the edit page, even without touching them, cut the coordinates to two places: 52.229676 became 52.23, about a kilometre off.

Solution

A DoubleNullableN6 editor template (six decimal places, about ten centimetres), used through [UIHint] on the coordinates of WarehouseModel and PickupPointModel, the way the currency rate already uses DoubleN4. The admin and the store panel share both models.

Breaking changes

None.

Testing

  1. Create a warehouse with latitude 52.229676 and longitude 21.012229, save.
  2. Save the edit page twice more without changes: the coordinates stay 52.229676, 21.012229.
  3. The same for a pickup point.

…ates

Latitude and longitude were edited with the default number field, which shows two decimal places,
so every save of a warehouse or a pickup point cut them to about a kilometre. They now use a
six-place field (about ten centimetres), as the currency rate already uses a four-place one.
Copilot AI balanced review requested due to automatic review settings November 26, 2026 20:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants