Fix: Can add quantity=0 in commercial proposals
This commit is contained in:
parent
b57b5e9e38
commit
3d900a81e5
@ -285,16 +285,7 @@ class Propal extends CommonObject
|
|||||||
// Clean parameters
|
// Clean parameters
|
||||||
$remise_percent=price2num($remise_percent);
|
$remise_percent=price2num($remise_percent);
|
||||||
$qty=price2num($qty);
|
$qty=price2num($qty);
|
||||||
/*
|
if (empty($qty)) $qty=0; // If qty=''
|
||||||
if ($conf->global->PROPALE_USE_OPTION_LINE && !$qty)
|
|
||||||
{
|
|
||||||
$qty=0;
|
|
||||||
}
|
|
||||||
else if (! $qty)
|
|
||||||
{
|
|
||||||
$qty=1;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
$pu_ht=price2num($pu_ht);
|
$pu_ht=price2num($pu_ht);
|
||||||
$pu_ttc=price2num($pu_ttc);
|
$pu_ttc=price2num($pu_ttc);
|
||||||
$txtva=price2num($txtva);
|
$txtva=price2num($txtva);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user