Fix: Can add quantity=0 in commercial proposals

This commit is contained in:
Laurent Destailleur 2009-05-27 15:38:03 +00:00
parent b57b5e9e38
commit 3d900a81e5

View File

@ -285,16 +285,7 @@ class Propal extends CommonObject
// Clean parameters
$remise_percent=price2num($remise_percent);
$qty=price2num($qty);
/*
if ($conf->global->PROPALE_USE_OPTION_LINE && !$qty)
{
$qty=0;
}
else if (! $qty)
{
$qty=1;
}
*/
if (empty($qty)) $qty=0; // If qty=''
$pu_ht=price2num($pu_ht);
$pu_ttc=price2num($pu_ttc);
$txtva=price2num($txtva);