53@phan-var-force expeditionligne $line
54@phan-var-force int $num
56@phan-var-force CommonObject $this
57@phan-var-force CommonObject $object
62 print
"Error, template page can't be called as URL";
67if (empty($filtertype)) {
72global $forceall, $senderissupplier, $inputalsopricewithtax, $outputalsopricetotalwithtax, $langs;
74if (empty($dateSelector)) {
77if (empty($forceall)) {
83$domData =
' data-element="'.$line->element.
'"';
84$domData .=
' data-id="'.$line->id.
'"';
85$domData .=
' data-qty="'.$line->qty.
'"';
86$domData .=
' data-product_type="'.$line->product_type.
'"';
92print
"<!-- BEGIN PHP TEMPLATE expedition/tpl/objectline_view.tpl.php -->\n";
93print
'<tr id="row-'.$line->id.
'" class="drag drop oddeven" '.$domData.
' >';
97 print
'<td class="linecolnum center">'.($i + 1).
'</td>';
102print
'<td class="linecoldescription line minwidth300imp tdoverflowmax300">';
103print
'<div id="line_'.$line->id.
'"></div>';
106$tmpproduct->fetch($line->fk_product);
108if ($line->fk_product > 0) {
109 print $tmpproduct->getNomUrl(1);
110 print
' - '.$tmpproduct->label;
112 print
' - '.$line->description;
116if (!empty($extrafields)) {
117 $temps = $line->showOptionals($extrafields,
'view', array(),
'',
'',
'1',
'line');
118 if (!empty($temps)) {
119 print
'<div style="padding-top: 10px" id="extrafield_lines_area_'.$line->id.
'" name="extrafield_lines_area_'.$line->id.
'">';
127print
'<td class="linecolqty nowrap right">';
129echo
price($line->qty, 0,
'', 0, 0);
134 print
'<td class="linecoluseunit nowrap">';
138 print $langs->trans($label);
143if ($this->
status == 0 && $user->hasRight(
'expedition',
'write') && $action !=
'selectlines') {
144 print
'<td class="linecoledit center">';
146 if (((
int) $line->info_bits & 2) == 2 || !empty($disableedit)) {
148 print
'<a class="editfielda reposition" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$this->
id.
'&action=editline&token='.
newToken().
'&lineid='.$line->id.
'">'.img_edit().
'</a>';
152 print
'<td class="linecoldelete center">';
155 print
'<a class="reposition" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$this->
id.
'&action=deleteline&token='.
newToken().
'&lineid='.$line->id.
'">';
161 if ($num > 1 &&
$conf->browser->layout !=
'phone' && empty($disablemove)) {
162 print
'<td class="linecolmove tdlineupdown center">';
165 print
'<a class="lineupdown" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$this->
id.
'&action=up&token='.
newToken().
'&rowid='.$line->id.
'">';
166 echo
img_up(
'default', 0,
'imgupforline');
170 print
'<a class="lineupdown" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$this->
id.
'&action=down&token='.
newToken().
'&rowid='.$line->id.
'">';
171 echo
img_down(
'default', 0,
'imgdownforline');
176 print
'<td '.(($conf->browser->layout !=
'phone' && empty($disablemove)) ?
' class="linecolmove tdlineupdown center"' :
' class="linecolmove center"').
'></td>';
180 print
'<td colspan="3"></td>';
184if ($action ==
'selectlines') {
185 print
'<td class="linecolcheck center">';
186 print
'<input type="checkbox" class="linecheckbox" name="line_checkbox['.($i + 1).
']" value="'.$line->id.
'" >';
192print
"<!-- END PHP TEMPLATE objectline_view.tpl.php -->\n";
if(! $sortfield) if(! $sortorder) $object
Class to manage lines of shipment.
Class to manage products or services.
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...
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_down($titlealt='default', $selected=0, $moreclass='')
Show down arrow logo.
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.