<<

NAME

Koha::Acquisition::Orders object set class

API

Class methods

filter_by_lates

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 closed
bookseller_id the bookseller id
estimated_from Beginning of the estimated delivery date
estimated_to End of the estimated delivery date

filter_by_active

    my $new_rs = $orders->filter_by_active;

Returns a new resultset filtering orders that are not active.

filter_by_current

    $orders->filter_by_current

Return the orders of the set that have not been cancelled.

filter_by_cancelled

    $orders->filter_by_cancelled

Return the orders of the set that have been cancelled.

filter_by_id_including_transfers

    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

Internal methods

_type

object_class

<<