From 75dd17dbe8d3586d73e146bc8dec5c4dea44601b Mon Sep 17 00:00:00 2001 From: cms Date: Tue, 25 Apr 2017 22:41:38 -0400 Subject: [PATCH] fix view 835 html report in edihistory --- library/edihistory/edih_x12file_class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/edihistory/edih_x12file_class.php b/library/edihistory/edih_x12file_class.php index 038578d9e..4ea7fcd34 100644 --- a/library/edihistory/edih_x12file_class.php +++ b/library/edihistory/edih_x12file_class.php @@ -1346,7 +1346,9 @@ class edih_x12_file { if ($trace) { foreach($env_ar['ST'] as $st) { if ($st['trace'] == $trace) { - $ret_ar = array_slice($seg_ar, $st['start'], $st['count'], $prskeys); + // have to add one to the count to capture the SE segment so html_str has data + // when called from edih_835_payment_html function in edih_835_html.php 4-25-17 SMW + $ret_ar = array_slice($seg_ar, $st['start'], $st['count']+1, $prskeys); break; } } -- 2.11.4.GIT