subprice should be unit price without tax

This commit is contained in:
fappels
2016-03-14 17:27:12 +01:00
parent c16efe06e8
commit 437470c3d9

View File

@@ -2548,7 +2548,14 @@ class Commande extends CommonOrder
// Anciens indicateurs: $price, $subprice, $remise (a ne plus utiliser)
$price = $pu;
$subprice = $pu;
if ($price_base_type == 'TTC')
{
$subprice = $tabprice[5];
}
else
{
$subprice = $pu;
}
$remise = 0;
if ($remise_percent > 0)
{