47 print
"Error, template page can't be called as URL";
51'@phan-var-force CommonObject $this
52 @phan-var-force CommonObject $object';
55if (empty($filtertype)) {
59print
"<!-- BEGIN PHP TEMPLATE bom/tpl/objectline_title.tpl.php -->\n";
65print
'<tr class="liste_titre nodrag nodrop">';
69 print
'<td class="linecolnum center"> </td>';
73print
'<td class="linecoldescription bomline">'.$langs->trans(
'Description');
75 print
' <a id="show_all" href="#">'.img_picto(
'',
'folder-open',
'class="paddingright"').$langs->trans(
"ExpandAll").
'</a> ';
76 print
'<a id="hide_all" href="#">'.img_picto(
'',
'folder',
'class="paddingright"').$langs->trans(
"UndoExpandAll").
'</a> ';
81print
'<td class="linecolqty width100 right">'.$form->textwithpicto($langs->trans(
'Qty'), ($filtertype != 1) ? $langs->trans(
"QtyRequiredIfNoLoss") :
'').
'</td>';
83if ($filtertype != 1) {
85 print
'<td class="linecoluseunit"></td>';
88 print
'<td class="linecolunit"></td>';
92 print
'<td class="linecolqtyfrozen right">' . $form->textwithpicto($langs->trans(
'QtyFrozen'), $langs->trans(
"QuantityConsumedInvariable")) .
'</td>';
95 print
'<td class="linecoldisablestockchange right">' . $form->textwithpicto($langs->trans(
'DisableStockChange'), $langs->trans(
'DisableStockChangeHelp')) .
'</td>';
98 print
'<td class="linecolefficiency right">' . $form->textwithpicto($langs->trans(
'ManufacturingEfficiency'), $langs->trans(
'ValueOfMeansLoss')) .
'</td>';
102if ($filtertype == 1 && isModEnabled(
'workstation')) {
104 if (isModEnabled(
'workstation')) {
105 print
'<td class="linecolworkstation">' .img_picto(
'',
'workstation',
'class="pictofixedwidth"'). $form->textwithpicto($langs->trans(
'DefaultWorkstation'),
'') .
'</td>';
110print
'<td class="linecolcost right">'.$form->textwithpicto($langs->trans(
"TotalCost"), $langs->trans(
"BOMTotalCost")).
'</td>';
112print
'<td class="linecoledit" style="width: 10px"></td>';
114print
'<td class="linecoldelete" style="width: 10px"></td>';
116print
'<td class="linecolmove" style="width: 10px"></td>';
118if ($action ==
'selectlines') {
119 print
'<td class="linecolcheckall center">';
120 print
'<input type="checkbox" class="linecheckboxtoggle" />';
121 print
'<script>$(document).ready(function() {$(".linecheckboxtoggle").click(function() {var checkBoxes = $(".linecheckbox");checkBoxes.prop("checked", this.checked);})});</script>';
128print
"<!-- 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.