Bugzilla – Attachment 24503 Details for
Bug 11549
After transferring an order, receive and cancel the receipt will delete the order
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11549: [follow-up] Make NewOrder calculate new parent_ordernumber
Bug-11549-follow-up-Make-NewOrder-calculate-new-pa.patch (text/plain), 1.18 KB, created by
Jonathan Druart
on 2014-01-17 14:20:09 UTC
(
hide
)
Description:
Bug 11549: [follow-up] Make NewOrder calculate new parent_ordernumber
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-01-17 14:20:09 UTC
Size:
1.18 KB
patch
obsolete
>From 4b82e7a19c3cb963f6cd96c071e89a73c9db2f39 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Fri, 17 Jan 2014 11:21:05 +0100 >Subject: [PATCH] Bug 11549: [follow-up] Make NewOrder calculate new > parent_ordernumber > >If parent_ordernumber is not set in NewOrder parameter, it is >automatically set to ordernumber. >This patch only avoid code duplication. > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >This solution is better! >--- > C4/Acquisition.pm | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) > >diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm >index 67ea46e..56c2d7f 100644 >--- a/C4/Acquisition.pm >+++ b/C4/Acquisition.pm >@@ -1814,16 +1814,11 @@ sub TransferOrder { > $rv = $sth->execute($ordernumber); > > delete $order->{'ordernumber'}; >+ delete $order->{parent_ordernumber}; > $order->{'basketno'} = $basketno; > my $newordernumber; > (undef, $newordernumber) = NewOrder($order); > >- $dbh->do( q{ >- UPDATE aqorders >- SET parent_ordernumber = ordernumber >- WHERE ordernumber = ? >- }, {}, $newordernumber ); >- > $query = q{ > UPDATE aqorders_items > SET ordernumber = ? >-- >1.7.10.4
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 11549
:
24274
|
24275
|
24276
|
24402
|
24403
|
24404
|
24487
|
24503
|
24546
|
24547
|
24548
|
24549