X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fmodules%2Fmembers%2Fpaycollect.tt;h=bc0cefa0d9af3c01681187df290e9a620835efdd;hb=d661141890dbd56ca2511f435c263395c65bf55e;hp=3461e8af460fa58184cb6a62f2ec4cde3cb9817c;hpb=108e901043f0766f8c103f3826b5af1cdb6daaa4;p=srvgit 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 3461e8af46..bc0cefa0d9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt @@ -1,130 +1,103 @@ +[% USE raw %] +[% USE Asset %] +[% USE Koha %] +[% USE Branches %] +[% USE AuthorisedValues %] +[% USE Price %] +[% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] -Koha › Patrons › Collect fine payment for [% borrower.firstname %] [% borrower.surname %] +Koha › Patrons › Collect fine payment for [% patron.firstname | html %] [% patron.surname | html %] [% INCLUDE 'doc-head-close.inc' %] - + [% INCLUDE 'header.inc' %] [% INCLUDE 'patron-search.inc' %] - + -
+
+
+
+
-
-
-
-[% INCLUDE 'members-toolbar.inc' borrowernumber=borrower.borrowernumber %] +[% INCLUDE 'members-toolbar.inc' borrowernumber=patron.borrowernumber %]
-[% IF ( error ) %] +[% IF ( error_over ) %]
- [% error %] + You must pay a value less than or equal to [% total_due | format('%.2f') %].
[% END %] [% IF ( pay_individual ) %] -
- - - - - - - - - - - + [% IF ( error_registers ) %] +
+ You must have at least one cash register associated with this branch before you can record payments. +
+ [% ELSE %] + + + + + + + + + + + + +
Pay an individual fine + - - - + - - - + @@ -133,86 +106,345 @@ function moneyFormat(textObj) {
  1. - - - + + +
  2. +
  3. + + +
  4. +
  5. + + 0.00 +
  6. + [% SET payment_types = AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %] + [% IF payment_types %] +
  7. + + +
  8. + [% END %] + [% IF Koha.Preference('UseCashRegisters') %] +
  9. + +
  10. + [% END %]
- +
+ + Cancel +
+ [% END %] [% ELSIF ( writeoff_individual ) %] - + +
Write off an individual fine - - - - - - - - - - - + + + + + + + + + + + +
Description Account typeNotify idLevel Amount Amount outstanding
Total amount payable:[% amountoutstanding | format('%.2f') %]
Total amount payable:[% amountoutstanding | format('%.2f') %]
- [% description %] [% title %] + [% individual_description | html %] [% accounttype %][% notify_id %][% notify_level %][% debit_type_code | html %] [% amount | format('%.2f') %] [% amountoutstanding | format('%.2f') %]
- - - + - - - - + +
Description Account typeNotify idLevel Amount Amount outstanding
Total amount to be written off:[% amountoutstanding | format('%.2f') %]
Total amount outstanding:[% amountoutstanding | format('%.2f') %]
[% description %] [% title %][% accounttype %][% notify_id %][% notify_level %][% description | html %] [% title | html %][% debit_type_code | html %] [% amount | format('%.2f') %] [% amountoutstanding | format('%.2f') %]
-
- + +
    +
  1. + + + +
  2. +
+ +
+ + Cancel +
[% ELSE %] + [% IF ( error_registers && type != 'writeoff' ) %] +
+ You must have at least one cash register associated with this branch before you can record payments. +
+ [% ELSE %] -
- - - + + + + + + +
- [% IF ( selected_accts ) %]Pay an amount toward selected fines[% ELSE %]Pay an amount toward all fines[% END %] + [% IF ( selected_accts ) %] + [% IF type == 'writeoff' %] + Write off an amount toward selected fines + [% ELSE %] + Pay an amount toward selected fines + [% END %] + [% ELSE %] + Pay an amount toward all fines + [% END %] +
  1. Total amount outstanding: [% total | format('%.2f') %]
  2. - - - + + +
  3. +
  4. + [% IF type == 'writeoff' %] + + [% ELSE %] + + [% END %] + +
  5. +
  6. + + 0.00 +
  7. + + [% IF type != 'writeoff' %] + [% SET payment_types = AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %] + [% IF payment_types %] +
  8. + + +
  9. + [% END %] + + [% IF Koha.Preference('UseCashRegisters') %] +
  10. + + +
  11. + [% END %] + [% END %] + +
  12. + +
- +
+ + Cancel +
+ [% END %] [% END %]
-
-
-
-[% INCLUDE 'circ-menu.tt' %] -
+
+
+ +
+ +
+
+ + + -[% INCLUDE 'intranet-bottom.inc' %] +[% MACRO jsinclude BLOCK %] + [% INCLUDE 'str/members-menu.inc' %] + [% Asset.js("js/members-menu.js") | $raw %] + +[% END %] + +[% INCLUDE 'intranet-bottom.inc' %]