Fix: possibility to defined rang with an external module

This commit is contained in:
Regis Houssin 2010-08-19 17:04:43 +00:00
parent 77aa19f885
commit b3cf4598fd

View File

@ -727,6 +727,9 @@ if ($_POST['action'] == "addline" && $user->rights->propale->creer)
$info_bits=0;
if ($tva_npr) $info_bits |= 0x01;
// Rang to use
$rang = (!empty($module->rangtouse)?$module->rangtouse:-1);
if ($prod->price_min && (price2num($pu_ht)*(1-price2num($_POST['remise_percent'])/100) < price2num($prod->price_min)))
{
@ -748,7 +751,8 @@ if ($_POST['action'] == "addline" && $user->rights->propale->creer)
$price_base_type,
$pu_ttc,
$info_bits,
$type
$type,
$rang
);
if ($result > 0)