[Koha-bugs] [Bug 15895] Add Koha::Account module, use Koha::Account::pay internally for recordpayment

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Feb 29 11:25:21 CET 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15895

--- Comment #2 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Comment on attachment 48331
  --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=48331
Bug 15895 - Add Koha::Account module, use Koha::Account::pay internally for
recordpayment

Review of attachment 48331:
 --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=15895&attachment=48331)
-----------------------------------------------------------------

::: 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?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list