-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Labels
BugThis is a bug (something does not work as expected)This is a bug (something does not work as expected)Issue Stale (automatic label)This issue is stale because it has been open 1 year with no activity. Remove this label to keep openThis issue is stale because it has been open 1 year with no activity. Remove this label to keep open
Description
Bug
For an invoice we need to truncate the amount by removing decimals. We add a line with price -0.25 and qty 1, and this works.
However, if we do the opposite (0.25 / -1) we get an error message saying "Fields Unit price and Qty can't be both negative" which is incorrect.
v19.0.3
Dolibarr Version
19.0, probably all versions
Environment PHP
No response
Environment Database
No response
Steps to reproduce the behavior and expected behavior
No response
Attached files
No response
Metadata
Metadata
Assignees
Labels
BugThis is a bug (something does not work as expected)This is a bug (something does not work as expected)Issue Stale (automatic label)This issue is stale because it has been open 1 year with no activity. Remove this label to keep openThis issue is stale because it has been open 1 year with no activity. Remove this label to keep open
