From 7614f1a41d11a467155a7097eca3a93a9aac5135 Mon Sep 17 00:00:00 2001 From: paulcortez Date: Mon, 7 Oct 2024 12:45:10 +0800 Subject: [PATCH] make series to use non strict search make series to use non strict search --- application/controllers/Pages.php | 2 +- application/models/ItemLedger.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/controllers/Pages.php b/application/controllers/Pages.php index c05845f..069c80b 100644 --- a/application/controllers/Pages.php +++ b/application/controllers/Pages.php @@ -1350,7 +1350,7 @@ class Pages extends CI_controller $this->ItemInquiryLog->catCode = $row->catCode; $this->ItemInquiryLog->brCode = $this->session->user["branch"]; $this->ItemInquiryLog->searchedBy = $this->session->user["username"]; - $this->ItemInquiryLog->dateSearched = date('m/d/Y'); + $this->ItemInquiryLog->dateSearched = date('Y-m-d'); $this->ItemInquiryLog->addNewData(); // --- END --- Log searched item diff --git a/application/models/ItemLedger.php b/application/models/ItemLedger.php index 3f7865b..163f008 100644 --- a/application/models/ItemLedger.php +++ b/application/models/ItemLedger.php @@ -42,7 +42,7 @@ class ItemLedger extends CI_Model $this->db->select("itemledger.*, items.*"); $this->db->from("itemledger"); $this->db->join("items", "itemledger.itemcode = items.itemcode", "left"); - $this->db->where("items.seriescode", $seriescode); + $this->db->like("items.seriescode", $seriescode); $this->db->where("itemledger.endingqty > 0"); if(!$includeKWH) $this->db->where("itemledger.brCode != 'KWH'"); // exclude KWH $this->db->where("itemledger.brCode NOT IN (SELECT brCode FROM branchexemption)");