make series to use non strict search

make series to use non strict search
pull/17/head
paulcortez 7 months ago
parent ddfe13a866
commit 7614f1a41d

@ -1350,7 +1350,7 @@ class Pages extends CI_controller
$this->ItemInquiryLog->catCode = $row->catCode; $this->ItemInquiryLog->catCode = $row->catCode;
$this->ItemInquiryLog->brCode = $this->session->user["branch"]; $this->ItemInquiryLog->brCode = $this->session->user["branch"];
$this->ItemInquiryLog->searchedBy = $this->session->user["username"]; $this->ItemInquiryLog->searchedBy = $this->session->user["username"];
$this->ItemInquiryLog->dateSearched = date('m/d/Y'); $this->ItemInquiryLog->dateSearched = date('Y-m-d');
$this->ItemInquiryLog->addNewData(); $this->ItemInquiryLog->addNewData();
// --- END --- Log searched item // --- END --- Log searched item

@ -42,7 +42,7 @@ class ItemLedger extends CI_Model
$this->db->select("itemledger.*, items.*"); $this->db->select("itemledger.*, items.*");
$this->db->from("itemledger"); $this->db->from("itemledger");
$this->db->join("items", "itemledger.itemcode = items.itemcode", "left"); $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"); $this->db->where("itemledger.endingqty > 0");
if(!$includeKWH) $this->db->where("itemledger.brCode != 'KWH'"); // exclude KWH if(!$includeKWH) $this->db->where("itemledger.brCode != 'KWH'"); // exclude KWH
$this->db->where("itemledger.brCode NOT IN (SELECT brCode FROM branchexemption)"); $this->db->where("itemledger.brCode NOT IN (SELECT brCode FROM branchexemption)");

Loading…
Cancel
Save