From 3048633841f551e4185dc35310b3fef52e93f1d4 Mon Sep 17 00:00:00 2001 From: paulcortez Date: Sun, 11 Feb 2024 03:47:39 +0800 Subject: [PATCH] added warehouse stockin qty added warehouse stockin qty --- application/controllers/Pages.php | 2 +- application/views/pages/dashboard.php | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/application/controllers/Pages.php b/application/controllers/Pages.php index dbf770f..2e9b0c4 100644 --- a/application/controllers/Pages.php +++ b/application/controllers/Pages.php @@ -1355,7 +1355,7 @@ class Pages extends CI_controller } if($result->num_rows() > 0) - echo json_encode(array("success"=>true, "data" => $row, "htmlTable" => $htmlTable, "KWHData" => $kwhRow->endingqty)); + echo json_encode(array("success"=>true, "data" => $row, "htmlTable" => $htmlTable, "KWHData" => $kwhRow)); else echo json_encode(array("success"=>false, "data" => "No Record")); } diff --git a/application/views/pages/dashboard.php b/application/views/pages/dashboard.php index 06ee49b..a55dfb0 100644 --- a/application/views/pages/dashboard.php +++ b/application/views/pages/dashboard.php @@ -142,10 +142,8 @@
@@ -223,6 +221,9 @@
' + ' ' + - '

Quantity Remaining in Warehouse: ' + KWHData + '

' + - '

' + + '

Beginning Quantity in Warehouse: ' + ((Number(KWHData["beginningqty"]) === 0) ? KWHData["inqty"] : KWHData["beginningqty"]) + '

' + + '

Quantity Remaining in Warehouse: ' + KWHData["endingqty"] + '

' + ' ' + ' '; }