From: Bill Erickson Date: Mon, 26 Nov 2012 15:10:36 +0000 (-0500) Subject: EDI: support po-name as secondary identifier X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=798ac7094c78b0453db1eb010dcfe48c39f040d0;p=evergreen%2Fequinox.git EDI: support po-name as secondary identifier If enabled, the PO name value will be sent to the EDI generator to be included in the EDI message as a secondary identifier for the purchase order. Vendors can then use this value as necessary, e.g. displaying the PO name on the vendor order site. Signed-off-by: Bill Erickson --- diff --git a/edi_order.tt2 b/edi_order.tt2 index 2cca34d707..9c6fe3b01f 100644 --- a/edi_order.tt2 +++ b/edi_order.tt2 @@ -24,6 +24,13 @@ ELSIF VENDOR_SAN == '1699342'; VENDOR_ULS = 1; END; + # if true, pass the PO name as a secondary identifier + # RFF+LI:/li_id + INC_PO_NAME = 0; + IF VENDOR_INGRAM; + INC_PO_NAME = 1; + END; + # GIR configuration -------------------------------------- INC_COPIES = 1; # copies on/off switch @@ -56,6 +63,10 @@ "po_number":[% target.id %], + [% IF INC_PO_NAME %] + "po_name":"[% target.name | replace('\/', ' ') | replace('"', '\"') %]", + [% END %] + "date":"[% date.format(date.now, '%Y%m%d') %]", "buyer":[