52@phan-var-force receptionlinebatch $line
53@phan-var-force int $num
55@phan-var-force CommonObject $this
56@phan-var-force CommonObject $object
61 print
"Error, template page can't be called as URL";
66if (empty($filtertype)) {
71global $forceall, $senderissupplier, $inputalsopricewithtax, $outputalsopricetotalwithtax, $langs;
73if (empty($dateSelector)) {
76if (empty($forceall)) {
82$domData =
' data-element="'.$line->element.
'"';
83$domData .=
' data-id="'.$line->id.
'"';
84$domData .=
' data-qty="'.$line->qty.
'"';
85$domData .=
' data-product_type="'.$line->product_type.
'"';
91print
"<!-- BEGIN PHP TEMPLATE reception/tpl/objectline_view.tpl.php -->\n";
92print
'<tr id="row-'.$line->id.
'" class="drag drop oddeven" '.$domData.
' >';
96 print
'<td class="linecolnum center">'.($i + 1).
'</td>';
101print
'<td class="linecoldescription line minwidth300imp tdoverflowmax300">';
102print
'<div id="line_'.$line->id.
'"></div>';
105$tmpproduct->fetch($line->fk_product);
107if ($line->fk_product > 0) {
108 print $tmpproduct->getNomUrl(1);
109 print
' - '.$tmpproduct->label;
111 print
' - '.$line->description;
116print
'<td class="linecolqty nowrap right">';
118echo
price($line->qty, 0,
'', 0, 0);
123 print
'<td class="linecoluseunit nowrap">';
127 print $langs->trans($label);
132if ($this->
status == 0 && $user->hasRight(
'reception',
'write') && $action !=
'selectlines') {
133 print
'<td class="linecoledit center">';
135 if (((
int) $line->info_bits & 2) == 2 || !empty($disableedit)) {
137 print
'<a class="editfielda reposition" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$this->
id.
'&action=editline&token='.
newToken().
'&lineid='.$line->id.
'">'.
img_edit().
'</a>';
141 print
'<td class="linecoldelete center">';
144 print
'<a class="reposition" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$this->
id.
'&action=deleteline&token='.
newToken().
'&lineid='.$line->id.
'">';
150 if ($num > 1 && $conf->browser->layout !=
'phone' && empty($disablemove)) {
151 print
'<td class="linecolmove tdlineupdown center">';
154 print
'<a class="lineupdown" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$this->
id.
'&action=up&token='.
newToken().
'&rowid='.$line->id.
'">';
155 echo
img_up(
'default', 0,
'imgupforline');
159 print
'<a class="lineupdown" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$this->
id.
'&action=down&token='.
newToken().
'&rowid='.$line->id.
'">';
160 echo
img_down(
'default', 0,
'imgdownforline');
165 print
'<td '.(($conf->browser->layout !=
'phone' && empty($disablemove)) ?
' class="linecolmove tdlineupdown center"' :
' class="linecolmove center"').
'></td>';
169 print
'<td colspan="3"></td>';
173if ($action ==
'selectlines') {
174 print
'<td class="linecolcheck center">';
175 print
'<input type="checkbox" class="linecheckbox" name="line_checkbox['.($i + 1).
']" value="'.$line->id.
'" >';
181print
"<!-- END PHP TEMPLATE objectline_view.tpl.php -->\n";
if(! $sortfield) if(! $sortorder) $object
Class to manage products or services.
Class to manage receptions.
Class to manage table commandefournisseurdispatch.
print $langs trans("Ref").' m titre as m m statut as status
Or an array listing all the potential status of the object: array: int of the status => translated la...
img_delete($titlealt='default', $other='class="pictodelete"', $morecss='')
Show delete logo.
img_down($titlealt='default', $selected=0, $moreclass='')
Show down arrow logo.
price($amount, $form=0, $outlangs='', $trunc=1, $rounding=-1, $forcerounding=-1, $currency_code='')
Function to format a value into an amount for visual output Function used into PDF and HTML pages.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
newToken()
Return the value of token currently saved into session with name 'newtoken'.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
img_edit($titlealt='default', $float=0, $other='')
Show logo edit/modify fiche.
img_up($titlealt='default', $selected=0, $moreclass='')
Show top arrow logo.
measuringUnitString($unitid, $measuring_style='', $unitscale=null, $use_short_label=0, $outputlangs=null)
Return translation label of a unit key.