Fix label of warehouse no more visible
This commit is contained in:
parent
f26b5b58c9
commit
f57dfd14c3
@ -352,6 +352,7 @@ if (empty($reshook)) {
|
||||
if ($totalqty > 0 && !$error) { // There is at least one thing to ship and no error
|
||||
for ($i = 0; $i < $num; $i++) {
|
||||
$qty = "qtyl".$i;
|
||||
|
||||
if (!isset($batch_line[$i])) {
|
||||
// not batch mode
|
||||
if (isset($stockLine[$i])) {
|
||||
@ -403,7 +404,7 @@ if (empty($reshook)) {
|
||||
}
|
||||
|
||||
if (!$error) {
|
||||
$ret = $object->create($user); // This create shipment (like Odoo picking) and lines of shipments. Stock movement will be done when validating shipment.
|
||||
$ret = $object->create($user); // This create shipment (like Odoo picking) and lines of shipments. Stock movement will be done when validating or closing shipment.
|
||||
if ($ret <= 0) {
|
||||
setEventMessages($object->error, $object->errors, 'errors');
|
||||
$error++;
|
||||
@ -2393,7 +2394,7 @@ if ($action == 'create') {
|
||||
if ($detail_entrepot->entrepot_id > 0) {
|
||||
$entrepot = new Entrepot($db);
|
||||
$entrepot->fetch($detail_entrepot->entrepot_id);
|
||||
$detail .= $langs->trans("DetailWarehouseFormat", $entrepot->libelle, $detail_entrepot->qty_shipped).'<br>';
|
||||
$detail .= $langs->trans("DetailWarehouseFormat", $entrepot->label, $detail_entrepot->qty_shipped).'<br>';
|
||||
}
|
||||
}
|
||||
print $form->textwithtooltip(img_picto('', 'object_stock').' '.$langs->trans("DetailWarehouseNumber"), $detail);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user