- locate any grid, that has a column, where decimal numbers are displayed (e.g. list of products)
- add 'cut_zeros' => 1 option to field definition, that is displayed in that column
- confirm, that (, is thousands separator, . is decimal separator):
- db value 1234.05 is shown as 1,234.05
- db value 1234.00 is shown as 1,234
- db value 1230 is shown as 1,230
- db value 1234.50 is shown as 1234.5 (this wasn't working before)
Details
Details
- Reviewers
glebs - Commits
- rINP16198: Fixes INP-1417 - Cut trailing zeros properly
Diff Detail
Diff Detail
- Repository
- rINP In-Portal
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.