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)");