update of mo_production.php
This commit is contained in:
parent
085b893074
commit
dea7e83360
@ -975,8 +975,10 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
|||||||
}
|
}
|
||||||
$newlinetext = '';
|
$newlinetext = '';
|
||||||
if ($object->status != $object::STATUS_PRODUCED && $object->status != $object::STATUS_CANCELED && $action != 'consumeorproduce' && $action != 'consumeandproduceall') {
|
if ($object->status != $object::STATUS_PRODUCED && $object->status != $object::STATUS_CANCELED && $action != 'consumeorproduce' && $action != 'consumeandproduceall') {
|
||||||
|
if ($nblinetoproduce == 0 || $object->mrptype == 1) {
|
||||||
$newlinetext = '<a href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=addproduceline">'.$langs->trans("AddNewProduceLines").'</a>';
|
$newlinetext = '<a href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=addproduceline">'.$langs->trans("AddNewProduceLines").'</a>';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
print load_fiche_titre($langs->trans('Production'), '', '', 0, '', '', $newlinetext);
|
print load_fiche_titre($langs->trans('Production'), '', '', 0, '', '', $newlinetext);
|
||||||
|
|
||||||
print '<div class="div-table-responsive-no-min">';
|
print '<div class="div-table-responsive-no-min">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user