GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — informes de compras · InvoiceFlash/InvoiceFlash@3a9f30c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • admin
    • controller/purchase
      • invoice.php
      • purchase_order.php
    • view/template/purchase
      • purchase_invoice_info.tpl
      • purchase_invoice_invoice.tpl
      • purchase_invoice_printPDF.tpl
      • purchase_order_invoice.tpl
      • purchase_order_printPDF.tpl
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎admin/controller/purchase/invoice.php‎

Copy file name to clipboardExpand all lines: admin/controller/purchase/invoice.php
+7-7Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,8 @@ private function getList() {
266266
'separator' => ' :: '
267267
);
268268

269-
$this->data['invoice'] = $this->url->link('purchase/invoice/invoice', 'token=' . $this->session->data['token'], 'SSL');
270-
$this->data['print'] = $this->url->link('purchase/invoice/invoice', 'token=' . $this->session->data['token'], 'SSL');
269+
$this->data['invoice'] = $this->url->link('purchase/invoice/document', 'token=' . $this->session->data['token'], 'SSL');
270+
$this->data['print'] = $this->url->link('purchase/invoice/document', 'token=' . $this->session->data['token'], 'SSL');
271271
$this->data['insert'] = $this->url->link('purchase/invoice/insert', 'token=' . $this->session->data['token'], 'SSL');
272272
$this->data['delete'] = $this->url->link('purchase/invoice/delete', 'token=' . $this->session->data['token'] . $url, 'SSL');
273273

@@ -686,11 +686,11 @@ public function info() {
686686
'separator' => ' :: '
687687
);
688688

689-
$this->data['printPDF'] = $this->url->link('purchase/invoice/invoice', 'token=' . $this->session->data['token'] . '&invoice_id=' . (int)$invoice_id . '&format=pdf', 'SSL');
690-
$this->data['invoice'] = $this->url->link('purchase/invoice/invoice', 'token=' . $this->session->data['token'] . '&invoice_id=' . (int)$invoice_id . '&format=view', 'SSL');
691-
$this->data['sendEmail'] = $this->url->link('purchase/invoice/invoice', 'token=' . $this->session->data['token'] . '&invoice_id=' . (int)$invoice_id . '&format=email', 'SSL');
689+
$this->data['printPDF'] = $this->url->link('purchase/invoice/document', 'token=' . $this->session->data['token'] . '&invoice_id=' . (int)$invoice_id . '&format=pdf', 'SSL');
690+
$this->data['invoice'] = $this->url->link('purchase/invoice/document', 'token=' . $this->session->data['token'] . '&invoice_id=' . (int)$invoice_id . '&format=view', 'SSL');
691+
$this->data['sendEmail'] = $this->url->link('purchase/invoice/document', 'token=' . $this->session->data['token'] . '&invoice_id=' . (int)$invoice_id . '&format=email', 'SSL');
692692
$this->data['cancel'] = $this->url->link('purchase/invoice', 'token=' . $this->session->data['token'] . $url, 'SSL');
693-
$this->data['print'] = $this->url->link('purchase/invoice/invoice', 'token=' . $this->session->data['token'] . '&invoice_id=' . (int)$invoice_id, 'SSL');
693+
$this->data['print'] = $this->url->link('purchase/invoice/document', 'token=' . $this->session->data['token'] . '&invoice_id=' . (int)$invoice_id, 'SSL');
694694

