Enter title name in the 'Title' field (e.g. decimal numbers)
Put a tick in necessary checkbox
Enter decimal number with unlimited number of decimals after the dot in 'Sum' field (e.g. 1.23456789999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)
Click 'Cancel' button
Click 'Edit' icon on any of the rows with existing products
Repeat steps 4-5
Actual result
There is possibility to enter an unlimited number of decimals after the dot
Expected result
There should be a restriction on entering too long decimal numbers
User story and test case links
E.g.: "User story #424
Test case"
В базі даних встановлено обмеження на 2 знаки після коми (t.decimal "sum", precision: 8, scale: 2), тому введені значення при збереженні округлюються до двох знаків після коми. Переміщено в No status.
Environment: Windows 10 Pro 22H2 Google Chrome Version 122.0.6261.112 (Official Build) (64-bit) Reproducible: always
Preconditions
Steps to reproduce
Actual result There is possibility to enter an unlimited number of decimals after the dot
Expected result There should be a restriction on entering too long decimal numbers
User story and test case links E.g.: "User story #424 Test case"
https://github.com/ita-social-projects/ZeroWaste/assets/145603083/65ba09fe-79d2-4742-91dd-db861a142308