[Koha-bugs] [Bug 21727] Add Koha::Account::Line->adjust
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Dec 12 15:16:06 CET 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21727
Josef Moravec <josef.moravec at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #83117|0 |1
is obsolete| |
Attachment #83118|0 |1
is obsolete| |
--- Comment #27 from Josef Moravec <josef.moravec at gmail.com> ---
Created attachment 83121
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=83121&action=edit
Bug 21727: Unit tests for the refund case
This patch introduces tests for the behaviour when the negative adjust
exceedes the amount that was already paid. In this case, the line amount
is expected to be set to 0, and a credit with the payed amount created.
To test:
- Apply this patch
- Run:
$ kshell
k$ prove t/db_dependent/Koha/Account/Lines.t
=> SUCCESS: tests pass!
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
Signed-off-by: Josef Moravec <josef.moravec at gmail.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list