]> git.evergreen-ils.org Git - Evergreen.git/commit
ORDRSP processing - PO linkage and object refresh
authoratz <atz@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 15 Sep 2010 05:25:07 +0000 (05:25 +0000)
committeratz <atz@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 15 Sep 2010 05:25:07 +0000 (05:25 +0000)
commit26de32feb095cffe01f5a128ee760ed256cf71f7
tree0058c0e350e0c2f85f9470a1071ddc483decf8d6
parent945dba80a2e9d875652804537aa2f00783cbc6f8
ORDRSP processing - PO linkage and object refresh

Several objects get updated potentially several times during processing,
and it is important to retrieve the item after earlier updates because
some columns are being populated by DB default values or 'NOW', for example.
The first 'NOW' for create_time would be correct, the subsequent ones incorrect,
so the value(s) must be fetched.

In order that an edi_message shows up in the list associated with a PO, we take the
first valid PO number, if present.  Note that this mapping theoretically may vary:
multliple PO lineitems *could* appear in one response, but in practice, we
expect only one, so this should suffice.  This is also a good reason to prevent
splitting a PO after it has been sent.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@17690 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/src/perlmods/OpenILS/Application/Acq/EDI.pm