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

(-)a/t/db_dependent/Circulation.t (-2 / +4 lines)
Lines 840-846 C4::Context->dbh->do("DELETE FROM accountlines"); Link Here
840
            issue_id       => $issue->id(),
840
            issue_id       => $issue->id(),
841
            itemnumber     => $itemnumber,
841
            itemnumber     => $itemnumber,
842
            borrowernumber => $borrowernumber,
842
            borrowernumber => $borrowernumber,
843
            amount         => 0
843
            amount         => 0,
844
            type           => q{}
844
        }
845
        }
845
    );
846
    );
846
847
Lines 1007-1012 C4::Context->dbh->do("DELETE FROM accountlines"); Link Here
1007
            itemnumber     => $itemnumber,
1008
            itemnumber     => $itemnumber,
1008
            borrowernumber => $patron->{borrowernumber},
1009
            borrowernumber => $patron->{borrowernumber},
1009
            amount         => 1,
1010
            amount         => 1,
1011
            type           => q{}
1010
        }
1012
        }
1011
    );
1013
    );
1012
    UpdateFine(
1014
    UpdateFine(
Lines 1015-1020 C4::Context->dbh->do("DELETE FROM accountlines"); Link Here
1015
            itemnumber     => $itemnumber,
1017
            itemnumber     => $itemnumber,
1016
            borrowernumber => $patron->{borrowernumber},
1018
            borrowernumber => $patron->{borrowernumber},
1017
            amount         => 2,
1019
            amount         => 2,
1020
            type           => q{}
1018
        }
1021
        }
1019
    );
1022
    );
1020
    is( Koha::Account::Lines->search({ issue_id => $issue->id })->count, 1, 'UpdateFine should not create a new accountline when updating an existing fine');
1023
    is( Koha::Account::Lines->search({ issue_id => $issue->id })->count, 1, 'UpdateFine should not create a new accountline when updating an existing fine');
1021
- 

Return to bug 17575