From 266f1e2acd270dd472a662e146cdfece761430d2 Mon Sep 17 00:00:00 2001 From: Francis Appels Date: Fri, 4 Mar 2016 20:02:03 +0100 Subject: [PATCH] Update commande.class.php subprice should be pu without tax --- htdocs/commande/class/commande.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index 8f8edcf15a3..9ea0a37d479 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -2552,6 +2552,14 @@ class Commande extends CommonOrder // Anciens indicateurs: $price, $subprice, $remise (a ne plus utiliser) $price = $pu; + if ($price_base_type == 'TTC') + { + $subprice = $tabprice[5]; + } + else + { + $subprice = $pu; + } $subprice = $pu; $remise = 0; if ($remise_percent > 0)