Repository navigation
Keep six decimal places of a warehouse's and a pickup point's coordinates - #1130
Open
KrzysztofPajak wants to merge 1 commit into
Open
KrzysztofPajak wants to merge 1 commit into
KrzysztofPajak wants to merge 1 commit into
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
DoubleNullableN6editor template (six decimal places, about ten centimetres), used through[UIHint]on the coordinates ofWarehouseModelandPickupPointModel, the way the currency rate already usesDoubleN4. The admin and the store panel share both models.Breaking changes
None.
Testing
52.229676and longitude21.012229, save.52.229676, 21.012229.