38 print
"Error, template page can't be called as URL";
42'@phan-var-force CommonObject $this
43 @phan-var-force CommonObject $object';
46if (empty($filtertype)) {
50print
"<!-- BEGIN PHP TEMPLATE bom/tpl/objectline_title.tpl.php -->\n";
56print
'<tr class="liste_titre nodrag nodrop">';
60 print
'<td class="linecolnum center"> </td>';
64print
'<td class="linecoldescription bomline">'.$langs->trans(
'Description');
66 print
' <a id="show_all" href="#">'.img_picto(
'',
'folder-open',
'class="paddingright"').$langs->trans(
"ExpandAll").
'</a> ';
67 print
'<a id="hide_all" href="#">'.img_picto(
'',
'folder',
'class="paddingright"').$langs->trans(
"UndoExpandAll").
'</a> ';
72print
'<td class="linecolqty width100 right">'.$form->textwithpicto($langs->trans(
'Qty'), ($filtertype != 1) ? $langs->trans(
"QtyRequiredIfNoLoss") :
'').
'</td>';
74if ($filtertype != 1) {
76 print
'<td class="linecoluseunit"></td>';
79 print
'<td class="linecolunit"></td>';
83 print
'<td class="linecolqtyfrozen right">' . $form->textwithpicto($langs->trans(
'QtyFrozen'), $langs->trans(
"QuantityConsumedInvariable")) .
'</td>';
86 print
'<td class="linecoldisablestockchange right">' . $form->textwithpicto($langs->trans(
'DisableStockChange'), $langs->trans(
'DisableStockChangeHelp')) .
'</td>';
89 print
'<td class="linecolefficiency right">' . $form->textwithpicto($langs->trans(
'ManufacturingEfficiency'), $langs->trans(
'ValueOfMeansLoss')) .
'</td>';
93if ($filtertype == 1 && isModEnabled(
'workstation')) {
95 if (isModEnabled(
'workstation')) {
96 print
'<td class="linecolworkstation">' .img_picto(
'',
'workstation',
'class="pictofixedwidth"'). $form->textwithpicto($langs->trans(
'DefaultWorkstation'),
'') .
'</td>';
101print
'<td class="linecolcost right">'.$form->textwithpicto($langs->trans(
"TotalCost"), $langs->trans(
"BOMTotalCost")).
'</td>';
103print
'<td class="linecoledit" style="width: 10px"></td>';
105print
'<td class="linecoldelete" style="width: 10px"></td>';
107print
'<td class="linecolmove" style="width: 10px"></td>';
109if ($action ==
'selectlines') {
110 print
'<td class="linecolcheckall center">';
111 print
'<input type="checkbox" class="linecheckboxtoggle" />';
112 print
'<script>$(document).ready(function() {$(".linecheckboxtoggle").click(function() {var checkBoxes = $(".linecheckbox");checkBoxes.prop("checked", this.checked);})});</script>';
119print
"<!-- END PHP TEMPLATE objectline_title.tpl.php -->\n";
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.