@@ -, +, @@
- Apply this patch (on top of 21896)
- On a patron's 'Fines' tab, create a 'manual invoice' (maybe more than
one)
- Go to the 'Pay fines' tab
- On the 'create manual credit' tab, create a couple credits.
- Go to the 'Pay fines'
- Click on 'Apply credits'
- Play with different options (credit excedes debts and vice-versa, they
match, etc)
- Sign off :-D
---
.../prog/en/modules/members/pay.tt | 10 ++++++++++
members/pay.pl | 20 ++++++++++++++++++-
2 files changed, 29 insertions(+), 1 deletion(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt
@@ -51,7 +51,11 @@
Total due:
+[% IF outstanding_credits.total_outstanding < 0 %]
+
[% total + outstanding_credits.total_outstanding | $Price %]
+[% ELSE %]
[% total | $Price %]
+[% END %]
@@ -108,6 +112,12 @@
[% line.amountoutstanding | $Price %]
[% END %]
+[% IF outstanding_credits.total_outstanding < 0 %]
+