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

(-)a/t/db_dependent/Accounts.t (-7 / +6 lines)
Lines 885-892 subtest "Koha::Account::Line::void tests" => sub { Link Here
885
885
886
    $line1->_result->discard_changes();
886
    $line1->_result->discard_changes();
887
    $line2->_result->discard_changes();
887
    $line2->_result->discard_changes();
888
    is( $line1->amountoutstanding, '0.000000', 'First fee has amount outstanding of 0' );
888
    is( $line1->amountoutstanding+0, 0, 'First fee has amount outstanding of 0' );
889
    is( $line2->amountoutstanding, '0.000000', 'Second fee has amount outstanding of 0' );
889
    is( $line2->amountoutstanding+0, 0, 'Second fee has amount outstanding of 0' );
890
890
891
    $account_payment->void();
891
    $account_payment->void();
892
892
Lines 897-907 subtest "Koha::Account::Line::void tests" => sub { Link Here
897
    $line2->_result->discard_changes();
897
    $line2->_result->discard_changes();
898
898
899
    is( $account_payment->accounttype, 'VOID', 'Voided payment accounttype is VOID' );
899
    is( $account_payment->accounttype, 'VOID', 'Voided payment accounttype is VOID' );
900
    is( $account_payment->amount, '0.000000', 'Voided payment amount is 0' );
900
    is( $account_payment->amount+0, 0, 'Voided payment amount is 0' );
901
    is( $account_payment->amountoutstanding, '0.000000', 'Voided payment amount outstanding is 0' );
901
    is( $account_payment->amountoutstanding+0, 0, 'Voided payment amount outstanding is 0' );
902
902
903
    is( $line1->amountoutstanding, '10.000000', 'First fee again has amount outstanding of 10' );
903
    is( $line1->amountoutstanding+0, 10, 'First fee again has amount outstanding of 10' );
904
    is( $line2->amountoutstanding, '20.000000', 'Second fee again has amount outstanding of 20' );
904
    is( $line2->amountoutstanding+0, 20, 'Second fee again has amount outstanding of 20' );
905
};
905
};
906
906
907
1;
907
1;
908
- 

Return to bug 18790