Lines 549-558
subtest 'UpdateFine tests' => sub {
Link Here
|
549 |
{ order_by => { '-asc' => 'accountlines_id' } } |
549 |
{ order_by => { '-asc' => 'accountlines_id' } } |
550 |
); |
550 |
); |
551 |
is( $fines->count, 4, "New amount should be 0 so no fine added" ); |
551 |
is( $fines->count, 4, "New amount should be 0 so no fine added" ); |
552 |
ok( |
552 |
my @r = C4::Circulation::AddReturn( $item_1->barcode, $item_1->homebranch, 1 ); |
553 |
C4::Circulation::AddReturn( $item_1->barcode, $item_1->homebranch, 1 ), |
553 |
is( $r[1]->{WasReturned}, 1, "Returning the item and forgiving fines succeeds" ); |
554 |
"Returning the item and forgiving fines succeeds" |
|
|
555 |
); |
556 |
|
554 |
|
557 |
t::lib::Mocks::mock_preference( 'MaxFine', 0 ); |
555 |
t::lib::Mocks::mock_preference( 'MaxFine', 0 ); |
558 |
|
556 |
|
559 |
- |
|
|