EDI: protect against invalid order response
authorBill Erickson <berick@esilibrary.com>
Mon, 3 Dec 2012 14:20:29 +0000 (09:20 -0500)
committerDan Scott <dscott@laurentian.ca>
Wed, 23 Jan 2013 05:47:50 +0000 (00:47 -0500)
commit12e207a1f001fcb2b7a49207fc2a470c74c2152f
treec1214c407abe22714c0b4ec89042eee265ae255e
parent7aeee191a3ce0ae2d291191cff5dbca3d769c8f9
EDI: protect against invalid order response

Do not attempt to createI EDI messages for order responses which
reference nonexistent purchase orders, since it results in
transaction commit errors on invalid foreign keys, preventing
subsequent EDI files from getting processed.  Instead, log it
and skip it.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/EDI.pm