20 if (empty($langs) || !is_object($langs))
22 print "Error, template page can't be called as URL";
27 $langs->loadLangs(array(
"main",
"bills",
"banks"));
33 <fieldset
class=
"cadre_facturation"><legend
class=
"titre1"><?php echo $langs->trans(
"Summary"); ?></legend>
35 <table
class=
"table_resume">
37 <tr><td
class=
"resume_label"><?php echo $langs->trans(
"Invoice"); ?></td><td><?php echo $obj_facturation->numInvoice(); ?></td></tr>
38 <tr><td
class=
"resume_label"><?php echo $langs->trans(
"TotalHT"); ?></td><td><?php echo
price(
price2num($obj_facturation->amountWithoutTax(),
'MT'), 0, $langs, 0, 0, -1, $conf->currency); ?></td></tr>
41 if ($obj_facturation->amountVat()) {
42 echo (
'<tr><td class="resume_label">'.$langs->trans(
"VAT").
'</td><td>'.
price(
price2num($obj_facturation->amountVat(),
'MT'), 0, $langs, 0, 0, -1, $conf->currency).
'</td></tr>');
44 echo (
'<tr><td class="resume_label">'.$langs->trans(
"VAT").
'</td><td>'.$langs->trans(
"NoVAT").
'</td></tr>');
47 <tr><td
class=
"resume_label"><?php echo $langs->trans(
"TotalTTC"); ?> </td><td><?php echo
price(
price2num($obj_facturation->amountWithTax(),
'MT'), 0, $langs, 0, 0, -1, $conf->currency); ?></td></tr>
48 <tr><td
class=
"resume_label"><?php echo $langs->trans(
"PaymentMode"); ?> </td><td>
50 switch ($obj_facturation->getSetPaymentMode())
53 echo $langs->trans(
"Cash");
54 $filtre =
'courant=2';
55 if (!empty($_SESSION[
"CASHDESK_ID_BANKACCOUNT_CASH"]))
56 $selected = $_SESSION[
"CASHDESK_ID_BANKACCOUNT_CASH"];
59 echo $langs->trans(
"CreditCard");
60 $filtre =
'courant=1';
61 if (!empty($_SESSION[
"CASHDESK_ID_BANKACCOUNT_CB"]))
62 $selected = $_SESSION[
"CASHDESK_ID_BANKACCOUNT_CB"];
65 echo $langs->trans(
"Cheque");
66 $filtre =
'courant=1';
67 if (!empty($_SESSION[
"CASHDESK_ID_BANKACCOUNT_CHEQUE"]))
68 $selected = $_SESSION[
"CASHDESK_ID_BANKACCOUNT_CHEQUE"];
71 echo $langs->trans(
"Reported");
72 $filtre =
'courant=1 OR courant=2';
76 $filtre =
'courant=1 OR courant=2';
85 if ($obj_facturation->getsetPaymentMode() ==
'DIF') {
86 echo (
'<tr><td class="resume_label">'.$langs->trans(
"DateDue").
'</td><td>'.$obj_facturation->paiementLe().
'</td></tr>');
88 echo (
'<tr><td class="resume_label">'.$langs->trans(
"Received").
'</td><td>'.
price(
price2num($obj_facturation->amountCollected(),
'MT'), 0, $langs, 0, 0, -1, $conf->currency).
'</td></tr>');
92 if ($obj_facturation->amountReturned()) {
93 echo (
'<tr><td class="resume_label">'.$langs->trans(
"Change").
'</td><td>'.
price(
price2num($obj_facturation->amountReturned(),
'MT'), 0, $langs, 0, 0, -1, $conf->currency).
'</td></tr>');
100 <form
id=
"frmValidation" class=
"formulaire2" method=
"post" action=
"validation_verif.php?action=validate_invoice">
101 <input
type=
"hidden" name=
"token" value=
"<?php echo newToken(); ?>" />
102 <p
class=
"note_label">
104 echo $langs->trans(
"BankToPay").
"<br>";
105 $form->select_comptes($selected,
'cashdeskbank', 0, $filtre);
108 <p
class=
"note_label"><?php echo $langs->trans(
"Notes"); ?><br><textarea
class=
"textarea_note" name=
"txtaNotes"></textarea></p>
110 <div
class=
"center"><input
class=
"button" type=
"submit" name=
"btnValider" value=
"<?php echo $langs->trans("ValidateInvoice
"); ?>" /><br>
111 <br><a
class=
"lien1" href=
"affIndex.php?menutpl=facturation"><?php echo $langs->trans(
"RestartSelling"); ?></a>
$conf db name
Only used if Module[ID]Name translation string is not found.
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...
price2num($amount, $rounding= '', $option=0)
Function that return a number with universal decimal format (decimal separator is '...
print
Draft customers invoices.
if(preg_match('/crypted:/i', $dolibarr_main_db_pass)||!empty($dolibarr_main_db_encrypted_pass)) $conf db type