|
Lines 898-904
sub CanBookBeIssued {
Link Here
|
| 898 |
|
898 |
|
| 899 |
# Check the debt of this patrons guarantees |
899 |
# Check the debt of this patrons guarantees |
| 900 |
my $no_issues_charge_guarantees = $patron_borrowing_status->{NoIssuesChargeGuarantees}->{limit}; |
900 |
my $no_issues_charge_guarantees = $patron_borrowing_status->{NoIssuesChargeGuarantees}->{limit}; |
| 901 |
if ( defined $no_issues_charge_guarantees ) { |
901 |
if ( defined $no_issues_charge_guarantees && length($no_issues_charge_guarantees) > 0 ) { |
| 902 |
if ( $patron_borrowing_status->{NoIssuesChargeGuarantees}->{overlimit} && !$inprocess && !$allowfineoverride ) { |
902 |
if ( $patron_borrowing_status->{NoIssuesChargeGuarantees}->{overlimit} && !$inprocess && !$allowfineoverride ) { |
| 903 |
$issuingimpossible{DEBT_GUARANTEES} = $patron_borrowing_status->{NoIssuesChargeGuarantees}->{charge}; |
903 |
$issuingimpossible{DEBT_GUARANTEES} = $patron_borrowing_status->{NoIssuesChargeGuarantees}->{charge}; |
| 904 |
} elsif ( $patron_borrowing_status->{NoIssuesChargeGuarantees}->{overlimit} |
904 |
} elsif ( $patron_borrowing_status->{NoIssuesChargeGuarantees}->{overlimit} |
|
Lines 916-922
sub CanBookBeIssued {
Link Here
|
| 916 |
|
916 |
|
| 917 |
# Check the debt of this patrons guarantors *and* the guarantees of those guarantors |
917 |
# Check the debt of this patrons guarantors *and* the guarantees of those guarantors |
| 918 |
my $no_issues_charge_guarantors = $patron_borrowing_status->{NoIssuesChargeGuarantorsWithGuarantees}->{limit}; |
918 |
my $no_issues_charge_guarantors = $patron_borrowing_status->{NoIssuesChargeGuarantorsWithGuarantees}->{limit}; |
| 919 |
if ( defined $no_issues_charge_guarantors ) { |
919 |
if ( defined $no_issues_charge_guarantors && length($no_issues_charge_guarantors) > 0 ) { |
| 920 |
if ( $patron_borrowing_status->{NoIssuesChargeGuarantorsWithGuarantees}->{overlimit} |
920 |
if ( $patron_borrowing_status->{NoIssuesChargeGuarantorsWithGuarantees}->{overlimit} |
| 921 |
&& !$inprocess |
921 |
&& !$inprocess |
| 922 |
&& !$allowfineoverride ) |
922 |
&& !$allowfineoverride ) |