You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
707 B
PHP
33 lines
707 B
PHP
<?php
|
|
|
|
class ItemLedger extends CI_Model
|
|
{
|
|
public $itemcode;
|
|
public $brCode;
|
|
public $beginningqty;
|
|
public $inqty;
|
|
public $outqty;
|
|
public $sales;
|
|
public $adjustment;
|
|
public $endingqty;
|
|
public $editDate;
|
|
public $creationDate;
|
|
public $remarks;
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
|
|
$this->load->database();
|
|
}
|
|
|
|
public function getBranchesByItemcode($itemcode)
|
|
{
|
|
return $this->db->get_where("itemledger", array("itemcode"=>$itemcode));
|
|
}
|
|
|
|
public function getItemLedgerOfKWHByItemcode($itemcode)
|
|
{
|
|
return $this->db->get_where("itemledger", array("itemcode"=>$itemcode, "brCode"=>"KWH"));
|
|
}
|
|
} |