Files
opensourcepos/application/models/inventory.php
pappastech ecdf3a5aa1 Version 2.0_RC1. Upgrade to CI 2.1.0.
Tom

git-svn-id: svn+ssh://jekkos@svn.code.sf.net/p/opensourcepos/code/@24 c3eb156b-1dc0-44e1-88ae-e38439141b53
2012-01-16 02:16:01 +00:00

18 lines
351 B
PHP

<?php
class Inventory extends CI_Model
{
function insert($inventory_data)
{
return $this->db->insert('inventory',$inventory_data);
}
function get_inventory_data_for_item($item_id)
{
$this->db->from('inventory');
$this->db->where('trans_items',$item_id);
$this->db->order_by("trans_date", "desc");
return $this->db->get();
}
}
?>