37 if (empty($object) || !is_object($object)) {
38 print
"Error, template page can't be called as URL";
43 if (empty($filtertype)) $filtertype = 0;
45 print
"<!-- BEGIN PHP TEMPLATE objectline_title.tpl.php -->\n";
51 print
'<tr class="liste_titre nodrag nodrop">';
54 if (!empty($conf->global->MAIN_VIEW_LINE_NUMBER)) {
55 print
'<td class="linecolnum center"> </td>';
59 print
'<td class="linecoldescription">'.$langs->trans(
'Description');
60 if (!empty($conf->global->BOM_SUB_BOM) && $filtertype != 1) {
61 print
' <a id="show_all" href="#">'.img_picto(
'',
'folder-open',
'class="paddingright"').$langs->trans(
"ExpandAll").
'</a> ';
62 print
'<a id="hide_all" href="#">'.img_picto(
'',
'folder',
'class="paddingright"').$langs->trans(
"UndoExpandAll").
'</a> ';
67 print
'<td class="linecolqty right">'.$form->textwithpicto($langs->trans(
'Qty'), ($filtertype != 1) ? $langs->trans(
"QtyRequiredIfNoLoss") :
'').
'</td>';
69 if ($filtertype != 1) {
71 print
'<td class="linecoluseunit left">' . $langs->trans(
'Unit') .
'</td>';
75 print
'<td class="linecolqtyfrozen right">' .
$form->textwithpicto($langs->trans(
'QtyFrozen'), $langs->trans(
"QuantityConsumedInvariable")) .
'</td>';
78 print
'<td class="linecoldisablestockchange right">' .
$form->textwithpicto($langs->trans(
'DisableStockChange'), $langs->trans(
'DisableStockChangeHelp')) .
'</td>';
81 print
'<td class="linecolefficiency right">' .
$form->textwithpicto($langs->trans(
'ManufacturingEfficiency'), $langs->trans(
'ValueOfMeansLoss')) .
'</td>';
84 print
'<td class="linecolcost right">'.$form->textwithpicto($langs->trans(
"TotalCost"), $langs->trans(
"BOMTotalCost")).
'</td>';
86 print
'<td class="linecolunit right">' .
$form->textwithpicto($langs->trans(
'Unit'),
'').
'</td>';
88 if (
isModEnabled(
'workstation')) print
'<td class="linecolworkstation right">' .
$form->textwithpicto($langs->trans(
'DefaultWorkstation'),
'') .
'</td>';
91 print
'<td class="linecolcost right">'.$form->textwithpicto($langs->trans(
"TotalCost"), $langs->trans(
"BOMTotalCostService")).
'</td>';
97 print
'<td class="linecoledit"></td>';
99 print
'<td class="linecoldelete" style="width: 10px"></td>';
101 print
'<td class="linecolmove" style="width: 10px"></td>';
103 if ($action ==
'selectlines') {
104 print
'<td class="linecolcheckall center">';
105 print
'<input type="checkbox" class="linecheckboxtoggle" />';
106 print
'<script>$(document).ready(function() {$(".linecheckboxtoggle").click(function() {var checkBoxes = $(".linecheckbox");checkBoxes.prop("checked", this.checked);})});</script>';
113 print
"<!-- END PHP TEMPLATE objectline_title.tpl.php -->\n";
if($cancel &&! $id) if($action=='add' &&! $cancel) if($action=='delete') if($id) $form
Actions.
getDolGlobalInt($key, $default=0)
Return dolibarr global constant int value.
isModEnabled($module)
Is Dolibarr module enabled.