Lines 3411-3417
subtest '_FixOverduesOnReturn' => sub {
Link Here
|
3411 |
C4::Circulation::_FixOverduesOnReturn( $patron->{borrowernumber}, $item->itemnumber, 1, 'RETURNED' ); |
3411 |
C4::Circulation::_FixOverduesOnReturn( $patron->{borrowernumber}, $item->itemnumber, 1, 'RETURNED' ); |
3412 |
|
3412 |
|
3413 |
$accountline->_result()->discard_changes(); |
3413 |
$accountline->_result()->discard_changes(); |
3414 |
$offset = Koha::Account::Offsets->search({ debit_id => $accountline->id, type => 'Forgiven' })->next(); |
3414 |
$offset = Koha::Account::Offsets->search({ debit_id => $accountline->id, type => 'CREATE' })->next(); |
3415 |
is( $offset, undef, "No offset created when trying to forgive fine with no outstanding balance" ); |
3415 |
is( $offset, undef, "No offset created when trying to forgive fine with no outstanding balance" ); |
3416 |
isnt( $accountline->status, 'UNRETURNED', 'Open fine ( account type OVERDUE ) has been closed out ( status not UNRETURNED )'); |
3416 |
isnt( $accountline->status, 'UNRETURNED', 'Open fine ( account type OVERDUE ) has been closed out ( status not UNRETURNED )'); |
3417 |
is( $accountline->status, 'RETURNED', 'Passed status has been used to set as RETURNED )'); |
3417 |
is( $accountline->status, 'RETURNED', 'Passed status has been used to set as RETURNED )'); |
3418 |
- |
|
|