';
+ $morehtmlref = '';
/*
+ $morehtmlref = '
';
// Ref customer
$morehtmlref.=$form->editfieldkey("RefCustomer", 'ref_client', $object->ref_client, $object, 0, 'string', '', 0, 1);
$morehtmlref.=$form->editfieldval("RefCustomer", 'ref_client', $object->ref_client, $object, 0, 'string', '', null, null, '', 1);
@@ -175,9 +176,9 @@ if ($object->id > 0)
$morehtmlref.='';
}
}
- }*/
+ }
$morehtmlref .= '
';
-
+ */
dol_banner_tab($object, 'ref', $linkback, 1, 'ref', 'ref', $morehtmlref);
diff --git a/htdocs/mrp/mo_card.php b/htdocs/mrp/mo_card.php
index baa4c09725f..f22c42140f5 100644
--- a/htdocs/mrp/mo_card.php
+++ b/htdocs/mrp/mo_card.php
@@ -93,10 +93,13 @@ if (GETPOST('fk_bom', 'int'))
{
$objectbom->fetch(GETPOST('fk_bom', 'int'));
- $_POST['fk_product'] = $objectbom->fk_product;
- $_POST['qty'] = $objectbom->qty;
- $_POST['fk_warehouse'] = $objectbom->fk_warehouse;
- $_POST['note_private'] = $objectbom->note_private;
+ if ($action != 'add') {
+ // We force calling parameters if we are not in the submit of creation of MO
+ $_POST['fk_product'] = $objectbom->fk_product;
+ $_POST['qty'] = $objectbom->qty;
+ $_POST['fk_warehouse'] = $objectbom->fk_warehouse;
+ $_POST['note_private'] = $objectbom->note_private;
+ }
}
// Security check - Protection if external user
@@ -279,7 +282,7 @@ if ($action == 'create')
print '
';
if (GETPOST('fk_bom', 'int') > 0) {
- print load_fiche_titre($langs->trans("ToConsume"));
+ print load_fiche_titre($langs->trans("ToConsume").' ('.$langs->trans("ForAQuantityOf1").')');
print '