Update shipment.php
This commit is contained in:
parent
4208964153
commit
cb84eef6dc
@ -768,7 +768,7 @@ if ($id > 0 || !empty($ref)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Qty ordered
|
// Qty ordered
|
||||||
print '<td class="center">'.$objp->qty.' '.$objp->unit_order.'</td>';
|
print '<td class="center">'.$objp->qty.($objp->unit_order ? ' '.$objp->unit_order : '').'</td>';
|
||||||
|
|
||||||
// Qty already shipped
|
// Qty already shipped
|
||||||
$qtyProdCom = $objp->qty;
|
$qtyProdCom = $objp->qty;
|
||||||
@ -776,7 +776,7 @@ if ($id > 0 || !empty($ref)) {
|
|||||||
// Nb of sending products for this line of order
|
// Nb of sending products for this line of order
|
||||||
$qtyAlreadyShipped = (!empty($object->expeditions[$objp->rowid]) ? $object->expeditions[$objp->rowid] : 0);
|
$qtyAlreadyShipped = (!empty($object->expeditions[$objp->rowid]) ? $object->expeditions[$objp->rowid] : 0);
|
||||||
print $qtyAlreadyShipped;
|
print $qtyAlreadyShipped;
|
||||||
print ' '.$objp->unit_order.'</td>';
|
print ($objp->unit_order ? ' '.$objp->unit_order : '').'</td>';
|
||||||
|
|
||||||
// Qty remains to ship
|
// Qty remains to ship
|
||||||
print '<td class="center">';
|
print '<td class="center">';
|
||||||
@ -787,7 +787,7 @@ if ($id > 0 || !empty($ref)) {
|
|||||||
} else {
|
} else {
|
||||||
print '0 ('.$langs->trans("Service").')';
|
print '0 ('.$langs->trans("Service").')';
|
||||||
}
|
}
|
||||||
print ' '.$objp->unit_order.'</td>';
|
print ($objp->unit_order ? ' '.$objp->unit_order : '').'</td>';
|
||||||
|
|
||||||
if ($objp->fk_product > 0) {
|
if ($objp->fk_product > 0) {
|
||||||
$product = new Product($db);
|
$product = new Product($db);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user