jmix
jmix copied to clipboard
BigDecimal field values must be rounded according to field format
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.