[Koha-bugs] [Bug 21043] Add routes to add debits to a patron's account

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 1 16:36:27 CET 2023


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

--- Comment #15 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 147568
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=147568&action=edit
Bug 21043: (follow-up) Return Koha::Account::Debit

This patch updates Koha::Account->add_debit from returning a
Koha::Account::Line object to returning a Koha::Account::Debit object.

This shouldn't make any difference for internal code at the moment, as
we're using Koha::Account::Line as the base class for ::Credit and
::Debit classes.. but we do overload the to_api_mapping and this is
causing some tests to fail.

We still need a little work here.

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


More information about the Koha-bugs mailing list