Lines 797-816
sub CanBookBeIssued {
Link Here
|
797 |
|
797 |
|
798 |
if ( C4::Context->preference("IssuingInProcess") ) { |
798 |
if ( C4::Context->preference("IssuingInProcess") ) { |
799 |
if ( $non_issues_charges > $amountlimit && !$inprocess && !$allowfineoverride) { |
799 |
if ( $non_issues_charges > $amountlimit && !$inprocess && !$allowfineoverride) { |
800 |
$issuingimpossible{DEBT} = sprintf( "%.2f", $non_issues_charges ); |
800 |
$issuingimpossible{DEBT} = $non_issues_charges; |
801 |
} elsif ( $non_issues_charges > $amountlimit && !$inprocess && $allowfineoverride) { |
801 |
} elsif ( $non_issues_charges > $amountlimit && !$inprocess && $allowfineoverride) { |
802 |
$needsconfirmation{DEBT} = sprintf( "%.2f", $non_issues_charges ); |
802 |
$needsconfirmation{DEBT} = $non_issues_charges; |
803 |
} elsif ( $allfinesneedoverride && $non_issues_charges > 0 && $non_issues_charges <= $amountlimit && !$inprocess ) { |
803 |
} elsif ( $allfinesneedoverride && $non_issues_charges > 0 && $non_issues_charges <= $amountlimit && !$inprocess ) { |
804 |
$needsconfirmation{DEBT} = sprintf( "%.2f", $non_issues_charges ); |
804 |
$needsconfirmation{DEBT} = $non_issues_charges; |
805 |
} |
805 |
} |
806 |
} |
806 |
} |
807 |
else { |
807 |
else { |
808 |
if ( $non_issues_charges > $amountlimit && $allowfineoverride ) { |
808 |
if ( $non_issues_charges > $amountlimit && $allowfineoverride ) { |
809 |
$needsconfirmation{DEBT} = sprintf( "%.2f", $non_issues_charges ); |
809 |
$needsconfirmation{DEBT} = $non_issues_charges; |
810 |
} elsif ( $non_issues_charges > $amountlimit && !$allowfineoverride) { |
810 |
} elsif ( $non_issues_charges > $amountlimit && !$allowfineoverride) { |
811 |
$issuingimpossible{DEBT} = sprintf( "%.2f", $non_issues_charges ); |
811 |
$issuingimpossible{DEBT} = $non_issues_charges; |
812 |
} elsif ( $non_issues_charges > 0 && $allfinesneedoverride ) { |
812 |
} elsif ( $non_issues_charges > 0 && $allfinesneedoverride ) { |
813 |
$needsconfirmation{DEBT} = sprintf( "%.2f", $non_issues_charges ); |
813 |
$needsconfirmation{DEBT} = $non_issues_charges; |
814 |
} |
814 |
} |
815 |
} |
815 |
} |
816 |
|
816 |
|