Lines 783-802
sub CanBookBeIssued {
Link Here
|
783 |
|
783 |
|
784 |
if ( C4::Context->preference("IssuingInProcess") ) { |
784 |
if ( C4::Context->preference("IssuingInProcess") ) { |
785 |
if ( $non_issues_charges > $amountlimit && !$inprocess && !$allowfineoverride) { |
785 |
if ( $non_issues_charges > $amountlimit && !$inprocess && !$allowfineoverride) { |
786 |
$issuingimpossible{DEBT} = sprintf( "%.2f", $non_issues_charges ); |
786 |
$issuingimpossible{DEBT} = $non_issues_charges; |
787 |
} elsif ( $non_issues_charges > $amountlimit && !$inprocess && $allowfineoverride) { |
787 |
} elsif ( $non_issues_charges > $amountlimit && !$inprocess && $allowfineoverride) { |
788 |
$needsconfirmation{DEBT} = sprintf( "%.2f", $non_issues_charges ); |
788 |
$needsconfirmation{DEBT} = $non_issues_charges; |
789 |
} elsif ( $allfinesneedoverride && $non_issues_charges > 0 && $non_issues_charges <= $amountlimit && !$inprocess ) { |
789 |
} elsif ( $allfinesneedoverride && $non_issues_charges > 0 && $non_issues_charges <= $amountlimit && !$inprocess ) { |
790 |
$needsconfirmation{DEBT} = sprintf( "%.2f", $non_issues_charges ); |
790 |
$needsconfirmation{DEBT} = $non_issues_charges; |
791 |
} |
791 |
} |
792 |
} |
792 |
} |
793 |
else { |
793 |
else { |
794 |
if ( $non_issues_charges > $amountlimit && $allowfineoverride ) { |
794 |
if ( $non_issues_charges > $amountlimit && $allowfineoverride ) { |
795 |
$needsconfirmation{DEBT} = sprintf( "%.2f", $non_issues_charges ); |
795 |
$needsconfirmation{DEBT} = $non_issues_charges; |
796 |
} elsif ( $non_issues_charges > $amountlimit && !$allowfineoverride) { |
796 |
} elsif ( $non_issues_charges > $amountlimit && !$allowfineoverride) { |
797 |
$issuingimpossible{DEBT} = sprintf( "%.2f", $non_issues_charges ); |
797 |
$issuingimpossible{DEBT} = $non_issues_charges; |
798 |
} elsif ( $non_issues_charges > 0 && $allfinesneedoverride ) { |
798 |
} elsif ( $non_issues_charges > 0 && $allfinesneedoverride ) { |
799 |
$needsconfirmation{DEBT} = sprintf( "%.2f", $non_issues_charges ); |
799 |
$needsconfirmation{DEBT} = $non_issues_charges; |
800 |
} |
800 |
} |
801 |
} |
801 |
} |
802 |
|
802 |
|