You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to restrict fraction digit number of some BigDecimal entity field so we annotate it with @Digits and @NumberFormat.
When we enter non-valid value in DataGrid editor the value is represented as rounded but validation fails.
What if you set precision and scale in the column definition, e.g. @Column(name = "TEST", precision = 10, scale = 2)? If this is not the case, could you please describe in more detail yours.
Environment
Jmix version: 1.6.2
Bug Description
We want to restrict fraction digit number of some BigDecimal entity field so we annotate it with
@Digits
and@NumberFormat
.When we enter non-valid value in DataGrid editor the value is represented as rounded but validation fails.
Steps To Reproduce
Create an entity with BigDecimal field annotated with @digits and @numberformat
Open an entity instance in DataGrid editor and add incorrect value, for example 123.123
The value is rounded but validation fails:
Current Behavior
Seems like validation checks internal value which is not rounded. That's why it fails.
Expected Behavior
Internal value is rounded so validation runs without errors.
The text was updated successfully, but these errors were encountered: