mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-03-09 10:38:56 -04:00
Fix delete in Item model (#507)
This commit is contained in:
@@ -248,11 +248,9 @@ class Item extends CI_Model
|
||||
*/
|
||||
public function delete($item_id)
|
||||
{
|
||||
$this->db->where('item_id', $item_id);
|
||||
|
||||
// set to 0 quantities
|
||||
$this->Item_quantity->reset_quantity($item_id);
|
||||
|
||||
$this->db->where('item_id', $item_id);
|
||||
return $this->db->update('items', array('deleted'=>1));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user