Update shipment.php

This commit is contained in:
Laurent Destailleur 2021-10-06 16:13:02 +02:00 committed by GitHub
parent 4208964153
commit cb84eef6dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -768,7 +768,7 @@ if ($id > 0 || !empty($ref)) {
}
// 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
$qtyProdCom = $objp->qty;
@ -776,7 +776,7 @@ if ($id > 0 || !empty($ref)) {
// Nb of sending products for this line of order
$qtyAlreadyShipped = (!empty($object->expeditions[$objp->rowid]) ? $object->expeditions[$objp->rowid] : 0);
print $qtyAlreadyShipped;
print ' '.$objp->unit_order.'</td>';
print ($objp->unit_order ? ' '.$objp->unit_order : '').'</td>';
// Qty remains to ship
print '<td class="center">';
@ -787,7 +787,7 @@ if ($id > 0 || !empty($ref)) {
} else {
print '0 ('.$langs->trans("Service").')';
}
print ' '.$objp->unit_order.'</td>';
print ($objp->unit_order ? ' '.$objp->unit_order : '').'</td>';
if ($objp->fk_product > 0) {
$product = new Product($db);