https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15895
--- Comment #3 from Kyle M Hall <[email protected]> --- (In reply to Jonathan Druart from comment #2) > Comment on attachment 48331 [details] [review] > Bug 15895 - Add Koha::Account module, use Koha::Account::pay internally for > recordpayment > > Review of attachment 48331 [details] [review]: > ----------------------------------------------------------------- > > ::: t/db_dependent/Accounts.t > @@ +158,5 @@ > > > > + my $line1 = Koha::Account::Line->new({ borrowernumber => > > $borrower->borrowernumber, amountoutstanding => 100 })->store(); > > + my $line2 = Koha::Account::Line->new({ borrowernumber => > > $borrower->borrowernumber, amountoutstanding => 200 })->store(); > > + $line1->_result->discard_changes; > > + $line2->_result->discard_changes; > > Why do you need these 2 calls? The discard_changes call updates the objects from the database. Without them, any default values inserted by MySQL are not available in the initial object. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
