From d74450310d4190b412a9c8804021de586032ab86 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 16 Jun 2006 00:47:08 +0000 Subject: [PATCH] Mise a jour des champ total_ht, total_tva et total_ttc au niveau ligne --- htdocs/propal.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/propal.class.php b/htdocs/propal.class.php index 334370dddf4..20b5c947887 100644 --- a/htdocs/propal.class.php +++ b/htdocs/propal.class.php @@ -190,13 +190,11 @@ class Propal // multiprix if ($conf->global->PRODUIT_MULTIPRICES == 1) { - $price = price2num($prod->multiprices[$this->client->price_level]); - $subprice = price2num($prod->multiprices[$this->client->price_level]); + $pu = price2num($prod->multiprices[$this->client->price_level]); } else { - $price = price2num($prod->price); - $subprice = price2num($prod->price); + $pu = price2num($prod->price); } $txtva = get_default_tva($mysoc,$this->client,$prod->tva_tx); if (! $desc) $desc = $prod->description; @@ -212,6 +210,8 @@ class Propal $total_ttc = $tabprice[2]; // Anciens indicateurs: $price, $subprice, $remise (a ne plus utiliser) + $price = $pu; + $subprice = $pu; $remise = 0; if ($remise_percent > 0) {