Koha-clms/t/db_dependent/Koha
Martin Renvoize 9bd650f98b
Bug 24080: Add 'payout' method to Koha::Account::Line
This enhancement adds a 'payout' method to Koha::Account::Line which can
be used to 'pay out' a credit to a patron.

When such a credit is 'paid out' this method will create a corresponding
account debit line with an amount equal to the amountoutstanding on the
original credit and the two acocuntlines will be immediately applied against
each other.

Test Plan:
1) Run the included tests and verify they pass.
2) Signoff

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-01-03 16:35:38 +00:00
..
Account Bug 24080: Add 'payout' method to Koha::Account::Line 2020-01-03 16:35:38 +00:00
Acquisition Bug 23927: Add tests 2019-11-27 09:18:27 +00:00
Biblio Bug 22144: (QA follow-up) Prepare the ground for other formats 2019-01-30 11:50:48 +00:00
BiblioUtils Bug 21798: replace gimme_a_biblio with build_sample_biblio 2019-01-28 18:53:28 +00:00
Cash Bug 23321: Allow setting of branch default 2019-09-23 11:39:22 +01:00
Charges Bug 23382: (RM follow-up) Days of the week discrepancies 2019-10-28 12:20:21 +00:00
Checkouts Bug 14697: (QA follow-up) Restore FK on issue_id and adjust tests 2019-10-31 12:05:27 +00:00
Club Bug 19618: Add tests 2019-10-01 08:05:58 +01:00
Config
…
Filter Bug 23793: Unit tests 2019-10-23 17:33:09 +01:00
IssuingRules
…
Item Bug 14334: Remove AutoCommit from tests 2018-12-14 13:42:37 +00:00
Library
…
Objects/Mixin Bug 23994: Fix random failure from AdditionalFields.t (U18) 2019-11-08 09:31:47 +00:00
Patron Bug 24016: Add a failing test for overwrite-able manager_id in Koha::Patron::Message 2020-01-02 14:53:21 +00:00
Patrons Bug 17359: Use a unicode character in tests 2019-11-06 17:03:37 +00:00
Plugins Bug 22706: (RM follow-up) Add unit tests 2019-10-31 12:21:22 +00:00
REST Bug 24191: Regression tests 2019-12-10 16:15:45 +00:00
SearchEngine Bug 23719: (follow-up) Add warn when passed invalid search field in marclist 2019-11-06 17:06:38 +00:00
Subscription Bug 17047: SQL reports management with Mana-KB 2019-01-23 14:39:26 +00:00
Tags Bug 21846: Add Koha::Tags::Approval(s) and Koha::Tags::Index(es) 2019-03-15 12:27:44 +00:00
Template/Plugin Bug 21073: (QA follow-up) Fix plugin-related tests 2019-06-20 08:35:46 +01:00
Z3950Responder Bug 24022: Try to fix 'connect failed' 2019-11-13 13:19:48 +00:00
Account.t Bug 23805: Drop type lookup as it's now a foreign key 2019-10-24 17:35:20 +01:00
ActionLogs.t Bug 22363: Add tests 2019-03-11 11:22:00 +00:00
ApiKeys.t
…
Authorities.t
…
Biblio.t Bug 22284: (QA follow-up) Make pickup locations be Koha::Library objects 2020-01-03 12:58:06 +00:00
BiblioFrameworks.t
…
Biblios.t Bug 22284: (QA follow-up) Make pickup locations be Koha::Library objects 2020-01-03 12:58:06 +00:00
Checkouts.t
…
CirculationRules.t Bug 22679: Delete related CirculationRules when Removing IssuingRule 2019-04-24 10:35:38 +00:00
Cities.t
…
ClassSortRules.t
…
ClassSources.t
…
ClassSplitRules.t
…
CsvProfiles.t
…
Database.t
…
GetDailyQuote.t Bug 14334: Remove AutoCommit from tests 2018-12-14 13:42:37 +00:00
Holds.t Bug 22008: (follow-up) Additional test fix and fix typo 2019-03-27 13:13:48 +00:00
IssuingRules.t Bug 18928: (bug 22679 follow-up) Do not remove all rules along with the issuing rule 2019-07-01 14:58:13 +01:00
Item.t Bug 22284: (QA follow-up) Make pickup locations be Koha::Library objects 2020-01-03 12:58:06 +00:00
ItemTypes.t Bug 20912: Move calculation to Koha::Fees 2019-03-07 17:27:36 +00:00
Items.t Bug 22284: (QA follow-up) Make pickup locations be Koha::Library objects 2020-01-03 12:58:06 +00:00
KeyboardShortcuts.t Bug 21411: (QA follow-up) fix tests 2019-05-10 18:59:39 +00:00
Libraries.t Bug 22284: (QA follow-up) Make pickup locations be Koha::Library objects 2020-01-03 12:58:06 +00:00
MarcSubfieldStructures.t
…
News.t
…
Notices.t
…
Object.t Bug 23825: table name is not always displayed 2019-11-13 16:23:30 +00:00
Objects.t Bug 21684: Fix delete methods and add more tests 2020-01-03 10:58:47 +00:00
Old.t Bug 24150: Add Koha::Old::*[s] 2020-01-03 10:51:29 +00:00
Patron.t Bug 23049: Update existing code to use debit_type 2019-10-24 17:24:15 +01:00
Patrons.t Bug 21684: Adjust some tests 2020-01-03 10:58:51 +00:00
Ratings.t
…
Reports.t
…
Reviews.t Bug 21817: Centralize the mock of userenv from tests 2019-01-02 20:18:29 +00:00
SMS_Providers.t
…
SearchField.t Bug 20589: (RM follow-up) Fix Koha::SearchField.t 2019-10-03 14:17:32 +01:00
SharedContent.t Bug 23075: (RM follow-up) Update mock in tests 2019-11-07 07:56:17 +00:00
Subscription.t Bug 17047: add a dedicated page for Mana setup 2019-01-23 14:39:26 +00:00
Suggestions.t Bug 22368: Make sure the tests will always pass 2019-03-11 12:53:29 +00:00
Tags.t Bug 21846: Add Koha::Tags::Approval(s) and Koha::Tags::Index(es) 2019-03-15 12:27:44 +00:00
Z3950Servers.t
…