[Koha-bugs] [Bug 25670] Add useful methods to Koha::Acquisition::Orders

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 7 20:38:11 CET 2021


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

--- Comment #12 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 114941
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=114941&action=edit
Bug 25670: New orders included only if standing

The original implementation included new orders regardless they were
standing orders.

This patch makes the query respect that conditions found on
C4::Acquisitions::SearchOrders.

To test:
1. Apply the regression tests patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Acquisition/Orders.t
=> FAIL: More orders than expected are returned
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass! New orders are only considered if the basket
they are attached to, is marked as standing!
5. Verify the tests make sense
6. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

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


More information about the Koha-bugs mailing list