FIX: init var at wrong place report incorrect "shippable" flag on draft
order.
This commit is contained in:
parent
f96f8eac85
commit
77fcbd3884
@ -429,15 +429,15 @@ if ($resql)
|
|||||||
// Show shippable Icon (create subloop, so may be slow)
|
// Show shippable Icon (create subloop, so may be slow)
|
||||||
if ($conf->stock->enabled)
|
if ($conf->stock->enabled)
|
||||||
{
|
{
|
||||||
|
$notshippable=0;
|
||||||
|
$warning = 0;
|
||||||
|
$text_info='';
|
||||||
|
$text_warning='';
|
||||||
|
$nbprod=0;
|
||||||
|
|
||||||
$langs->load("stocks");
|
$langs->load("stocks");
|
||||||
if (($objp->fk_statut > 0) && ($objp->fk_statut < 3))
|
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
|
$numlines = count($generic_commande->lines); // Loop on each line of order
|
||||||
for ($lig=0; $lig < $numlines; $lig++)
|
for ($lig=0; $lig < $numlines; $lig++)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user