diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index 6a58f10fd4f..66b8f4ef60d 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -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)