LP#1949243: tweak FTX and LIN in EDI messages user/jeffdavis/lp1949243-edi-ftx-lin
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Fri, 29 Oct 2021 23:28:20 +0000 (16:28 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Fri, 29 Oct 2021 23:28:20 +0000 (16:28 -0700)
commit371196c9e7ce67bf0b2d4f48443b3dbaf51356b2
treebb98090bbb6ee4543a4d75e4d1f64a3428694fd8
parentc67ca10b6ee9b54ffd8868ec9e406f2e401a674b
LP#1949243: tweak FTX and LIN in EDI messages

There are a couple of errors in EDIWriter's output:

1. The FTX line is missing a field. We produce FTX+LIN+1+First Nations
but should be producing FTX+LIN+1++First Nations (note the extra +
sign).

2. We are enumerating lineitems using the internal lineitem ID (e.g.
LIN+523964), but they should be enumerated sequentially starting at 1
(e.g. LIN+1).

This commit fixes both errors.

Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Open-ILS/src/perlmods/lib/OpenILS/Utils/EDIWriter.pm