From b3cf4598fd4a0994ff70775e0e0bae1c210f1390 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 19 Aug 2010 17:04:43 +0000 Subject: [PATCH] Fix: possibility to defined rang with an external module --- htdocs/comm/propal.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)