-
Notifications
You must be signed in to change notification settings - Fork 40
/
masspay.tpl
101 lines (97 loc) · 4.49 KB
/
masspay.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<form method="post" action="clientarea.php?action=masspay">
<input type="hidden" name="geninvoice" value="true" />
<div class="card">
<div class="card-body">
<h3 class="card-title">{lang key="masspaytitle"}</h3>
<p class="text-muted">{lang key="masspaydescription"}</p>
<table class="table">
<thead>
<tr>
<th>{lang key='invoicesdescription'}</th>
<th>{lang key='invoicesamount'}</th>
</tr>
</thead>
<tbody>
{foreach $invoiceitems as $invid => $invoiceitem}
<tr>
<td colspan="2" class="bg-default">
<strong>{lang key='invoicenumber'} {if $invoiceitem.0.invoicenum}{$invoiceitem.0.invoicenum}{else}{$invid}{/if}</strong>
<input type="hidden" name="invoiceids[]" value="{$invid}" />
</td>
</tr>
{foreach from=$invoiceitem item=item}
<tr class="masspay-invoice-detail">
<td>{$item.description}</td>
<td>{$item.amount}</td>
</tr>
{/foreach}
{foreachelse}
<tr>
<td colspan="6" align="center">{lang key='norecordsfound'}</td>
</tr>
{/foreach}
<tr class="masspay-total">
<td class="text-right">{lang key='invoicessubtotal'}:</td>
<td>{$subtotal}</td>
</tr>
{if $tax}
<tr class="masspay-total">
<td class="text-right">{$taxrate1}% {$taxname1}:</td>
<td>{$tax}</td>
</tr>
{/if}
{if $tax2}
<tr class="masspay-total">
<td class="text-right">{$taxrate2}% {$taxname2}:</td>
<td>{$tax2}</td>
</tr>
{/if}
{if $credit}
<tr class="masspay-total">
<td class="text-right">{lang key='invoicescredit'}:</td>
<td>{$credit}</td>
</tr>
{/if}
{if $partialpayments}
<tr class="masspay-total">
<td class="text-right">{lang key='invoicespartialpayments'}:</td>
<td>{$partialpayments}</td>
</tr>
{/if}
<tr class="masspay-total">
<td class="text-right">{lang key='invoicestotaldue'}:</td>
<td>{$total}</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="row">
<div class="col-sm-6 offset-sm-3">
<div class="card bg-default">
<div class="card-header">
<h3 class="card-title m-0">{lang key='masspaymentselectgateway'}</h3>
</div>
<div class="card-body">
<fieldset>
<div class="col-md-12">
<div class="form-group">
<label for="paymentmethod" class="col-form-label">{lang key='orderpaymentmethod'}:</label><br/>
<select name="paymentmethod" id="paymentmethod" class="form-control custom-select">
{foreach $gateways as $gateway}
<option value="{$gateway.sysname}">{$gateway.name}</option>
{/foreach}
</select>
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary btn-block" id="btnMassPayMakePayment">
{lang key='masspaymakepayment'}
</button>
</div>
</div>
</fieldset>
</div>
</div>
</div>
</div>
</form>