Lines 778-784
C4::Context->dbh->do("DELETE FROM accountlines");
Link Here
|
778 |
is( $offset->type, 'Fine', 'Account offset type is Fine' ); |
778 |
is( $offset->type, 'Fine', 'Account offset type is Fine' ); |
779 |
is( $offset->amount, '15.000000', 'Account offset amount is 15.00' ); |
779 |
is( $offset->amount, '15.000000', 'Account offset amount is 15.00' ); |
780 |
|
780 |
|
781 |
ModItem({ itype => 'BK' }, $biblionumber, $itemnumber, 1); |
781 |
t::lib::Mocks::mock_preference('WhenLostForgiveFine','0'); |
|
|
782 |
t::lib::Mocks::mock_preference('WhenLostChargeReplacementFee','0'); |
783 |
|
782 |
LostItem( $itemnumber, 1 ); |
784 |
LostItem( $itemnumber, 1 ); |
783 |
|
785 |
|
784 |
my $item = Koha::Database->new()->schema()->resultset('Item')->find($itemnumber); |
786 |
my $item = Koha::Database->new()->schema()->resultset('Item')->find($itemnumber); |
Lines 789-801
C4::Context->dbh->do("DELETE FROM accountlines");
Link Here
|
789 |
undef, $renewing_borrower->{borrowernumber} |
791 |
undef, $renewing_borrower->{borrowernumber} |
790 |
); |
792 |
); |
791 |
|
793 |
|
792 |
ok( $total_due == 12, 'Borrower only charged replacement fee with both WhenLostForgiveFine and WhenLostChargeReplacementFee enabled' ); |
794 |
is( $total_due, '15.000000', 'Borrower only charged replacement fee with both WhenLostForgiveFine and WhenLostChargeReplacementFee enabled' ); |
793 |
|
795 |
|
794 |
C4::Context->dbh->do("DELETE FROM accountlines"); |
796 |
C4::Context->dbh->do("DELETE FROM accountlines"); |
795 |
|
797 |
|
796 |
t::lib::Mocks::mock_preference('WhenLostForgiveFine','0'); |
|
|
797 |
t::lib::Mocks::mock_preference('WhenLostChargeReplacementFee','0'); |
798 |
|
799 |
C4::Overdues::UpdateFine( |
798 |
C4::Overdues::UpdateFine( |
800 |
{ |
799 |
{ |
801 |
issue_id => $issue2->id(), |
800 |
issue_id => $issue2->id(), |
802 |
- |
|
|