From 1783b78fb66a43828b9b3a6667b94a4e4e9006b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9rick?= Date: Tue, 10 Dec 2013 16:51:39 -0500 Subject: [PATCH] Bug 11373: Show the difference between the amount collected and the amount paid of a fine payment. This patch adds a feature in the fine payment section. It allows to see the change due to patrons when the amount collected is higher than the amount paid. Test plan : - Apply patch. - Select a patron with a fine. - Go to Fines > Pay fines. - Click the button pay. - Choose the amount paid equal to the outstanding amount (exemple : 3$). - Choose the amount collected to be more than the outstanding amount (exemple : 5$). - Confirm that the change is correct (example : 5$ - 3$ = 2$). - Click the button confirm. - Click on Yes in the dialog box. - Confirm that the payment has been made (example : last amount = 3$). Signed-off-by: Michal Denar Signed-off-by: Martin Renvoize Signed-off-by: Josef Moravec --- .../prog/en/modules/members/paycollect.tt | 84 +++++++++++++++++++--- 1 file changed, 76 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt index c6331358a7..82c4861ba8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt @@ -99,9 +99,16 @@
  1. - - - + + +
  2. +
  3. + + +
  4. +
  5. + + 0.00
  6. [% SET payment_types = AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %] [% IF payment_types %] @@ -192,13 +199,20 @@ [% total | format('%.2f') %]
  7. + + +
  8. +
  9. [% IF type == 'writeoff' %] - + [% ELSE %] - + [% END %] - - + +
  10. +
  11. + + 0.00
  12. [% SET payment_types = AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %] [% IF payment_types %] @@ -236,14 +250,54 @@ + + + + [% MACRO jsinclude BLOCK %] [% INCLUDE 'str/members-menu.inc' %] [% Asset.js("js/members-menu.js") | $raw %] [% END %] -- 2.11.0