EDIReader can misinterpret RFF+LI where PO name has /
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
New
|
Undecided
|
Unassigned |
Bug Description
We've seen a circumstance where a provider whose EDI attributes do not include LINEITEM_
Consider a PO that has the name "2024 / stuff" and a line item whose ID is 12345.
The outgoing ORDERS message will include:
RFF+LI:2024 / stuff / 12345
When the provider duly sends back an INVOIC, it will contain:
RFF+LI:2024 / stuff / 12345
However, EDIReader will parse that as the LI ID being 2024. (I haven't yet checked what the Ruby EDI translator would do).
Since Evergreen does not verify that (say) the RFF+ON matches the line item when it creates the invoice, the result would be either linking to the wrong LI (whose ID is 2024) or not finding any LI to link to at all, meaning that the invoice line item gets skipped entirely (see bug 1847614)