dolibarr/htdocs/compta
vvnt ff75077b34 Fix: bug #6653 situation invoice miscalculation
Bug (#6653)

In price.lib.php (htdocs\core\lib\price.lib.php), the function calcul_price_total() is defined (line 76). The 7th parameter is **$remise_percent_global**.

However, this function is called on facture.class.php (htdocs\compta\facture\class\facture.class.php) and the 7th parameter used is **$line->product_type**. Consequently, invoice situation is correct when user sells a product (product_type = 0) and is wrong when user sells a service (product_type = 1).
Effectively, in the latter case, the total situation invoice will be wrong by 1%.

In order to correct this, we can add 0 as the 7th parameter and move **$line->product_type** to the 10th parameter.
2017-04-08 20:15:14 +02:00
..
bank Merge branch '5.0' of git@github.com:Dolibarr/dolibarr.git into develop 2017-04-08 14:06:25 +02:00
charges Miscellaneous fixes 2016-11-12 12:40:06 +01:00
deplacement Work on 6.0 look and feel 2017-03-31 18:40:53 +02:00
facture Fix: bug #6653 situation invoice miscalculation 2017-04-08 20:15:14 +02:00
journal Fix deprecated value given to dol_print_date 2016-08-25 10:07:19 +02:00
localtax Fix more security fixes 2016-12-18 17:27:06 +01:00
paiement Work on v6 look and feel 2017-04-08 14:03:38 +02:00
payment_sc Fix more security fixes 2016-12-18 17:27:06 +01:00
prelevement Page societe/soc.php and compta/facture.php was renamed into card.php 2017-03-20 21:29:22 +01:00
resultat Fix several bugs 2017-01-22 13:19:07 +01:00
salaries Work on v6 look and feel 2017-04-06 23:28:06 +02:00
sociales Work on 6.0 look and feel 2017-04-01 12:46:47 +02:00
stats Fix margin pagination 2016-12-27 02:01:27 +01:00
tva Work on 6.0 look and feel 2017-04-01 12:46:47 +02:00
ajaxpayment.php
clients.php Fix more security fixes 2016-12-18 17:27:06 +01:00
index.php Start debug the variant module 2017-04-07 11:01:12 +02:00
paiement_charge.php Fix css and look 5.0 2017-01-22 12:13:32 +01:00
paiement.php Page societe/soc.php and compta/facture.php was renamed into card.php 2017-03-20 21:29:22 +01:00
recap-compta.php Fix dol_banner 2017-01-01 19:53:05 +01:00