Acquisitions EDI invoice creation needs better logging
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
EG 3.1.6
I finally found the reason why an EDI INVOIC message in acq.edi_message was successfully processed but no invoice created in acq.invoice. The transaction was rolled back for what apparently was no reason.
Relevant logs:
[INFO:16636:
[INFO:16636:
[INFO:16636:
[INFO:17436:
[INFO:18553:
[INFO:18553:
After much diagnosis, it turned out to be a silent failure due to a quantity mismatch. This line of code:
if ($orig_
Located in Invoice.pm around line 102
This statement will throw the process into an error and not process any of the invoice if one of the reported EDI quantities in the EDI message is different than the number of related rows in acq.lineitem_
A more helpful error message in the logs would save us time in the future. A message in acq.edi_
Changed in evergreen: | |
status: | New → Confirmed |
tags: | added: acq edi |
tags: |
added: acq-edi acq-invoice removed: edi |
Confirming that this is still an issue in 3.5