Skip to content

Commit

Permalink
Merge pull request #13181 from atm-maxime/8.0
Browse files Browse the repository at this point in the history
Fix #10179 discount split
  • Loading branch information
eldy committed Feb 23, 2020
2 parents 14531bf + 0ab16ed commit 5648205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/comm/remx.php
Expand Up @@ -121,7 +121,7 @@
$newdiscount2->datec=$discount->datec;
$newdiscount1->tva_tx=$discount->tva_tx;
$newdiscount2->tva_tx=$discount->tva_tx;
$newdiscount1->amount_ttc=$_POST["amount_ttc_1"];
$newdiscount1->amount_ttc=$amount_ttc_1;
$newdiscount2->amount_ttc=price2num($discount->amount_ttc-$newdiscount1->amount_ttc);
$newdiscount1->amount_ht=price2num($newdiscount1->amount_ttc/(1+$newdiscount1->tva_tx/100),'MT');
$newdiscount2->amount_ht=price2num($newdiscount2->amount_ttc/(1+$newdiscount2->tva_tx/100),'MT');
Expand Down

0 comments on commit 5648205

Please sign in to comment.