Bug 27017: Code more defensively in process_invoice
authorColin Campbell <colin.campbell@ptfs-europe.com>
Fri, 13 Nov 2020 13:46:13 +0000 (13:46 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 27 Oct 2022 18:03:49 +0000 (15:03 -0300)
commitc009c3fa81d6c87aede3bd3de1fd119c6516d319
tree92ac0b31779e180154cbe78b654b2dd17a2feeba
parent1cc21ca6bd5de7f6e31d8bc580416fa19a965313
Bug 27017: Code more defensively in process_invoice

This patch adds a check for ordernumber precence in the EDI Invoice
message lines and skips process if one is not found.

We log the failure as a trace log to allow administrators the oportunity
to track down the issue further.

We also add a trace log to entries to show which bib the invoice line
is receipting to.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/EDI.pm