|
Lines 57-63
Link Here
|
| 57 |
[% END %] |
57 |
[% END %] |
| 58 |
|
58 |
|
| 59 |
[% IF ( error_cashup_no_transactions ) %] |
59 |
[% IF ( error_cashup_no_transactions ) %] |
| 60 |
<div id="error_message" class="alert alert-info"> Cannot start cashup - there are no cash transactions in this register since the last cashup. </div> |
60 |
<div id="error_message" class="alert alert-info"> Cannot start cashup - there are no transactions in this register since the last cashup. </div> |
| 61 |
[% END %] |
61 |
[% END %] |
| 62 |
|
62 |
|
| 63 |
[% IF ( error_no_cashup_start ) %] |
63 |
[% IF ( error_no_cashup_start ) %] |
|
Lines 77-83
Link Here
|
| 77 |
[% END %] |
77 |
[% END %] |
| 78 |
|
78 |
|
| 79 |
[% IF ( error_cashup_amount_invalid ) %] |
79 |
[% IF ( error_cashup_amount_invalid ) %] |
| 80 |
<div id="error_message" class="alert alert-warning"> The cashup amount must be a positive number greater than zero. </div> |
80 |
<div id="error_message" class="alert alert-warning"> The cashup amount must be a valid number. </div> |
| 81 |
[% END %] |
81 |
[% END %] |
| 82 |
|
82 |
|
| 83 |
[% IF ( error_reconciliation_note_required ) %] |
83 |
[% IF ( error_reconciliation_note_required ) %] |
|
Lines 109-120
Link Here
|
| 109 |
[% END %] |
109 |
[% END %] |
| 110 |
|
110 |
|
| 111 |
[% SET total_bankable = accountlines.total( payment_type => [ 'CASH', 'SIP00' ]) * -1 %] |
111 |
[% SET total_bankable = accountlines.total( payment_type => [ 'CASH', 'SIP00' ]) * -1 %] |
|
|
112 |
[% SET total_transactions = accountlines.total() * -1 %] |
| 112 |
[% IF ( CAN_user_cash_management_cashup ) %] |
113 |
[% IF ( CAN_user_cash_management_cashup ) %] |
| 113 |
<div id="toolbar" class="btn-toolbar"> |
114 |
<div id="toolbar" class="btn-toolbar"> |
| 114 |
[% IF cashup_in_progress %] |
115 |
[% IF cashup_in_progress %] |
| 115 |
<button id="pos_complete_cashup" type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#confirmCashupModal"> <i class="fa-solid fa-check"></i> Complete cashup </button> |
116 |
<button id="pos_complete_cashup" type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#confirmCashupModal"> <i class="fa-solid fa-check"></i> Complete cashup </button> |
| 116 |
[% ELSE %] |
117 |
[% ELSE %] |
| 117 |
<button type="button" class="btn btn-default" data-bs-toggle="modal" data-bs-target="#triggerCashupModal" [% IF total_bankable == 0 %]disabled title="No bankable transactions"[% END %]> |
118 |
<button type="button" class="btn btn-default" data-bs-toggle="modal" data-bs-target="#triggerCashupModal" [% IF total_transactions == 0 %]disabled title="No transactions"[% END %]> |
| 118 |
<i class="fa fa-money-bill-alt"></i> Record cashup |
119 |
<i class="fa fa-money-bill-alt"></i> Record cashup |
| 119 |
</button> |
120 |
</button> |
| 120 |
[% END %] |
121 |
[% END %] |
| 121 |
- |
|
|