Bug 26524: Add Koha::Acquisition::Basket->orders
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 23 Sep 2020 18:56:41 +0000 (15:56 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 29 Sep 2020 13:32:41 +0000 (15:32 +0200)
commit2900cee991511862501c3902c901f5f9e9289f9b
tree02def2dae4d41eea0513c3eb2a86aaced10ff920
parent00e01c5555ff73b00a1dca17e5fc32c93676034a
Bug 26524: Add Koha::Acquisition::Basket->orders

This patch adds a handy accessor for a basket's orders. It can be used
to embed orders on an API call or be used in controller scripts to
replace C4::* methods.

To test:
1. Apply this patches
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Acquisition/Basket.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Acquisition/Basket.pm
Koha/Schema/Result/Aqbasket.pm