| ';
@@ -529,7 +556,7 @@ if ($id > 0 || ! empty($ref))
}
// Qty ordered
- print ' | '.$objp->qty.' | ';
+ print '' . ($objp->qty!=1?''.$objp->qty.'':$objp->qty) . ' | ';
// Qty already shipped
$qtyProdCom=$objp->qty;
@@ -677,7 +704,7 @@ if ($id > 0 || ! empty($ref))
print ''.$langs->trans("WarehouseSource").' | ';
print '';
- print $formproduct->selectWarehouses(-1,'entrepot_id','',1);
+ print $formproduct->selectWarehouses(! empty($commande->warehouse_id)?$commande->warehouse_id:-1,'entrepot_id','',1);
if (count($formproduct->cache_warehouses) <= 0)
{
print ' '.$langs->trans("WarehouseSourceNotDefined").' '.$langs->trans("AddOne").'';
|