From 08d7eeb3545d289b46753913ff852327bebfa5f3 Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Mon, 29 Apr 2013 12:32:48 -0400 Subject: [PATCH] Bug 10152: Default sorting wrong in parcels.pl When you are receiving an order, the list of existing invoices should appear in reverse chronological order. Unfortunately, right now it appears in regular chronological order. To test: 1) Make sure you have multiple invoices that have varying shipment dates for a vendor. We will assume this vendor is called "Example Vendor." 2) Choose the "Receive shipments" button on the Example Vendor page. 3) Note that the invoices are sorted by regular chronological order. 4) Apply patch. 5) Refresh "Receive shipment" page. Note that invoices are now sorted in reverse chronological order. 6) Sign off. Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer Works as described. Signed-off-by: Jared Camins-Esakov (cherry picked from commit 23b9661efad0e0fd0deb3e3d025e08c8cfbc1fd3) Signed-off-by: Jared Camins-Esakov --- acqui/parcels.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acqui/parcels.pl b/acqui/parcels.pl index de868df8b2..405ff64fe8 100755 --- a/acqui/parcels.pl +++ b/acqui/parcels.pl @@ -79,7 +79,7 @@ use C4::Budgets; my $input = CGI->new; my $booksellerid = $input->param('booksellerid'); -my $order = $input->param('orderby') || 'datereceived desc'; +my $order = $input->param('orderby') || 'shipmentdate desc'; my $startfrom = $input->param('startfrom'); my $code = $input->param('filter'); my $datefrom = $input->param('datefrom'); -- 2.39.5