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:17:19 +0000 (00:17 -0500)
commite125711a8b6de594705f2c7169eb5182fffef650
tree764956ef6135ac6fd25f65bc702a132292ba3b44
parentf5c247066b02a9e64c95520e23bf24488f6680f6
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