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
If a shipment is created where the quantity contains a decimal point (eg 18.55), after creating the shipment, the quantity is rounded up or rounded down to a whole number.
As of version 19.0.2, this decimal value would be retained but as of 20.0.2, it is not.
This can be fixed by editing the value after creation, after which the decimal point is maintained.
Dolibarr Version
20.0.2
Environment PHP
8.1.2
Environment Database
MYSQL 8.1.2
Steps to reproduce the behavior and expected behavior
Create a shipment and enter a quantity containing a decimal point in "Qty to ship" (eg 18.22) and click Create
The value is then rounded down to 18
To correct this, we need to edit the shipment back to 18.22 and save.
The value is then retained.
The value should not be rounded up or down as we ship our products as square meters.
This was not an issue with 19.0.2
Attached files
No response
The text was updated successfully, but these errors were encountered:
bosss7
changed the title
Create shipment rounds up values instead of maintaining decimal points
Create shipment rounds decimal values up or down, instead of maintaining decimal points
Dec 23, 2024
Bug
If a shipment is created where the quantity contains a decimal point (eg 18.55), after creating the shipment, the quantity is rounded up or rounded down to a whole number.
As of version 19.0.2, this decimal value would be retained but as of 20.0.2, it is not.
This can be fixed by editing the value after creation, after which the decimal point is maintained.
Dolibarr Version
20.0.2
Environment PHP
8.1.2
Environment Database
MYSQL 8.1.2
Steps to reproduce the behavior and expected behavior
Create a shipment and enter a quantity containing a decimal point in "Qty to ship" (eg 18.22) and click Create
The value is then rounded down to 18
To correct this, we need to edit the shipment back to 18.22 and save.
The value is then retained.
The value should not be rounded up or down as we ship our products as square meters.
This was not an issue with 19.0.2
Attached files
No response
The text was updated successfully, but these errors were encountered: