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.
kwmobile/application/models/StockReceivingView.php

22 lines
480 B
PHTML

<?php
class StockReceivingView extends CI_Model
{
public function __construct()
{
parent::__construct();
$this->load->database();
}
public function getHdrDataByTransID($transID)
{
return $this->db->get_where("stockreceivinghdr", array("transid"=>$transID))->order_by("transid", "DESC");
}
public function getDtlDataByItemcode($itemcode)
{
return $this->db->get_where("stockreceivingdtl", array("itemcode"=>$itemcode));
}
}