Merge pull request #4811 from fappels/develop_patch_subprice
Update commande.class, subprice should be unit price without tax
This commit is contained in:
commit
a664aa9a06
@ -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;
|
||||||
$subprice = $pu;
|
if ($price_base_type == 'TTC')
|
||||||
|
{
|
||||||
|
$subprice = $tabprice[5];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$subprice = $pu;
|
||||||
|
}
|
||||||
$remise = 0;
|
$remise = 0;
|
||||||
if ($remise_percent > 0)
|
if ($remise_percent > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user