Files
opensourcepos/application/models/inventory.php
pappastech b089d5b73f Initial commit of release 1.0.
~ Tom

git-svn-id: svn+ssh://jekkos@svn.code.sf.net/p/opensourcepos/code/@5 c3eb156b-1dc0-44e1-88ae-e38439141b53
2011-06-08 13:21:52 +00:00

18 lines
348 B
PHP

<?php
class Inventory extends 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();
}
}
?>