Koha::Acquisition::Orders object set class
my $late_orders = $orders->filter_by_lates($params);
Filter an order set given different parameters.
This is the equivalent method of the former GetLateOrders C4 subroutine
$params can be:
delay
the number of days the basket has been closedbookseller_id
the bookseller idestimated_from
Beginning of the estimated delivery dateestimated_to
End of the estimated delivery datemy $new_rs = $orders->filter_by_active;
Returns a new resultset filtering orders that are not active.
$orders->filter_by_current
Return the orders of the set that have not been cancelled.
$orders->filter_by_cancelled
Return the orders of the set that have been cancelled.
my $orders = $orders->filter_by_id_including_transfers( { ordernumber => $ordernumber } );
When searching for orders by ordernumber, include the aqorders_transfers table so we can find orders that have changed their ordernumber as the result of a transfer