diff --git a/htdocs/expedition/shipment.php b/htdocs/expedition/shipment.php
index ad14c11ace3..b8814450030 100644
--- a/htdocs/expedition/shipment.php
+++ b/htdocs/expedition/shipment.php
@@ -768,7 +768,7 @@ if ($id > 0 || !empty($ref)) {
}
// Qty ordered
- print '
'.$objp->qty.' '.$objp->unit_order.' | ';
+ print ''.$objp->qty.($objp->unit_order ? ' '.$objp->unit_order : '').' | ';
// 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.'';
+ print ($objp->unit_order ? ' '.$objp->unit_order : '').'';
// Qty remains to ship
print '';
@@ -787,7 +787,7 @@ if ($id > 0 || !empty($ref)) {
} else {
print '0 ('.$langs->trans("Service").')';
}
- print ' '.$objp->unit_order.' | ';
+ print ($objp->unit_order ? ' '.$objp->unit_order : '').'';
if ($objp->fk_product > 0) {
$product = new Product($db);