From e66e77b9ab326b477692842e44d7a9e750497d0b 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: Add a "cash register" feature to the fine payment form. Works as intended. Signed-off-by: Simon Pouchol --- .../prog/en/modules/members/paycollect.tt | 78 +++++++++++++++++++--- members/paycollect.pl | 31 +++++++-- 2 files changed, 94 insertions(+), 15 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 39df143..a8f3993 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt @@ -36,12 +36,31 @@
-[% IF ( error_over ) %] +[% IF (error_negative) %]
- You must pay a value less than or equal to [% total_due | format('%.2f') %]. + The amount paid can't be negative!
[% END %] +[% IF (error_collected_less) %] +
+ The amount collected can't be lower than the amount paid! +
+[% END %] + +[% UNLESS (writeoff_individual) %] +
+[% END %] + +[% IF (give_change) %] +
+ The amount collected is greater than the total amount paid.
+ Change to give back: [% give_change %]

+ + Cancel +
+[% END %] + [% IF ( pay_individual ) %] @@ -79,12 +98,32 @@
    - + [% IF ( give_change ) %] +
  1. + + + + [% amount_paid %] +
  2. +
  3. + + [% amount_collected %] +
  4. - - - + + [% give_change %]
  5. + [% ELSE %] +
  6. + + + [% amount_paid %] +
  7. +
  8. + + +
  9. + [% END %]
@@ -147,11 +186,32 @@ Total amount outstanding: [% total | format('%.2f') %] + [% IF ( give_change ) %] +
  • + + + [% amount_paid %] +
  • +
  • + + + [% amount_collected %] +
  • +
  • + + [% give_change %] +
  • + [% ELSE %] +
  • + + +
  • - + - +
  • + [% END %]
  • @@ -175,7 +235,7 @@