It would be great to have this accessor so developers can access the basket's orderlines in the basket context.
Created attachment 110616 [details] [review] Bug 26524: Unit tests
Created attachment 110617 [details] [review] 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
Created attachment 110622 [details] [review] Bug 26524: Unit tests Signed-off-by: David Nind <david@davidnind.com>
Created attachment 110623 [details] [review] 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>
Created attachment 110797 [details] [review] Bug 26524: Unit tests Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Created attachment 110798 [details] [review] 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>
Would love to see some code using this new method.
Created attachment 110914 [details] [review] Bug 26524: Save some processor cycles
(In reply to Jonathan Druart from comment #8) > Created attachment 110914 [details] [review] [review] > Bug 26524: Save some processor cycles XD
Pushed to master for 20.11, thanks to everybody involved!
enhancement will not be backported to 20.05.x