695695
$this->data['reports'] = array(
696696
array('name' => 'Invoice', 'report' => 'purchase_invoice_printPDF.tpl')
@@ -846,7 +846,7 @@ public function history() {
846846
$this->response->setOutput($this->render());
847847
}
848848

849-
public function invoice() {
849+
public function document() {
850850
$lcFormat = isset($this->request->get['format']) ? $this->request->get['format'] : '';
851851

852852
$this->data['lang'] = $this->config->get('config_language');
Collapse file

‎admin/controller/purchase/purchase_order.php‎

Copy file name to clipboardExpand all lines: admin/controller/purchase/purchase_order.php
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ protected function getList() {
224224
$this->data['insert'] = $this->url->link('purchase/purchase_order/insert', 'token=' . $this->session->data['token'], 'SSL');
225225
$this->data['delete'] = $this->url->link('purchase/purchase_order/delete', 'token=' . $this->session->data['token'] . $url, 'SSL');
226226
$this->data['convert'] = $this->url->link('purchase/purchase_order/convertToInvoice', 'token=' . $this->session->data['token'] . $url, 'SSL');
227-
$this->data['invoice'] = $this->url->link('purchase/purchase_order/invoice', 'token=' . $this->session->data['token'] . '&format=view', 'SSL');
228-
$this->data['printPDF'] = $this->url->link('purchase/purchase_order/invoice', 'token=' . $this->session->data['token'] . '&format=pdf', 'SSL');
227+
$this->data['invoice'] = $this->url->link('purchase/purchase_order/document', 'token=' . $this->session->data['token'] . '&format=view', 'SSL');
228+
$this->data['printPDF'] = $this->url->link('purchase/purchase_order/document', 'token=' . $this->session->data['token'] . '&format=pdf', 'SSL');
229229

230230
$this->data['purchase_orders'] = array();
231231

@@ -641,8 +641,8 @@ public function info() {
641641
);
642642

643643
$this->data['cancel'] = $this->url->link('purchase/purchase_order', 'token=' . $this->session->data['token'], 'SSL');
644-
$this->data['invoice'] = $this->url->link('purchase/purchase_order/invoice', 'token=' . $this->session->data['token'] . '&purchase_order_id=' . $purchase_order_info['purchase_order_id'] . '&format=view', 'SSL');
645-
$this->data['printPDF'] = $this->url->link('purchase/purchase_order/invoice', 'token=' . $this->session->data['token'] . '&purchase_order_id=' . $purchase_order_info['purchase_order_id'] . '&format=pdf', 'SSL');
644+
$this->data['invoice'] = $this->url->link('purchase/purchase_order/document', 'token=' . $this->session->data['token'] . '&purchase_order_id=' . $purchase_order_info['purchase_order_id'] . '&format=view', 'SSL');
645+
$this->data['printPDF'] = $this->url->link('purchase/purchase_order/document', 'token=' . $this->session->data['token'] . '&purchase_order_id=' . $purchase_order_info['purchase_order_id'] . '&format=pdf', 'SSL');
646646

647647
$this->data['purchase_order_id'] = $purchase_order_info['purchase_order_id'];
648648
$this->data['po_number'] = $purchase_order_info['po_number'];
@@ -887,7 +887,7 @@ public function getTaxes($data) {
887887
// que ControllerSaleInvoice::invoice() pero simplificado: purchase_order no
888888
// guarda su propia copia de la dirección del proveedor, así que el bloque
889889
// "To" se resuelve en vivo contra la ficha actual del proveedor.
890-
public function invoice() {
890+
public function document() {
891891
$lcFormat = isset($this->request->get['format']) ? $this->request->get['format'] : '';
892892

893893
$this->load->language('purchase/purchase_order');
Collapse file

‎admin/view/template/purchase/purchase_invoice_info.tpl‎

Copy file name to clipboardExpand all lines: admin/view/template/purchase/purchase_invoice_info.tpl
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ $('#send').on('click',function(e){
295295
var message = editor.getData();
296296
297297
$.ajax({
298-
url:'index.php?route=purchase/invoice/invoice&token=<?php echo $token; ?>&invoice_id=<?php echo $invoice_id; ?>&format=email',
298+
url:'index.php?route=purchase/invoice/document&token=<?php echo $token; ?>&invoice_id=<?php echo $invoice_id; ?>&format=email',
299299
type:'post',
300300
dataType:'json',
301301
data:'to='+encodeURIComponent(to)+'&subject='+encodeURIComponent(subject)+'&message='+encodeURIComponent(message),
Collapse file

‎admin/view/template/purchase/purchase_invoice_invoice.tpl‎

Copy file name to clipboardExpand all lines: admin/view/template/purchase/purchase_invoice_invoice.tpl
+50-40Lines changed: 50 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<title><?php echo $title; ?></title>
77
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
88
<base href="<?php echo $base; ?>">
9-
<link href="view/stylesheet/stylesheet.css" rel="stylesheet">
109
<link href="view/stylesheet/main.css" rel="stylesheet">
1110
<script src="view\javascript\jquery\jquery-3.3.1.min.js"></script>
1211
<script src="view\javascript\bootstrap\js\bootstrap.js"></script>
@@ -18,87 +17,98 @@
1817
}
1918
</style>
2019
</head>
21-
<body style="padding-top:80px;">
20+
<body style="padding-top:0;">
2221
<div class="container">
23-
<?php foreach ($invoices as $invoices) { ?>
22+
<?php foreach ($invoices as $invoice) { ?>
2423
<?php if (!empty($header_html)) { ?>
2524
<div class="invoice-custom-header"><?php echo $header_html; ?></div>
2625
<?php } ?>
27-
<table style="width:100%; margin:0; border-collapse:collapse;">
26+
<div class="store_logo">
27+
<div class="logo">
28+
<img src="<?php echo '../image/' . $logo; ?>" title="<?php echo $invoice['payment_company']; ?>" />
29+
<span class="title"><?php echo $text_invoice; ?></span>
30+
</div>
31+
</div>
32+
<table class="table table-bordered">
2833
<tr>
29-
<td style="width:50%; vertical-align:top; padding:0;">
30-
<table style="width:100%; border-collapse:collapse;">
31-
<tr>
32-
<td style="width:26%; vertical-align:top; padding:0;">
33-
<img src="<?php echo '../image/' . $logo; ?>" title="<?php echo $invoices['store_name']; ?>" style="width:24mm;" />
34-
</td>
35-
<td style="width:21%; padding:0;"></td>
36-
<td style="width:53%; vertical-align:top; padding:0;">
37-
<strong style="font-size:15px;"><?php echo $invoices['store_name']; ?></strong><br>
38-
<?php echo $invoices['store_address']; ?><br>
39-
<?php if ($invoices['store_locality']) { ?>
40-
<?php echo $invoices['store_locality']; ?><br>
41-
<?php } ?>
42-
<?php echo $text_telephone; ?> <?php echo $invoices['store_telephone']; ?><br>
43-
<?php if ($invoices['store_fax']) { ?>
44-
<?php echo $text_fax; ?> <?php echo $invoices['store_fax']; ?><br>
45-
<?php } ?>
46-
<?php echo $text_tax_id; ?> <?php echo $invoices['store_nif']; ?><br>
47-
<?php echo $invoices['store_email']; ?>
48-
</td>
49-
</tr>
50-
</table>
34+
<td width="50%"><b><?php echo $invoice['payment_company']; ?></b><br>
35+
<?php echo $invoice['payment_address']; ?><br>
36+
<?php if ($invoice['payment_tax_id']) { ?>
37+
<?php echo $text_tax_id; ?> <?php echo $invoice['payment_tax_id']; ?><br>
38+
<?php } ?>
39+
<?php if ($invoice['telephone']) { ?>
40+
<?php echo $text_telephone; ?> <?php echo $invoice['telephone']; ?><br>
41+
<?php } ?>
42+
<?php echo $invoice['email']; ?>
43+
<?php if ($invoice['payment_company_id']) { ?>
44+
<br>
45+
<?php echo $text_company_id; ?> <?php echo $invoice['payment_company_id']; ?>
46+
<?php } ?></td>
47+
<td>
48+
<b><?php echo $text_date_added; ?></b> <?php echo $invoice['date_added']; ?><br>
49+
<b><?php echo $text_invoice_id; ?></b> <?php echo $invoice['invoice_prefix'] . $invoice['invoice_id']; ?><br>
50+
<b><?php echo $text_payment_method; ?></b> <?php echo $invoice['payment_method']; ?><br>
51+
<?php if ($invoice['shipping_method']) { ?>
52+
<b><?php echo $text_shipping_method; ?></b> <?php echo $invoice['shipping_method']; ?><br>
53+
<?php } ?>
5154
</td>
52-
<td style="vertical-align:top; padding:0;"></td>
5355
</tr>
56+
</table>
57+
<table class="table table-bordered">
5458
<tr>
55-
<td style="vertical-align:top; padding:0;">
56-
</td>
57-
<td style="text-align:right; vertical-align:top; padding:0;">
58-
<b><?php echo mb_strtoupper($text_invoice, 'UTF-8'); ?>:</b> <?php echo $invoices['invoice_prefix'] . $invoices['invoice_id']; ?> &nbsp;&nbsp; <b>DATE:</b> <?php echo $invoices['date_added']; ?>
59-
</td>
59+
<th><?php echo $text_to; ?></th>
6060
</tr>
6161
<tr>
62-
<td style="vertical-align:top; padding:0;"></td>
63-
<td style="text-align:left; vertical-align:top; padding:0;"><?php if ($invoices['payment_company']) { ?><strong><?php echo $invoices['payment_company']; ?></strong><br/><?php } ?><?php echo $invoices['payment_address']; ?><?php if ($invoices['payment_tax_id']) { ?><br/><?php echo $text_tax_id; ?> <?php echo $invoices['payment_tax_id']; ?><?php } ?><br/><?php echo $invoices['email']; ?><?php if ($invoices['telephone']) { ?><br/><?php echo $invoices['telephone']; ?><?php } ?><?php if ($invoices['payment_company_id']) { ?><br/><br/><?php echo $text_company_id; ?> <?php echo $invoices['payment_company_id']; ?><?php } ?></td>
62+
<td><b><?php echo $invoice['store_name']; ?></b><br>
63+
<?php echo $invoice['store_address']; ?><br>
64+
<?php if ($invoice['store_locality']) { ?>
65+
<?php echo $invoice['store_locality']; ?><br>
66+
<?php } ?>
67+
<?php echo $text_tax_id; ?> <?php echo $invoice['store_nif']; ?><br>
68+
<?php echo $text_telephone; ?> <?php echo $invoice['store_telephone']; ?><br>
69+
<?php if ($invoice['store_fax']) { ?>
70+
<?php echo $text_fax; ?> <?php echo $invoice['store_fax']; ?><br>
71+
<?php } ?>
72+
<?php echo $invoice['store_email']; ?></td>
6473
</tr>
6574
</table>
6675
<table class="table table-bordered">
6776
<tr>
6877
<th><?php echo $column_product; ?></th>
78+
<th><?php echo $column_model; ?></th>
6979
<th class="text-right"><?php echo $column_quantity; ?></th>
7080
<th class="text-right"><?php echo $column_price; ?></th>
7181
<th class="text-right"><?php echo $column_discount; ?></th>
7282
<th class="text-right"><?php echo $column_total; ?></th>
7383
</tr>
74-
<?php foreach ($invoices['product'] as $product) { ?>
84+
<?php foreach ($invoice['product'] as $product) { ?>
7585
<tr>
7686
<td><?php echo $product['name']; ?>
7787
<?php foreach ($product['option'] as $option) { ?>
7888
<br>
7989
&nbsp;<small> - <?php echo $option['name']; ?>: <?php echo $option['value']; ?></small>
8090
<?php } ?></td>
91+
<td><?php echo $product['model']; ?></td>
8192
<td class="text-right"><?php echo $product['quantity']; ?></td>
8293
<td class="text-right"><?php echo $product['price']; ?></td>
8394
<td class="text-right"><?php echo $product['discount']; ?></td>
8495
<td class="text-right"><?php echo $product['total']; ?></td>
8596
</tr>
8697
<?php } ?>
87-
<?php foreach ($invoices['total'] as $total) { ?>
98+
<?php foreach ($invoice['total'] as $total) { ?>
8899
<tr>
89-
<td class="text-right" colspan="4"><b><?php echo $total['title']; ?>:</b></td>
100+
<td class="text-right" colspan="5"><b><?php echo $total['title']; ?>:</b></td>
90101
<td class="text-right"><?php echo $total['text']; ?></td>
91102
</tr>
92103
<?php } ?>
93104
</table>
94-
<div style="text-align:left;"><b><?php echo $text_payment_method; ?></b> &nbsp; <?php echo $invoices['payment_method']; ?></div>
95-
<?php if ($invoices['comment']) { ?>
105+
<?php if ($invoice['comment']) { ?>
96106
<table class="table table-bordered">
97107
<tr>
98108
<th><?php echo $column_comment; ?></th>
99109
</tr>
100110
<tr>
101-
<td><?php echo $invoices['comment']; ?></td>
111+
<td><?php echo $invoice['comment']; ?></td>
102112
</tr>
103113
</table>
104114
<?php } ?>
Collapse file

‎admin/view/template/purchase/purchase_invoice_printPDF.tpl‎

Copy file name to clipboardExpand all lines: admin/view/template/purchase/purchase_invoice_printPDF.tpl
+59-33Lines changed: 59 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
.right {
1818
text-align: right;
1919
}
20+
.title {
21+
font-size: 32px;
22+
text-transform: uppercase;
23+
padding-left: 20px;
24+
text-align: right;
25+
}
2026
.table-bordered {
2127
border: 1px solid grey;
2228
}
@@ -35,76 +41,96 @@ th {
3541
</head>
3642
<body style="padding-top:0;">
3743
<div class="container">
38-
<?php foreach ($invoices as $invoices) { ?>
44+
<?php foreach ($invoices as $invoice) { ?>
3945
<?php if (!empty($header_html)) { ?>
4046
<div class="invoice-custom-header"><?php echo $header_html; ?></div>
4147
<?php } ?>
42-
<table style="width:100%; margin:0; border-collapse:collapse;">
48+
<div class="store_logo">
49+
<div class="logo">
50+
<img src="<?php echo '../image/' . $logo; ?>" title="<?php echo $invoice['payment_company']; ?>" width="242" /><br>
51+
<span class="title"><?php echo $text_invoice; ?></span>
52+
</div>
53+
</div>
54+
<table class="table table-bordered">
4355
<tr>
44-
<td style="width:50%; vertical-align:top; padding:0;">
45-
<table style="width:100%; border-collapse:collapse;">
46-
<tr>
47-
<td style="width:26%; vertical-align:top; padding:0;">
48-
<img src="<?php echo '../image/' . $logo; ?>" title="<?php echo $invoices['store_name']; ?>" style="width:24mm;" />
49-
</td>
50-
<td style="width:21%; padding:0;"></td>
51-
<td style="width:53%; vertical-align:top; padding:0;">
52-
<strong style="font-size:15px;"><?php echo $invoices['store_name']; ?></strong><br>
53-
<?php echo $invoices['store_address']; ?><br>
54-
<?php echo $text_telephone; ?> <?php echo $invoices['store_telephone']; ?><br>
55-
<?php if ($invoices['store_fax']) { ?>
56-
<?php echo $text_fax; ?> <?php echo $invoices['store_fax']; ?><br>
57-
<?php } ?>
58-
<?php echo $invoices['store_email']; ?><br>
59-
<?php echo $text_tax_id; ?> <?php echo $invoices['store_nif']; ?>
60-
</td>
61-
</tr>
62-
</table>
56+
<td width="50%"><strong><?php echo $invoice['payment_company']; ?></strong><br>
57+
<?php echo $invoice['payment_address']; ?><br>
58+
<?php if ($invoice['payment_tax_id']) { ?>
59+
<?php echo $text_tax_id; ?> <?php echo $invoice['payment_tax_id']; ?><br>
60+
<?php } ?>
61+
<?php if ($invoice['telephone']) { ?>
62+
<?php echo $text_telephone; ?> <?php echo $invoice['telephone']; ?><br>
63+
<?php } ?>
64+
<?php echo $invoice['email']; ?>
65+
<?php if ($invoice['payment_company_id']) { ?>
66+
<br>
67+
<?php echo $text_company_id; ?> <?php echo $invoice['payment_company_id']; ?>
68+
<?php } ?></td>
69+
<td>
70+
<b><?php echo $text_date_added; ?></b> <?php echo $invoice['date_added']; ?><br>
71+
<b><?php echo $text_invoice_id; ?></b> <?php echo $invoice['invoice_prefix'] . $invoice['invoice_id']; ?><br>
72+
<b><?php echo $text_payment_method; ?></b>&nbsp;&nbsp;<?php echo $invoice['payment_method']; ?><br>
73+
<?php if ($invoice['shipping_method']) { ?>
74+
<b><?php echo $text_shipping_method; ?></b>&nbsp;&nbsp;<?php echo $invoice['shipping_method']; ?><br>
75+
<?php } ?>
6376
</td>
64-
<td style="vertical-align:top; padding:0;"></td>
77+
</tr>
78+
</table>
79+
<table class="table table-bordered">
80+
<tr>
81+
<th><?php echo $text_to; ?></th>
6582
</tr>
6683
<tr>
67-
<td style="vertical-align:top; padding:0;"></td>
68-
<td style="text-align:left; vertical-align:top; padding:0;"><?php if ($invoices['payment_company']) { ?><strong><?php echo $invoices['payment_company']; ?></strong><br/><?php } ?><?php echo $invoices['payment_address']; ?><br/><?php echo $invoices['email']; ?><?php if ($invoices['telephone']) { ?><br/><?php echo $invoices['telephone']; ?><?php } ?><?php if ($invoices['payment_company_id']) { ?><br/><br/><?php echo $text_company_id; ?> <?php echo $invoices['payment_company_id']; ?><?php } ?><?php if ($invoices['payment_tax_id']) { ?><br/><?php echo $text_tax_id; ?> <?php echo $invoices['payment_tax_id']; ?><?php } ?></td>
84+
<td><strong><?php echo $invoice['store_name']; ?></strong><br>
85+
<?php echo $invoice['store_address']; ?><br>
86+
<?php if ($invoice['store_locality']) { ?>
87+
<?php echo $invoice['store_locality']; ?><br>
88+
<?php } ?>
89+
<?php echo $text_tax_id; ?> <?php echo $invoice['store_nif']; ?><br>
90+
<?php echo $text_telephone; ?> <?php echo $invoice['store_telephone']; ?><br>
91+
<?php if ($invoice['store_fax']) { ?>
92+
<?php echo $text_fax; ?> <?php echo $invoice['store_fax']; ?><br>
93+
<?php } ?>
94+
<?php echo $invoice['store_email']; ?></td>
6995
</tr>
7096
</table>
71-
<div style="text-align:right; margin:5px;"><b><?php echo mb_strtoupper($text_invoice, 'UTF-8'); ?>:</b> <?php echo $invoices['invoice_prefix'] . $invoices['invoice_id']; ?> &nbsp;&nbsp; <b>DATE:</b> <?php echo $invoices['date_added']; ?></div>
7297
<table class="table table-bordered">
7398
<tr>
7499
<th><?php echo $column_product; ?></th>
75100
<th><?php echo $column_model; ?></th>
76-
<th class="center"><?php echo $column_quantity; ?></th>
101+
<th class="right"><?php echo $column_quantity; ?></th>
77102
<th class="right"><?php echo $column_price; ?></th>
103+
<th class="right"><?php echo $column_discount; ?></th>
78104
<th class="right"><?php echo $column_total; ?></th>
79105
</tr>
80-
<?php foreach ($invoices['product'] as $product) { ?>
106+
<?php foreach ($invoice['product'] as $product) { ?>
81107
<tr>
82108
<td><?php echo $product['name']; ?>
83109
<?php foreach ($product['option'] as $option) { ?>
84110
<br>
85111
&nbsp;<small> - <?php echo $option['name']; ?>: <?php echo $option['value']; ?></small>
86112
<?php } ?></td>
87113
<td><?php echo $product['model']; ?></td>
88-
<td class="center"><?php echo $product['quantity']; ?></td>
114+
<td class="right"><?php echo $product['quantity']; ?></td>
89115
<td class="right"><?php echo $product['price']; ?></td>
116+
<td class="right"><?php echo $product['discount']; ?></td>
90117
<td class="right"><?php echo $product['total']; ?></td>
91118
</tr>
92119
<?php } ?>
93-
<?php foreach ($invoices['total'] as $total) { ?>
120+
<?php foreach ($invoice['total'] as $total) { ?>
94121
<tr>
95-
<td class="right" colspan="4"><b><?php echo $total['title']; ?>:</b></td>
122+
<td class="right" colspan="5"><b><?php echo $total['title']; ?>:</b></td>
96123
<td class="right"><?php echo $total['text']; ?></td>
97124
</tr>
98125
<?php } ?>
99126
</table>
100-
<div style="text-align:left;"><b><?php echo $text_payment_method; ?></b> &nbsp; <?php echo $invoices['payment_method']; ?></div>
101-
<?php if ($invoices['comment']) { ?>
127+
<?php if ($invoice['comment']) { ?>
102128
<table class="table table-bordered">
103129
<tr>
104130
<th><?php echo $column_comment; ?></th>
105131
</tr>
106132
<tr>
107-
<td><?php echo $invoices['comment']; ?></td>
133+
<td><?php echo $invoice['comment']; ?></td>
108134
</tr>
109135
</table>
110136
<?php } ?>

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.