Koha::Acquisition::Order Object class
Overloaded new method for backwards compatibility.
Overloaded store method for backwards compatibility.
$order->add_item( $itemnumber );
Link an item to this order.
my $basket = Koha::Acquisition::Orders->find( $id )->basket;
Returns the basket associated to the order.
my $fund = $order->fund
Returns the fund (aqbudgets) associated to the order.
my $invoice = $order->invoice
Returns the invoice associated to the order.
my $subscription = $order->subscription
Returns the subscription associated to the order.
my $items = $order->items
Returns the items associated to the order.
my $biblio = $order->biblio
Returns the bibliographic record associated to the order
my $duplicated_order = $order->duplicate_to($basket, [$default_values]);
Duplicate an existing order and attach it to a basket. $default_values can be specified as a hashref that contain default values for the different order's attributes. Items will be duplicated as well but barcodes will be set to null.