FIX: init var at wrong place report incorrect "shippable" flag on draft

order.
This commit is contained in:
Laurent Destailleur 2016-04-27 12:34:52 +02:00
parent f96f8eac85
commit 77fcbd3884

View File

@ -429,15 +429,15 @@ if ($resql)
// Show shippable Icon (create subloop, so may be slow)
if ($conf->stock->enabled)
{
$notshippable=0;
$warning = 0;
$text_info='';
$text_warning='';
$nbprod=0;
$langs->load("stocks");
if (($objp->fk_statut > 0) && ($objp->fk_statut < 3))
{
$notshippable=0;
$warning = 0;
$text_info='';
$text_warning='';
$nbprod=0;
$numlines = count($generic_commande->lines); // Loop on each line of order
for ($lig=0; $lig < $numlines; $lig++)
{