From 7844c5e4ed473a2b7b9e09a849ec1adadc7fe134 Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Tue, 24 Nov 2015 13:57:33 -0500 Subject: [PATCH] LP 1519465: POs with spaces in the name cause EDI problems. This is a small modification to the regular expression for parsing the id from the edi line item fields in EDIReader.pm that allows the ids to parse correctly when the PO name contained a space or spaces in it. This change was suggesting by Bill Erickson (berick) in http://irc.evergreen-ils.org/evergreen/2015-11-24#i_216736 Signed-off-by: Jason Stephenson Signed-off-by: Ben Shum --- Open-ILS/src/perlmods/lib/OpenILS/Utils/EDIReader.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Utils/EDIReader.pm b/Open-ILS/src/perlmods/lib/OpenILS/Utils/EDIReader.pm index 3a3ecc64fb..4c17d34cb1 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Utils/EDIReader.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Utils/EDIReader.pm @@ -32,7 +32,7 @@ my %edi_fields = ( ); my %edi_li_fields = ( - id => qr/^RFF\+LI:(?:\S+\/)?(\d+)/, + id => qr/^RFF\+LI:(?:[^\/]+\/)?(\d+)/, index => qr/^LIN\+([^\+]+)/, amount_billed => qr/^MOA\+203:([^:]+)/, net_unit_price => qr/^PRI\+AAA:([^:]+)/, -- 2.43.2