Bugzilla – Attachment 22350 Details for
Bug 11128
On cancelling receipt, the order is still listed in the received orders
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11128: On cancelling receipt, the order is still listed in the received orders
Bug-11128-On-cancelling-receipt-the-order-is-still.patch (text/plain), 1.41 KB, created by
Jonathan Druart
on 2013-10-24 10:27:00 UTC
(
hide
)
Description:
Bug 11128: On cancelling receipt, the order is still listed in the received orders
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-10-24 10:27:00 UTC
Size:
1.41 KB
patch
obsolete
>From def9a7492b013b78c34decba5aa981393eb9a239 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Thu, 24 Oct 2013 12:21:14 +0200 >Subject: [PATCH] Bug 11128: On cancelling receipt, the order is still listed > in the received orders > >Cause: The list of received orders is built *before* cancelling the receipt! > >Test plan: >0/ don't apply the patch >1/ create a basket >2/ create an order with 3 items >3/ receive 1 item >4/ cancel the receipt >=> The order is still listed in the received orders table! >5/ apply the patch >6/ do again steps 1 to 4 >=> The order is not listed in the received orders table. >--- > acqui/parcel.pl | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/acqui/parcel.pl b/acqui/parcel.pl >index 028e957..61ec330 100755 >--- a/acqui/parcel.pl >+++ b/acqui/parcel.pl >@@ -119,7 +119,7 @@ my ($template, $loggedinuser, $cookie) > > my $invoiceid = $input->param('invoiceid'); > my $invoice; >-$invoice = GetInvoiceDetails($invoiceid) if $invoiceid; >+$invoice = GetInvoice($invoiceid) if $invoiceid; > > unless( $invoiceid and $invoice->{invoiceid} ) { > $template->param( >@@ -140,6 +140,8 @@ if ($op eq 'cancelreceipt') { > } > } > >+$invoice = GetInvoiceDetails($invoiceid) if $invoiceid; >+ > my $booksellerid = $invoice->{booksellerid}; > my $bookseller = GetBookSellerFromId($booksellerid); > my $gst = $bookseller->{gstrate} // C4::Context->preference("gist") // 0; >-- >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 11128
:
22350
|
22388
|
22437