[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dolibarr-git] [Dolibarr/dolibarr] 313689: FIX: excl. tax price not prop
From: |
Laurent Destailleur |
Subject: |
[Dolibarr-git] [Dolibarr/dolibarr] 313689: FIX: excl. tax price not properly rounded |
Date: |
Wed, 26 Oct 2016 01:55:53 -0700 |
Branch: refs/heads/develop
Home: https://github.com/Dolibarr/dolibarr
Commit: 3136895dc7d5d883d2d32d6ac1fe86a3d16f1afd
https://github.com/Dolibarr/dolibarr/commit/3136895dc7d5d883d2d32d6ac1fe86a3d16f1afd
Author: bomuux <address@hidden>
Date: 2016-10-26 (Wed, 26 Oct 2016)
Changed paths:
M htdocs/fourn/facture/card.php
Log Message:
-----------
FIX: excl. tax price not properly rounded
When adding a 'free line' product or service in a supplier invoice, the amount
excluding tax (HT) is not properly rounded, in particular when calculated from
full tax price. This leads to inconsistencies in results when using large
quantities or small precision in settings. Test case :
with default settings
MAIN_MAX_DECIMALS_UNIT = 5
MAIN_MAX_DECIMALS_TOT = 2
MAIN_MAX_DECIMALS_SHOWN = 8
Add in a new invoice a free product with 13.33 TTC (full tax), quantity 1,
save, then edit the line with quantity 10111
Now in another invoice, add a free product with 13.33 TTC (full tax), quantity
10111, save.
Exact same data in the two invoices, but Tax and grand total are different, and
false in second case because computed before rounding.
Also removed some direct access to $_POST array.
Commit: ff3a14319add1dc7672ca40c52d21f5991ba806c
https://github.com/Dolibarr/dolibarr/commit/ff3a14319add1dc7672ca40c52d21f5991ba806c
Author: Laurent Destailleur <address@hidden>
Date: 2016-10-26 (Wed, 26 Oct 2016)
Changed paths:
M htdocs/fourn/facture/card.php
Log Message:
-----------
Merge pull request #5928 from bomuux/patch-1
Fix: price not properly rounded, VAT inconsistencies
Compare:
https://github.com/Dolibarr/dolibarr/compare/1216b6f1d8b1...ff3a14319add
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dolibarr-git] [Dolibarr/dolibarr] 313689: FIX: excl. tax price not properly rounded,
Laurent Destailleur <=