LP#1739465 EDI consistent use of buyer org unit san
authorBill Erickson <berickxx@gmail.com>
Tue, 19 Dec 2017 22:50:38 +0000 (17:50 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 25 Jan 2018 18:47:13 +0000 (13:47 -0500)
Use the org unit (buyer) SAN instead of the the seller SAN when the
BUYER_ID_INCLUDE_VENDCODE EDI attribute is enabled.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jason Boyer <jboyer@library.in.gov>
Open-ILS/src/perlmods/lib/OpenILS/Utils/EDIWriter.pm

index 713d7c0..b0349ee 100644 (file)
@@ -169,7 +169,7 @@ sub compile_po {
     $compiled{buyer_code} = $po->provider->edi_default->vendacct;
 
     $compiled{buyer_code} = # B&T
-        $compiled{vendor_san}.' '.$po->provider->edi_default->vendcode
+        $compiled{org_unit_san}.' '.$po->provider->edi_default->vendcode
         if $compiled{edi_attrs}->{BUYER_ID_INCLUDE_VENDCODE};
 
     $compiled{buyer_code} = $po->provider->edi_default->vendcode