View | Details | Raw Unified | Return to bug 19382
Collapse All | Expand All

(-)a/circ/circulation.pl (+13 lines)
Lines 494-499 if ( $patron ) { Link Here
494
        );
494
        );
495
    }
495
    }
496
496
497
    # Check the debt of this patrons guarantors *and* the guarantees of those guarantors
498
    my $no_issues_charge_guarantors = C4::Context->preference("NoIssuesChargeGuarantorsWithGuarantees");
499
    if ( $no_issues_charge_guarantors ) {
500
        my $guarantors_non_issues_charges += $patron->relationships_debt({ include_guarantors => 1, only_this_guaranor => 0, include_this_patron => 1 });
501
502
        if ( $guarantors_non_issues_charges > $no_issues_charge_guarantors ) {
503
            $template->param(
504
                charges_guarantors_guarantees => $guarantors_non_issues_charges
505
            );
506
            $noissues = 1 unless C4::Context->preference("allowfineoverride");
507
        }
508
    }
509
497
    my $no_issues_charge_guarantees = C4::Context->preference("NoIssuesChargeGuarantees");
510
    my $no_issues_charge_guarantees = C4::Context->preference("NoIssuesChargeGuarantees");
498
    $no_issues_charge_guarantees = undef unless looks_like_number( $no_issues_charge_guarantees );
511
    $no_issues_charge_guarantees = undef unless looks_like_number( $no_issues_charge_guarantees );
499
    if ( defined $no_issues_charge_guarantees ) {
512
    if ( defined $no_issues_charge_guarantees ) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-3 / +11 lines)
Lines 770-783 Link Here
770
                                        <li><span class="circ-hlt return-claims">Return claims: Patron has [% return_claims.count | html %] RETURN CLAIMS.</span>
770
                                        <li><span class="circ-hlt return-claims">Return claims: Patron has [% return_claims.count | html %] RETURN CLAIMS.</span>
771
                                    [% END %]
771
                                    [% END %]
772
772
773
                                    [% IF ( charges ) %]
774
                                        [% INCLUDE 'blocked-fines.inc' fines = chargesamount %]
775
                                    [% END %]
776
773
777
                                    [% IF age_limitations %]
774
                                    [% IF age_limitations %]
778
                                        [% INCLUDE 'category-out-of-age-limit.inc' %]
775
                                        [% INCLUDE 'category-out-of-age-limit.inc' %]
779
                                    [% END %]
776
                                    [% END %]
780
777
778
                                    [% IF ( charges ) %]
779
                                        [% INCLUDE 'blocked-fines.inc' fines = chargesamount %]
780
                                    [% END %]
781
                                    [% IF ( charges_guarantors_guarantees ) %]
782
                                        <li>
783
                                            <span class="circ-hlt">Charges:</span> Patron's guarantors and their other guarantees collectively owe [% charges_guarantors_guarantees | $Price %].
784
                                            [% IF noissues %]
785
                                                <span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
786
                                            [% END %]
787
                                        </li>
788
                                    [% END %]
781
                                    [% IF ( charges_guarantees ) %]
789
                                    [% IF ( charges_guarantees ) %]
782
                                        <li>
790
                                        <li>
783
                                            <span class="circ-hlt">Charges:</span> Patron's guarantees collectively owe [% chargesamount_guarantees | $Price %].
791
                                            <span class="circ-hlt">Charges:</span> Patron's guarantees collectively owe [% chargesamount_guarantees | $Price %].
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt (-13 / +20 lines)
Lines 46-63 Link Here
46
  <div class="dialog alert">You are not allowed to use batch checkout for this patron</div>
46
  <div class="dialog alert">You are not allowed to use batch checkout for this patron</div>
47
[% ELSIF patron and noissues and not checkout_infos %]
47
[% ELSIF patron and noissues and not checkout_infos %]
48
  <div class="dialog alert">
48
  <div class="dialog alert">
49
    Cannot check out!
49
      Cannot check out!
50
    [% IF charges %]
50
      [% IF ( charges ) %]
51
      <span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
51
          [% INCLUDE 'blocked-fines.inc' fines = chargesamount %]
52
    [% END %]
52
      [% END %]
53
    [% IF charges_guarantees %]
53
      [% IF ( charges_guarantors_guarantees ) %]
54
        <li>
54
          <li>
55
            <span class="circ-hlt">Charges:</span> Patron's guarantees collectively owe [% chargesamount_guarantees | $Price %].
55
              <span class="circ-hlt">Charges:</span> Patron's guarantors and their other guarantees collectively owe [% charges_guarantors_guarantees | $Price %].
56
        </li>
56
              [% IF noissues %]
57
        <li>
57
                  <span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
58
            <span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
58
              [% END %]
59
        </li>
59
          </li>
60
    [% END %]
60
      [% END %]
61
      [% IF ( charges_guarantees ) %]
62
          <li>
63
              <span class="circ-hlt">Charges:</span> Patron's guarantees collectively owe [% chargesamount_guarantees | $Price %].
64
              [% IF noissues %]
65
                  <span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
66
              [% END %]
67
          </li>
68
      [% END %]
61
  </div>
69
  </div>
62
[% ELSIF patron and not checkout_infos %]
70
[% ELSIF patron and not checkout_infos %]
63
  <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/circ/circulation.pl">
71
  <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/circ/circulation.pl">
64
- 

Return to bug 19382