Skip to content
Snippets Groups Projects
Commit a664aa9a authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #4811 from fappels/develop_patch_subprice

Update commande.class, subprice should be unit price without tax
parents c20124e3 437470c3
No related branches found
No related tags found
No related merge requests found
...@@ -2548,7 +2548,14 @@ class Commande extends CommonOrder ...@@ -2548,7 +2548,14 @@ class Commande extends CommonOrder
// Anciens indicateurs: $price, $subprice, $remise (a ne plus utiliser) // Anciens indicateurs: $price, $subprice, $remise (a ne plus utiliser)
$price = $pu; $price = $pu;
if ($price_base_type == 'TTC')
{
$subprice = $tabprice[5];
}
else
{
$subprice = $pu; $subprice = $pu;
}
$remise = 0; $remise = 0;
if ($remise_percent > 0) if ($remise_percent > 0)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment