PluginProbe ʕ •ᴥ•ʔ
VikAppointments Services Booking Calendar / 1.2.21
VikAppointments Services Booking Calendar v1.2.21
1.2.21 1.2.20 trunk 1.2.17 1.2.18 1.2.19
vikappointments / site / layouts / templates / invoice / subscription.php
vikappointments / site / layouts / templates / invoice Last commit date
appointment.php 4 days ago employee.php 4 days ago index.html 4 days ago package.php 4 days ago subscription.php 4 days ago
subscription.php
149 lines
1 <?php
2 /**
3 * @package VikAppointments
4 * @subpackage core
5 * @author E4J s.r.l.
6 * @copyright Copyright (C) 2021 E4J s.r.l. All Rights Reserved.
7 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
8 * @link https://vikwp.com
9 */
10
11 // No direct access
12 defined('ABSPATH') or die('No script kiddies please!');
13
14 $order = isset($displayData['order']) ? $displayData['order'] : array();
15
16 $rowspan = 3;
17
18 if ($order->totals->payCharge > 0)
19 {
20 $rowspan++;
21 }
22
23 if ($order->totals->discount > 0)
24 {
25 $rowspan++;
26 }
27
28 $currency = VAPFactory::getCurrency();
29
30 ?>
31
32 <table width="100%" border="0">
33
34 <tr>
35 <td>
36 <table width="100%" border="0" cellspacing="5" cellpadding="5">
37 <tr>
38 <td width="70%">{company_logo}</td>
39 <td width="30%"align="right" valign="bottom">
40 <table width="100%" border="0" cellpadding="1" cellspacing="1">
41 <tr>
42 <td align="right" bgcolor="#FFFFFF"><strong><?php echo JText::translate('VAPINVNUM'); ?> {invoice_number}{invoice_suffix}</strong></td>
43 </tr>
44 <tr>
45 <td align="right" bgcolor="#FFFFFF"><strong><?php echo JText::translate('VAPINVDATE'); ?> {invoice_date}</strong></td>
46 </tr>
47 <tr>
48 <td align="right" bgcolor="#FFFFFF">{company_info}</td>
49 </tr>
50 </table>
51 </td>
52 </tr>
53 </table>
54 </td>
55 </tr>
56
57 <tr>
58 <td>
59 <table width="100%" border="0" cellspacing="1" cellpadding="2">
60 <tr bgcolor="#E1E1E1" style="background-color: #E1E1E1;">
61 <td width="64%"><strong><?php echo JText::translate('VAPINVITEMDESC'); ?></strong></td>
62 <td width="12%" align="right"><strong><?php echo JText::translate('VAPINVTOTAL'); ?></strong></td>
63 <td width="12%" align="right"><strong><?php echo JText::translate('VAPINVTAXES'); ?></strong></td>
64 <td width="12%" align="right"><strong><?php echo JText::translate('VAPINVITEMPRICE'); ?></strong></td>
65 </tr>
66
67 <tr>
68 <td width="64%"><strong><?php echo $order->subscription->name; ?></strong></td>
69 <td width="12%" align="right"><?php echo $currency->format($order->totals->net); ?></td>
70 <td width="12%" align="right"><?php echo $currency->format($order->totals->tax); ?></td>
71 <td width="12%" align="right"><?php echo $currency->format($order->totals->gross); ?></td>
72 </tr>
73
74 <tr>
75 <td>&nbsp;</td>
76 <td>&nbsp;</td>
77 </tr>
78 <tr>
79 <td>&nbsp;</td>
80 <td>&nbsp;</td>
81 </tr>
82 </table>
83 </td>
84 </tr>
85
86 <tr>
87 <td>
88 <table width="100%" border="0" cellspacing="1" cellpadding="2">
89 <tr bgcolor="#E1E1E1">
90 <td width="70%" colspan="2" rowspan="<?php echo $rowspan; ?>" valign="top">
91 <strong><?php echo JText::translate('VAPINVCUSTINFO'); ?></strong><br/>{billing_info}
92 </td>
93 <td width="30%" align="left">
94 <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
95 <td align="left"><strong><?php echo JText::translate('VAPINVTOTAL'); ?></strong></td>
96 <td align="right">{invoice_totalnet}</td>
97 </tr></table>
98 </td>
99 </tr>
100 <?php
101 if ($order->totals->discount > 0)
102 {
103 ?>
104 <tr bgcolor="#E1E1E1">
105 <td width="30%" align="left">
106 <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
107 <td align="left"><strong><?php echo JText::translate('VAPSUMMARYDISCOUNT'); ?></strong></td>
108 <td align="right">{invoice_discount}</td>
109 </tr></table>
110 </td>
111 </tr>
112 <?php
113 }
114
115 if ($order->totals->payCharge > 0)
116 {
117 ?>
118 <tr bgcolor="#E1E1E1">
119 <td width="30%" align="left">
120 <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
121 <td align="left"><strong><?php echo JText::sprintf('VAPINVPAYCHARGE', $order->payment->name); ?></strong></td>
122 <td align="right">{invoice_paycharge}</td>
123 </tr></table>
124 </td>
125 </tr>
126 <?php
127 }
128 ?>
129 <tr bgcolor="#E1E1E1">
130 <td width="30%" align="left">
131 <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
132 <td align="left"><strong><?php echo JText::translate('VAPINVTAXES'); ?></strong></td>
133 <td align="right">{invoice_totaltax}</td>
134 </tr></table>
135 </td>
136 </tr>
137 <tr bgcolor="#E1E1E1">
138 <td width="30%" align="left" valign="top">
139 <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
140 <td align="left"><strong><?php echo JText::translate('VAPINVGRANDTOTAL'); ?></strong></td>
141 <td align="right">{invoice_grandtotal}</td>
142 </tr></table>
143 </td>
144 </tr>
145 </table>
146 </td>
147 </tr>
148
149 </table>