Acq: Try harder to associate incoming EDI messages with exact right account
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 23 Jan 2013 22:01:46 +0000 (17:01 -0500)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Tue, 5 Feb 2013 22:17:25 +0000 (17:17 -0500)
commit4292695f7894b4918aab75cdfc3e3f14e2e9d7f3
treeb9dc80ae2e4a6c7f3cf2e3f1a7c48c31f51d4868
parent06f1e7aec33657696b2d69ddd87bac5f93b80746
Acq: Try harder to associate incoming EDI messages with exact right account

Sites use many very nearly identical EDI accounts (same host and
credentials) with different values only for the label and the vendcode.
This allows mapping of an order to a profile on the vendor side.

The problem with this is that the edi_fetcher and the processes it kicks
off did not know how to map incoming messages to the right account based
on vendcode.  That code simply iterated through accounts, using host
information and login credentials, and grabbing what it can find, as if
there will be no other Evergreen-side EDI "accounts" with the same
hostname and loging credentials.

This should help with that.

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