Bugzilla – Attachment 24403 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: FIX receive and cancel the receipt after a transfer.
Bug-11549-FIX-receive-and-cancel-the-receipt-after.patch (text/plain), 1.41 KB, created by
Biblibre Sandboxes
on 2014-01-15 14:57:41 UTC
(
hide
)
Description:
Bug 11549: FIX receive and cancel the receipt after a transfer.
Filename:
MIME Type:
Creator:
Biblibre Sandboxes
Created:
2014-01-15 14:57:41 UTC
Size:
1.41 KB
patch
obsolete
>From cf2d6498fb0b184be2abdd0cf946ddbd10cb9218 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Tue, 14 Jan 2014 12:06:34 +0100 >Subject: [PATCH] Bug 11549: FIX receive and cancel the receipt after a transfer. > >To reproduce the issue: >- transfer an order from a basket to another. Note the previous >ordernumber (X) and the new one (Y). >- receive the order >- cancel the receipt >- verify the order has been deleted: >select count(*) from aqorders where ordernumber=Y; >select * from aqorders_transfers where ordernumber_from = X; >The value for ordernumber_to is null. > >To test this patch: >- apply this patch >- transfer an order from a basket to another >- receive the order >- cancel the receipt >- verify the order still exist in the basket where the transfer has been > done. > >Signed-off-by: Sonia BOUIS <sonia.bouis@univ-lyon3.fr> >--- > C4/Acquisition.pm | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) > >diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm >index 99933e4..8e1e9d4 100644 >--- a/C4/Acquisition.pm >+++ b/C4/Acquisition.pm >@@ -1818,6 +1818,12 @@ sub TransferOrder { > my $newordernumber; > (undef, $newordernumber) = NewOrder($order); > >+ $dbh->do( q{ >+ UPDATE aqorders >+ SET parent_ordernumber = ordernumber >+ WHERE ordernumber = ? >+ }, {}, $newordernumber ); >+ > $query = qq{ > UPDATE aqorders_items > SET ordernumber = ? >-- >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 11549
:
24274
|
24275
|
24276
|
24402
|
24403
|
24404
|
24487
|
24503
|
24546
|
24547
|
24548
|
24549