26 require
'../main.inc.php';
27 require_once DOL_DOCUMENT_ROOT.
'/bom/class/bom.class.php';
28 require_once DOL_DOCUMENT_ROOT.
'/bom/lib/bom.lib.php';
31 $langs->loadLangs(array(
"mrp",
"companies"));
36 $action =
GETPOST(
'action',
'aZ09');
37 $cancel =
GETPOST(
'cancel',
'aZ09');
38 $backtopage =
GETPOST(
'backtopage',
'alpha');
41 $object =
new BOM($db);
43 $diroutputmassaction = $conf->bom->dir_output.
'/temp/massgeneration/'.$user->id;
44 $hookmanager->initHooks(array(
'bomnote',
'globalcard'));
47 $extrafields->fetch_name_optionals_label($object->table_element);
55 include DOL_DOCUMENT_ROOT.
'/core/actions_fetchobject.inc.php';
56 if ($id > 0 || !empty($ref)) $upload_dir = $conf->bom->multidir_output[$object->entity].
"/".$object->id;
67 include DOL_DOCUMENT_ROOT.
'/core/actions_setnotes.inc.php';
74 $form =
new Form($db);
78 llxHeader(
'', $langs->trans(
'BillOfMaterials'), $help_url);
80 if ($id > 0 || !empty($ref))
82 $object->fetch_thirdparty();
90 $linkback =
'<a href="'.dol_buildpath(
'/bom/bom_list.php', 1).
'?restore_lastsearch_values=1'.(!empty($socid) ?
'&socid='.$socid :
'').
'">'.$langs->trans(
"BackToList").
'</a>';
92 $morehtmlref =
'<div class="refidno">';
132 $morehtmlref .=
'</div>';
135 dol_banner_tab($object,
'ref', $linkback, 1,
'ref',
'ref', $morehtmlref);
138 print '<div class="fichecenter">';
139 print '<div class="underbanner clearboth"></div>';
142 $cssclass =
"titlefield";
143 include DOL_DOCUMENT_ROOT.
'/core/tpl/notes.tpl.php';
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
bomPrepareHead($object)
Prepare array of tabs for BillOfMaterials.
dol_get_fiche_head($links=array(), $active= '', $title= '', $notab=0, $picto= '', $pictoisfullpath=0, $morehtmlright= '', $morecss= '', $limittoshow=0, $moretabssuffix= '')
Show tabs of a record.
print
Draft customers invoices.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
dol_banner_tab($object, $paramid, $morehtml= '', $shownav=1, $fieldid= 'rowid', $fieldref= 'ref', $morehtmlref= '', $moreparam= '', $nodbprefix=0, $morehtmlleft= '', $morehtmlstatus= '', $onlybanner=0, $morehtmlright= '')
Show tab footer of a card.