LP#1513872 correct UNT value (don't include UNA,UNB)
authorBill Erickson <berickxx@gmail.com>
Wed, 2 Nov 2016 19:49:28 +0000 (15:49 -0400)
committerBill Erickson <berickxx@gmail.com>
Wed, 2 Nov 2016 19:49:28 +0000 (15:49 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Utils/EDIWriter.pm

index 613693a..49d1001 100644 (file)
@@ -407,7 +407,7 @@ EDI
     # number of newlines.  Add to count for lines below, not including
     # the UNZ segment.
     my $segments = $edi =~ tr/\n//;
-    $segments += 3; # UNS, CNT, UNT
+    $segments += 1; # UNS, CNT, UNT, but not UNA or UNB
 
     # EDI Trailer
     $edi .= <<EDI;