GNU Health - Bugs: bug #62555, Too many decimals error when...
You are not allowed to post comments on this tracker with your current authentication level.
bug #62555: Too many decimals error when generating the invoice with certain discounts
Submitter: | Luis Falcon <meanmicio> | ||
Submitted: | Wed 01 Jun 2022 11:11:15 AM UTC | ||
Category: | Programming / Tracebacks | Severity: | 3 - Normal |
Item Group: | None | Status: | Fixed |
Privacy: | Public | Assigned to: | meanmicio |
Open/Closed: | Closed | Release: | 4.0.0 |
Module: | insurance | Component: | None |
Wed 08 Jun 2022 04:14:54 PM UTC, comment #4: |
Luis Falcon <meanmicio>![]() ![]() |
Tue 07 Jun 2022 08:10:35 PM UTC, comment #3: Thank you, Cedric!
I'll take a look at it tomorrow.
Bests,
|
Luis Falcon <meanmicio>![]() ![]() |
Thu 02 Jun 2022 02:21:17 PM UTC, comment #2: It should use trytond.modules.product.round_price because the number of digits is configurable. |
Cédric Krier <cedk> |
Wed 01 Jun 2022 11:15:39 AM UTC, comment #1: |
Luis Falcon <meanmicio>![]() ![]() |
Wed 01 Jun 2022 11:11:15 AM UTC, original submission:
When applying a discount policy to a product or service, the resulting price might have more than 4 decimals, generating a validation error.
https://matrix-client.matrix.org/_matrix/media/r0/download/matrix.org/qbpFMOBcDbywNYoRRvKxqFfW |
Luis Falcon <meanmicio>![]() ![]() |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Updated on https://hg.savannah.gnu.org/hgweb/health/rev/180cc7a9d84b
We're now using the product decimal numbers from the system configuration.
More information at https://docs.tryton.org/projects/modules-product/en/latest/configuration.html