@@ -, +, @@
---
.../intranet-tmpl/prog/en/modules/members/pay.tt | 130 +++++++++++----------
1 file changed, 69 insertions(+), 61 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt
@@ -94,69 +94,77 @@ function enableCheckboxActions(){
[% FOREACH account_grp IN accounts %]
[% FOREACH line IN account_grp.accountlines %]
-
-
- [% IF ( line.amountoutstanding > 0 ) %]
-
+ |
+ [% IF line.amountoutstanding > 0 %]
+
+ [% IF ( line.amountoutstanding > 0 ) %]
+
+ [% END %]
+ |
+
+ [% IF ( line.amountoutstanding > 0 ) %]
+
+ [% IF CAN_user_updatecharges_writeoff %][% END %]
+ [% END %]
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+ [% SWITCH line.accounttype %]
+ [% CASE 'Pay' %]Payment, thanks
+ [% CASE 'Pay00' %]Payment, thanks (cash via SIP2)
+ [% CASE 'Pay01' %]Payment, thanks (VISA via SIP2)
+ [% CASE 'Pay02' %]Payment, thanks (credit card via SIP2)
+ [% CASE 'N' %]New card
+ [% CASE 'F' %]Fine
+ [% CASE 'A' %]Account management fee
+ [% CASE 'M' %]Sundry
+ [% CASE 'L' %]Lost item
+ [% CASE 'W' %]Writeoff
+ [% CASE 'FU' %]Accruing fine
+ [% CASE 'HE' %]Hold waiting too long
+ [% CASE 'Rent' %]Rental fee
+ [% CASE 'FOR' %]Forgiven
+ [% CASE 'LR' %]Lost item fee refund
+ [% CASE 'PAY' %]Payment
+ [% CASE 'WO' %]Writeoff
+ [% CASE 'C' %]Credit
+ [% CASE 'CR' %]Credit
+ [% CASE %][% line.accounttype %]
+ [%- END -%]
+ [%- IF line.description %], [% line.description %][% END %]
+ [% IF line.title %]([% line.title %])[% END %]
+ |
+ |
+ [% line.accounttype %] |
+ [% line.notify_id %] |
+ [% line.notify_level %] |
+
+ [% line.amount | $Price %] |
+ [% line.amountoutstanding | $Price %] |
+ [% END %]
+
[% END %]
-
-
- [% IF ( line.amountoutstanding > 0 ) %]
-
- [% IF CAN_user_updatecharges_writeoff %][% END %]
+ [% IF ( account_grp.total ) > 0 %]
+ |
+ Sub total: |
+ [% account_grp.total | $Price %] |
+
+ [% ELSE %]
+
+ Credit Sub total: |
+ [% account_grp.total | $Price %] |
+
[% END %]
-
-
-
-
-
-
-
-
-
-
-
-
- [% SWITCH line.accounttype %]
- [% CASE 'Pay' %]Payment, thanks
- [% CASE 'Pay00' %]Payment, thanks (cash via SIP2)
- [% CASE 'Pay01' %]Payment, thanks (VISA via SIP2)
- [% CASE 'Pay02' %]Payment, thanks (credit card via SIP2)
- [% CASE 'N' %]New card
- [% CASE 'F' %]Fine
- [% CASE 'A' %]Account management fee
- [% CASE 'M' %]Sundry
- [% CASE 'L' %]Lost item
- [% CASE 'W' %]Writeoff
- [% CASE 'FU' %]Accruing fine
- [% CASE 'HE' %]Hold waiting too long
- [% CASE 'Rent' %]Rental fee
- [% CASE 'FOR' %]Forgiven
- [% CASE 'LR' %]Lost item fee refund
- [% CASE 'PAY' %]Payment
- [% CASE 'WO' %]Writeoff
- [% CASE 'C' %]Credit
- [% CASE 'CR' %]Credit
- [% CASE %][% line.accounttype %]
- [%- END -%]
- [%- IF line.description %], [% line.description %][% END %]
- [% IF line.title %]([% line.title %])[% END %]
- |
- |
- [% line.accounttype %] |
- [% line.notify_id %] |
- [% line.notify_level %] |
- [% line.amount | $Price %] |
- [% line.amountoutstanding | $Price %] |
-
-[% END %]
-[% IF ( account_grp.total ) %]
-
-
- Sub total: |
- [% account_grp.total | $Price %] |
-
-[% END %]
[% END %]
--