View | Details | Raw Unified | Return to bug 22435
Collapse All | Expand All

(-)a/t/db_dependent/Accounts.t (-4 / +4 lines)
Lines 950-956 subtest "Koha::Account::non_issues_charges tests" => sub { Link Here
950
        {
950
        {
951
            credit_id => $credit->id,
951
            credit_id => $credit->id,
952
            debit_id  => $debit->id,
952
            debit_id  => $debit->id,
953
            type      => 'Payment',
953
            type      => 'APPLY',
954
            amount    => 0
954
            amount    => 0
955
        }
955
        }
956
    )->store();
956
    )->store();
Lines 983-989 subtest "Koha::Account::non_issues_charges tests" => sub { Link Here
983
        {
983
        {
984
            credit_id => $credit->id,
984
            credit_id => $credit->id,
985
            debit_id  => $debit->id,
985
            debit_id  => $debit->id,
986
            type      => 'Payment',
986
            type      => 'APPLY',
987
            amount    => 0
987
            amount    => 0
988
        }
988
        }
989
    )->store();
989
    )->store();
Lines 1017-1023 subtest "Koha::Account::non_issues_charges tests" => sub { Link Here
1017
        {
1017
        {
1018
            credit_id => $credit->id,
1018
            credit_id => $credit->id,
1019
            debit_id  => $debit->id,
1019
            debit_id  => $debit->id,
1020
            type      => 'Payment',
1020
            type      => 'APPLY',
1021
            amount    => 0
1021
            amount    => 0
1022
        }
1022
        }
1023
    )->store();
1023
    )->store();
Lines 1084-1090 subtest "Koha::Account::Offset credit & debit tests" => sub { Link Here
1084
        {
1084
        {
1085
            credit_id => undef,
1085
            credit_id => undef,
1086
            debit_id  => undef,
1086
            debit_id  => undef,
1087
            type      => 'Payment',
1087
            type      => 'CREATE',
1088
            amount    => 0,
1088
            amount    => 0,
1089
        }
1089
        }
1090
    )->store();
1090
    )->store();
(-)a/t/db_dependent/Circulation.t (-2 / +1 lines)
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
- 

Return to bug 22435