jmix icon indicating copy to clipboard operation
jmix copied to clipboard

BigDecimal field values must be rounded according to field format

Open gorbunkov opened this issue 2 years ago • 0 comments

Currently if you enter the 123.4567 value to the text field with a decimal type, the displayed value will become 123.46, i.e. it will be rounded. However the model (edited entity attribute) will contain the value that you actually entered (123.4567). So there is a case when you see one value in the UI component and another value is actually stored in the model.

Probably this "rounding" behavior should be implemented inside the datatype and this behavior should be switched off by the feature toggle if necessary.

gorbunkov avatar Aug 23 '22 10:08 gorbunkov