diff --git a/app/Controllers/PrintResult.php b/app/Controllers/PrintResult.php
index d909001..5d0d0dd 100644
--- a/app/Controllers/PrintResult.php
+++ b/app/Controllers/PrintResult.php
@@ -111,7 +111,8 @@ class PrintResult extends BaseController {
$resultTest ="";
- $items = end($resultData);
+ $notes = end($resultData);
+ $note = $notes['RESULT'] == "" ? "-" : $notes['RESULT'];
// Untuk Collection
if ($data[1] != null) {
@@ -136,7 +137,7 @@ class PrintResult extends BaseController {
|
- ".$items['RESULT']."
+ ".$note."
|
@@ -187,7 +188,8 @@ class PrintResult extends BaseController {
$space="";
if ($item['DEPTH'] > 0) {
- for ($i=0; $i<$item['DEPTH']; $i++) {
+ $j=0;
+ for ($j=0; $j<$item['DEPTH']; $j++) {
$space .= " ";
}
}
@@ -211,7 +213,7 @@ class PrintResult extends BaseController {
}
// Melebihi batas Kertas
- if($i % 21 == 0) {
+ if($i % 20 == 0) {
$resultTest .= "";
$fullPage .= $headPage.$resultTest.$footerPage.$lastDiv;
$i=0;
@@ -338,8 +340,6 @@ class PrintResult extends BaseController {
$results = $query->getResultArray();
- // var_dump($results);die();
-
$data_urine = array_filter($results, function($item) {
$chapterid = $item["CHAPID"];
$tesscode = $item['TESTCODE'];
@@ -364,7 +364,7 @@ class PrintResult extends BaseController {
$fullPage = "";
-
+
if ($data_urine != null && count($data_urine) > 1) {
$fullPage .= $this->otherTests($data_urine, $data);
}