salesvspurchase and final accounts pages change
This commit is contained in:
@ -60,8 +60,10 @@ class Items extends CI_Controller
|
||||
$item_code = filter_var($_POST['item_code']);
|
||||
$this->db->where('status',1);
|
||||
$this->db->where('item_id !=', $id);
|
||||
$this->db->where('title',$title);
|
||||
$this->db->or_where('item_code',$item_code);
|
||||
$this->db->group_start();
|
||||
$this->db->where('title', $title);
|
||||
$this->db->or_where('item_code', $item_code);
|
||||
$this->db->group_end();
|
||||
|
||||
$query = $this->db->get('tbl_items');
|
||||
if($query->num_rows() > 0){
|
||||
|
Reference in New Issue
Block a user