Fix: le niveau de prix du client n'était plus récupéré
Fix: ligne produit non enregistrée si pourcentage de remise null
This commit is contained in:
parent
674935b14d
commit
aed5136806
@ -511,9 +511,9 @@ if ($_POST['action'] == "addligne" && $user->rights->propale->creer)
|
|||||||
// On defini prix unitaire
|
// On defini prix unitaire
|
||||||
if ($conf->global->PRODUIT_MULTIPRICES == 1)
|
if ($conf->global->PRODUIT_MULTIPRICES == 1)
|
||||||
{
|
{
|
||||||
$pu_ht = $prod->multiprices[$fac->client->price_level];
|
$pu_ht = $prod->multiprices[$propal->client->price_level];
|
||||||
$pu_ttc = $prod->multiprices_ttc[$fac->client->price_level];
|
$pu_ttc = $prod->multiprices_ttc[$propal->client->price_level];
|
||||||
$price_base_type = $prod->multiprices_base_type[$fac->client->price_level];
|
$price_base_type = $prod->multiprices_base_type[$propal->client->price_level];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@ -2295,6 +2295,7 @@ class PropaleLigne
|
|||||||
|
|
||||||
// Nettoyage parameteres
|
// Nettoyage parameteres
|
||||||
if (! $this->remise) $this->remise=0;
|
if (! $this->remise) $this->remise=0;
|
||||||
|
if (! $this->remise_percent) $this->remise_percent=0;
|
||||||
|
|
||||||
$rangtouse=$this->rang;
|
$rangtouse=$this->rang;
|
||||||
if ($rangtouse == -1)
|
if ($rangtouse == -1)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user