Fix: possibility to defined rang with an external module
This commit is contained in:
parent
77aa19f885
commit
b3cf4598fd
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user