Bugzilla – Attachment 61030 Details for
Bug 17605
EDI should set currency in order record on creation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17605: [STABLE] Add currency to orders generated by quotes
Bug-17605-STABLE-Add-currency-to-orders-generated-.patch (text/plain), 1.38 KB, created by
Marcel de Rooy
on 2017-03-13 12:12:39 UTC
(
hide
)
Description:
Bug 17605: [STABLE] Add currency to orders generated by quotes
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2017-03-13 12:12:39 UTC
Size:
1.38 KB
patch
obsolete
>From 4efbaac7fbcfc6a08e999640d446af1ad29dc33e Mon Sep 17 00:00:00 2001 >From: Colin Campbell <colin.campbell@ptfs-europe.com> >Date: Wed, 9 Nov 2016 14:37:33 +0000 >Subject: [PATCH] Bug 17605: [STABLE] Add currency to orders generated by > quotes >Content-Type: text/plain; charset=utf-8 > >Sets the vendors currency in the edi generated order >The currency used is agreed between vendor and library >and the value in the quote is optional > >Edifact potentially allows the currency to be overwitten >by specifying another currency in the CUX segment but >we know currently of no supplier doing this > >Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > Koha/EDI.pm | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/Koha/EDI.pm b/Koha/EDI.pm >index f3206ff..f0c3b48 100644 >--- a/Koha/EDI.pm >+++ b/Koha/EDI.pm >@@ -577,6 +577,7 @@ sub quote_item { > } > $order_quantity = 1; # attempts to create an orderline for each gir > } >+ my $vendor = $schema->resultset('Aqbookseller')->find( $quote->vendor_id ); > > # database definitions should set some of these defaults but dont > my $order_hash = { >@@ -593,6 +594,7 @@ sub quote_item { > uncertainprice => 0, > sort1 => q{}, > sort2 => q{}, >+ currency => $vendor->listprice->currency, > }; > > # suppliers references >-- >2.1.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 17605
:
57421
|
57811
|
61027
|
61028
|
61029
| 61030