Mise a jour des champ total_ht, total_tva et total_ttc au niveau ligne
This commit is contained in:
parent
9db8d71e56
commit
d74450310d
@ -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)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user