Koha-clms/Koha/Acquisition
Tomas Cohen Arazi 1b9f3621df
Bug 23843: Add mapping to Koha::Acquisition::Fund
This patch adds a to_api_mapping method to the class. This in effect
enables calling ->to_api on the object. The mapping is borrowed from the
API controller. It is not removed from the controller so we are able to
verify (through the tests) that there is no behavior change.
Once this is pushed we need to implement the counter-wise methods and
clean the controllers.
To test:
1. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/acquisitions_funds.t
=> SUCCESS: Tests pass
2. Apply this patch
3. Repeat (1)
=> SUCCESS: Tests still pass!
4. Sign off :-D

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-10-23 18:03:24 +01:00
..
Bookseller Bug 13726: Make Koha::Acq::Bookseller using Koha::Object 2016-12-30 11:54:32 +00:00
Invoice Bug 22541: Invoice adjustments should show invoice number and include link on ordered.pl and spent.pl 2019-04-11 11:45:24 +00:00
Basket.pm Bug 15774: Use Koha::Object(s) for additional fields 2019-03-07 20:37:05 +00:00
BasketGroup.pm Bug 20366: Add new method Koha::Acquisition::Basket->basket_group 2018-08-30 13:48:08 +00:00
BasketGroups.pm Bug 20366: Add new method Koha::Acquisition::Basket->basket_group 2018-08-30 13:48:08 +00:00
Baskets.pm Bug 15774: Use Koha::Object(s) for additional fields 2019-03-07 20:37:05 +00:00
Bookseller.pm Bug 23843: Add mapping to Koha::Acquisition::Bookseller 2019-10-23 18:03:21 +01:00
Booksellers.pm Bug 19130: (followup) Add POD 2017-08-25 11:53:44 -03:00
Budget.pm Bug 19826: Add K::Acq::Budget(s) and K::Acq::Fund(s) 2017-12-26 12:05:51 -03:00
Budgets.pm Bug 19826: Add tests 2017-12-26 12:52:01 -03:00
Currencies.pm Bug 15084: Fix conflict with bug 15446 (type vs _type) 2016-03-03 20:39:03 +00:00
Currency.pm Bug 16053: Do not remove the active flag when editing the active currency 2016-03-21 21:35:04 +00:00
Fund.pm Bug 23843: Add mapping to Koha::Acquisition::Fund 2019-10-23 18:03:24 +01:00
Funds.pm Bug 19826: Add tests 2017-12-26 12:52:01 -03:00
Invoice.pm Bug 20726: Add new method Acquisition::Order->invoice 2018-08-30 13:40:37 +00:00
Invoices.pm Bug 20726: Add new method Acquisition::Order->invoice 2018-08-30 13:40:37 +00:00
Order.pm Bug 22390: Never copy items if original order has been created from a subscription 2019-04-10 20:05:15 +00:00
Orders.pm Bug 19256: (QA followup) Add missing POD 2017-09-07 15:03:04 -03:00