]> git.koha-community.org Git - koha.git/commit
Bug 25670: Add filter_by_active and filter_by_id_including_transfers
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 3 Jun 2020 19:58:33 +0000 (16:58 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 28 Jan 2021 15:41:10 +0000 (16:41 +0100)
commit44c570e4330a052e4e92b7fbc04465ed3a7a9340
treed5111d3a9225f6363d8aa7b450928aadfb1bf826
parent94f27023d88ab6dbff8ae83f2ee0aa4c71f86ae4
Bug 25670: Add filter_by_active and filter_by_id_including_transfers

This patch introduces a method to filter on the ordernumber, looking for
it on the aqorders_transfers table ('ordernumber_from' field).

It also adds a method for filtering on active orders.

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

lib

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Acquisition/Orders.pm