From a4e1c502726a23c31f7c2084577b30aa376b3124 Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Wed, 24 May 2017 01:54:02 -0400 Subject: [PATCH] Bug 5395: Update C4::Acquisition::SearchOrders POD Comparing the perldoc to the function: - basketname - basketgroupname - budget_id Were missing. This adds them. Also, a description of ordernumber and search were added, as they are not self-evident by their name alone. There are no code changes, so all tests should pass or fail identically before and after patch. Signed-off-by: Katrin Fischer Fixed typo basetgroupname Signed-off-by: Marcel de Rooy Signed-off-by: Kyle M Hall (cherry picked from commit 8ed599113c7592ec2e2227e3a7265a7e9cc9ca0e) Signed-off-by: Katrin Fischer --- C4/Acquisition.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm index e2e7ecc404..7dc3f24279 100644 --- a/C4/Acquisition.pm +++ b/C4/Acquisition.pm @@ -1655,17 +1655,22 @@ sub _cancel_items_receipt { @results = &SearchOrders({ ordernumber => $ordernumber, search => $search, - biblionumber => $biblionumber, ean => $ean, booksellerid => $booksellerid, basketno => $basketno, + basketname => $basketname, + basketgroupname => $basketgroupname, owner => $owner, pending => $pending ordered => $ordered + biblionumber => $biblionumber, + budget_id => $budget_id }); -Searches for orders. +Searches for orders filtered by criteria. +C<$ordernumber> Finds matching orders or transferred orders by ordernumber. +C<$search> Finds orders matching %$search% in title, author, or isbn. C<$owner> Finds order for the logged in user. C<$pending> Finds pending orders. Ignores completed and cancelled orders. C<$ordered> Finds orders to receive only (status 'ordered' or 'partial'). -- 2.39.5