Merge pull request #22185 from dolibit-ut/patch-555
Update bom_note.php
This commit is contained in:
commit
bdeac7b7ab
@ -17,9 +17,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file bom_note.php
|
* \file htdocs/bom/bom_note.php
|
||||||
* \ingroup bom
|
* \ingroup bom
|
||||||
* \brief Car with notes on BillOfMaterials
|
* \brief Card with notes on BillOfMaterials
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Load Dolibarr environment
|
// Load Dolibarr environment
|
||||||
@ -31,8 +31,8 @@ require_once DOL_DOCUMENT_ROOT.'/bom/lib/bom.lib.php';
|
|||||||
$langs->loadLangs(array("mrp", "companies"));
|
$langs->loadLangs(array("mrp", "companies"));
|
||||||
|
|
||||||
// Get parameters
|
// Get parameters
|
||||||
$id = GETPOST('id', 'int');
|
$id = GETPOST('id', 'int');
|
||||||
$ref = GETPOST('ref', 'alpha');
|
$ref = GETPOST('ref', 'alpha');
|
||||||
$action = GETPOST('action', 'aZ09');
|
$action = GETPOST('action', 'aZ09');
|
||||||
$cancel = GETPOST('cancel', 'aZ09');
|
$cancel = GETPOST('cancel', 'aZ09');
|
||||||
$backtopage = GETPOST('backtopage', 'alpha');
|
$backtopage = GETPOST('backtopage', 'alpha');
|
||||||
@ -40,9 +40,13 @@ $backtopage = GETPOST('backtopage', 'alpha');
|
|||||||
// Initialize technical objects
|
// Initialize technical objects
|
||||||
$object = new BOM($db);
|
$object = new BOM($db);
|
||||||
$extrafields = new ExtraFields($db);
|
$extrafields = new ExtraFields($db);
|
||||||
$diroutputmassaction = $conf->bom->dir_output.'/temp/massgeneration/'.$user->id;
|
|
||||||
|
// Initialize technical objects for hooks
|
||||||
$hookmanager->initHooks(array('bomnote', 'globalcard')); // Note that conf->hooks_modules contains array
|
$hookmanager->initHooks(array('bomnote', 'globalcard')); // Note that conf->hooks_modules contains array
|
||||||
|
|
||||||
|
// Massactions
|
||||||
|
$diroutputmassaction = $conf->bom->dir_output.'/temp/massgeneration/'.$user->id;
|
||||||
|
|
||||||
// Fetch optionals attributes and labels
|
// Fetch optionals attributes and labels
|
||||||
$extrafields->fetch_name_optionals_label($object->table_element);
|
$extrafields->fetch_name_optionals_label($object->table_element);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user