Skip to content
Snippets Groups Projects
Commit 5cda28b6 authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: missing remise percent

parent 36c0dbad
No related branches found
No related tags found
No related merge requests found
......@@ -694,7 +694,7 @@ if ($action == 'updateligne' && $user->rights->commande->creer && $_POST['save']
$price_min = $product->price_min;
if ($conf->global->PRODUIT_MULTIPRICES && $object->client->price_level) $price_min = $product->multiprices_min[$object->client->price_level];
}
if ($price_min && GETPOST('productid') && (price2num($up_ht)*(1-price2num($_POST['elremise_percent'])/100) < price2num($price_min)))
if ($price_min && GETPOST('productid') && (price2num($up_ht)*(1-price2num($_POST['remise_percent'])/100) < price2num($price_min)))
{
$mesg = '<div class="error">'.$langs->trans("CantBeLessThanMinPrice",price2num($price_min,'MU').' '.$langs->trans("Currency".$conf->monnaie)).'</div>' ;
$result=-1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment