From 437470c3d98611e75425e1f771b597c10aa05acf Mon Sep 17 00:00:00 2001 From: fappels Date: Mon, 14 Mar 2016 17:27:12 +0100 Subject: [PATCH] subprice should be unit price without tax --- htdocs/commande/class/commande.class.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index 9eb31ebd608..2100f0695a7 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -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) {