[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 18:59:51 CEST 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20997
--- Comment #4 from Josef Moravec <josef.moravec at gmail.com> ---
Created attachment 76460
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=76460&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
Signed-off-by: Josef Moravec <josef.moravec at gmail.com>
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list