mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-01-19 06:47:56 -05:00
Tom git-svn-id: svn+ssh://jekkos@svn.code.sf.net/p/opensourcepos/code/@24 c3eb156b-1dc0-44e1-88ae-e38439141b53
18 lines
351 B
PHP
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();
|
|
}
|
|
}
|
|
|
|
?>
|