Bugzilla – Attachment 24092 Details for
Bug 11507
add the possibility to filter order by parent_ordernumber in receipt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11507 - add the possibility to filter order by parent_ordernumber in receipt After a transfer of order in a new basket, the ordernumber is changing. Sometimes, we keep a track the old ordernumber so it can be usefull to be able to retrieve the order b
Bug-11507---add-the-possibility-to-filter-order-by.patch (text/plain), 1.41 KB, created by
Koha Team University Lyon 3
on 2014-01-09 14:45:10 UTC
(
hide
)
Description:
Bug 11507 - add the possibility to filter order by parent_ordernumber in receipt After a transfer of order in a new basket, the ordernumber is changing. Sometimes, we keep a track the old ordernumber so it can be usefull to be able to retrieve the order b
Filename:
MIME Type:
Creator:
Koha Team University Lyon 3
Created:
2014-01-09 14:45:10 UTC
Size:
1.41 KB
patch
obsolete
>From 5b36140893a73a26927f0ec4a4a4487f2985c69e Mon Sep 17 00:00:00 2001 >From: Lyon3 Team <koha@univ-lyon3.fr> >Date: Thu, 9 Jan 2014 13:49:05 +0100 >Subject: [PATCH] Bug 11507 - add the possibility to filter order by parent_ordernumber in receipt > After a transfer of order in a new basket, the ordernumber is changing. Sometimes, we keep a track the old ordernumber so it can be usefull to be able to retrieve the order by the old ordernumber. > This patch add the possibility, when receiving shipment, to enter the old ordernumber and to retrieve the order. > >Test plan : >- choose an order and notes its ordernumber >- transfer it to a new a basket and notes the new ordernumber >_ in receipt page, in the filter box, enter the older ordernumber or the new ordernumber: you can find the order >--- > C4/Acquisition.pm | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm >index 99933e4..9a01b6e 100644 >--- a/C4/Acquisition.pm >+++ b/C4/Acquisition.pm >@@ -1708,8 +1708,8 @@ sub SearchOrders { > } > > if ( $ordernumber ) { >- $query .= ' AND (aqorders.ordernumber=?)'; >- push @args, $ordernumber; >+ $query .= ' AND (aqorders.ordernumber=? OR aqorders.parent_ordernumber=?)'; >+ push @args, $ordernumber,$ordernumber; > } > if( $search ) { > $query .= ' AND (biblio.title LIKE ? OR biblio.author LIKE ? OR biblioitems.isbn LIKE ?)'; >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11507
: 24092