[Koha-bugs] [Bug 20997] Add Koha::Account::Line::apply

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jun 26 16:56:30 CEST 2018


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

--- Comment #2 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 76452
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=76452&action=edit
Bug 20997: Add Koha::Account::Line::apply method

This patch implements the ->apply() method for account lines.
It will only work on credit lines, and raise an exception otherwise.

It implements ->is_credit() as well.

To test:
- Apply this patch
- Run:
  $ kshell
 k$ prove t/db_dependent/Koha/Account/Lines.t
=> SUCCESS: Tests pass!
- Check all use cases are covered by the tests
- Sign off :-D

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


More information about the Koha-bugs mailing list