Update list.php
This commit is contained in:
parent
8b4706cacd
commit
6a1d5edf9d
@ -344,13 +344,14 @@ if ($resql)
|
|||||||
print $generic_commande->getNomUrl(1,($viewstatut != 2?0:$objp->fk_statut));
|
print $generic_commande->getNomUrl(1,($viewstatut != 2?0:$objp->fk_statut));
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
// Shipping Icon
|
// Shippable Icon
|
||||||
if (($objp->fk_statut > 0) && ($objp->fk_statut < 3)) {
|
if (($objp->fk_statut > 0) && ($objp->fk_statut < 3)) {
|
||||||
print '<td>';
|
|
||||||
$notshippable=0;
|
$notshippable=0;
|
||||||
$text_info='';
|
$text_info='';
|
||||||
|
$nbprod=0;
|
||||||
for ($lig=0; $lig<(count($generic_commande->lines)); $lig++) {
|
for ($lig=0; $lig<(count($generic_commande->lines)); $lig++) {
|
||||||
if ($generic_commande->lines[$lig]->product_type==0) {
|
if ($generic_commande->lines[$lig]->product_type==0) {
|
||||||
|
$nbprod++; // order contains real products
|
||||||
$generic_product->id = $generic_commande->lines[$lig]->fk_product;
|
$generic_product->id = $generic_commande->lines[$lig]->fk_product;
|
||||||
$generic_product->load_stock();
|
$generic_product->load_stock();
|
||||||
// stock order and stock order_supplier
|
// stock order and stock order_supplier
|
||||||
@ -388,9 +389,12 @@ if ($resql)
|
|||||||
$text_icon = img_picto('', 'error');
|
$text_icon = img_picto('', 'error');
|
||||||
$text_info = $langs->trans('NonShippable').'<br>'.$text_info;
|
$text_info = $langs->trans('NonShippable').'<br>'.$text_info;
|
||||||
}
|
}
|
||||||
|
if ($nbprod>0) {
|
||||||
|
print '<td>';
|
||||||
print $form->textwithtooltip('',$text_info,2,1,$text_icon,'',2);
|
print $form->textwithtooltip('',$text_info,2,1,$text_icon,'',2);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// warning late icon
|
// warning late icon
|
||||||
print '<td style="min-width: 20px" class="nobordernopadding nowrap">';
|
print '<td style="min-width: 20px" class="nobordernopadding nowrap">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user