|
Lines 157-169
Link Here
|
| 157 |
[% SET bankable = 0, ctotal = 0, dtotal = 0, cctotal = 0, cdtotal = 0 %] |
157 |
[% SET bankable = 0, ctotal = 0, dtotal = 0, cctotal = 0, cdtotal = 0 %] |
| 158 |
[% FOREACH register IN registers %] |
158 |
[% FOREACH register IN registers %] |
| 159 |
[% SET rbankable = ( register.outstanding_accountlines.total( payment_type => [ 'CASH', 'SIP00' ]) * -1 ) %] |
159 |
[% SET rbankable = ( register.outstanding_accountlines.total( payment_type => [ 'CASH', 'SIP00' ]) * -1 ) %] |
|
|
160 |
[% SET rtotal = ( register.outstanding_accountlines.total() * -1 ) %] |
| 160 |
<tr> |
161 |
<tr> |
| 161 |
[% IF CAN_user_cash_management_cashup %] |
162 |
[% IF CAN_user_cash_management_cashup %] |
| 162 |
<td> |
163 |
<td> |
| 163 |
[% IF register.cashup_in_progress %] |
164 |
[% IF register.cashup_in_progress %] |
| 164 |
<input type="checkbox" class="register_checkbox" value="[% register.id | html %]" disabled title="Cashup in progress" /> |
165 |
<input type="checkbox" class="register_checkbox" value="[% register.id | html %]" disabled title="Cashup in progress" /> |
| 165 |
[% ELSIF rbankable == 0 %] |
166 |
[% ELSIF rtotal == 0 %] |
| 166 |
<input type="checkbox" class="register_checkbox" value="[% register.id | html %]" disabled title="No bankable transactions" /> |
167 |
<input type="checkbox" class="register_checkbox" value="[% register.id | html %]" disabled title="No transactions" /> |
| 167 |
[% ELSE %] |
168 |
[% ELSE %] |
| 168 |
<input type="checkbox" class="register_checkbox" value="[% register.id | html %]" /> |
169 |
<input type="checkbox" class="register_checkbox" value="[% register.id | html %]" /> |
| 169 |
[% END %] |
170 |
[% END %] |
|
Lines 223-229
Link Here
|
| 223 |
data-bankable="[% rbankable | $Price %]" |
224 |
data-bankable="[% rbankable | $Price %]" |
| 224 |
data-float="[% register.starting_float | $Price %]" |
225 |
data-float="[% register.starting_float | $Price %]" |
| 225 |
data-registerid="[% register.id | html %]" |
226 |
data-registerid="[% register.id | html %]" |
| 226 |
[% IF rbankable == 0 %]disabled title="No bankable transactions"[% END %] |
227 |
[% IF rtotal == 0 %]disabled title="No transactions"[% END %] |
| 227 |
><i class="fa-solid fa-money-bill-1"></i> Record cashup</button |
228 |
><i class="fa-solid fa-money-bill-1"></i> Record cashup</button |
| 228 |
> |
229 |
> |
| 229 |
[% END %] |
230 |
[% END %] |
| 230 |
- |
|
|