EDI: protect against invalid order response
authorBill Erickson <berick@esilibrary.com>
Mon, 3 Dec 2012 14:20:29 +0000 (09:20 -0500)
committerBill Erickson <berick@esilibrary.com>
Fri, 11 Jan 2013 18:14:55 +0000 (13:14 -0500)
commit3e2fe68e4ccb68968cbec0861c87b7b6ccf0d5e5
treedabc3f1f9994659306e12c276ca5f8c1ad8d15bb
parent26ec1b3cfa116e865fb398462018ac2ed4aec605
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>
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/EDI.pm