21 if (empty($conf) || ! is_object($conf))
23 print "Error, template page can't be called as URL";
29 <!-- BEGIN PHP TEMPLATE -->
34 global $noMoreLinkedObjectBlockAfter;
36 $langs = $GLOBALS[
'langs'];
37 $linkedObjectBlock = $GLOBALS[
'linkedObjectBlock'];
39 $langs->load(
"bills");
42 foreach($linkedObjectBlock as $key => $objectlink)
47 if ($ilink == count($linkedObjectBlock) && empty($noMoreLinkedObjectBlockAfter) && count($linkedObjectBlock) <= 1) $trclass.=
' liste_sub_total';
49 <tr
class=
"<?php echo $trclass; ?>" data-element=
"<?php echo $objectlink->element; ?>" data-
id=
"<?php echo $objectlink->id; ?>" >
50 <td
class=
"linkedcol-element"><?php echo $langs->trans(
"CustomerInvoice"); ?></td>
51 <td
class=
"linkedcol-name"><?php echo $objectlink->getNomUrl(1); ?></td>
52 <td
class=
"linkedcol-ref" align=
"center"><?php echo $objectlink->ref_client; ?></td>
53 <td
class=
"linkedcol-date" align=
"center"><?php echo
dol_print_date($objectlink->date,
'day'); ?></td>
54 <td
class=
"linkedcol-amount" align=
"right"><?php
55 if ($user->rights->facture->lire) {
58 if ($objectlink->statut != 3)
60 $total = $total + $sign * $objectlink->total_ht;
61 echo
price($objectlink->total_ht);
65 echo
'<strike>'.price($objectlink->total_ht).
'</strike>';
68 <td
class=
"linkedcol-statut" align=
"right"><?php echo $objectlink->getLibStatut(3); ?></td>
69 <td
class=
"linkedcol-action" align=
"right"><a href=
"<?php echo $_SERVER["PHP_SELF
"].'?id='.$object->id.'&action=dellink&dellinkid='.$key; ?>"><?php echo
img_picto($langs->transnoentitiesnoconv(
"RemoveLink"),
'unlink'); ?></a></td>
73 if (count($linkedObjectBlock) > 1)
76 <tr
class=
"liste_total <?php echo (empty($noMoreLinkedObjectBlockAfter)?'liste_sub_total':''); ?>">
77 <td><?php echo $langs->trans(
"Total"); ?></td>
79 <td align=
"center"></td>
80 <td align=
"center"></td>
81 <td align=
"right"><?php echo
price($total); ?></td>
82 <td align=
"right"></td>
83 <td align=
"right"></td>
89 <!-- END PHP TEMPLATE -->
print
Draft customers invoices.
const TYPE_CREDIT_NOTE
Credit note invoice.
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...
dol_print_date($time, $format='', $tzoutput='tzserver', $outputlangs='', $encodetooutput=false)
Output date in a string format according to outputlangs (or langs if not defined).
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='')
Show picto whatever it's its name (generic function)