From: Jason Stephenson Date: Tue, 24 Nov 2015 18:57:33 +0000 (-0500) Subject: LP 1519465: POs with spaces in the name cause EDI problems. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=39cd8725b42ec2312ff238bf3367784477172dca;p=Evergreen.git 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 --- 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:([^:]+)/,