salesvspurchase and final accounts pages change
This commit is contained in:
@ -264,7 +264,7 @@ class Vouchers extends CI_Controller
|
||||
$entry_no++;
|
||||
|
||||
|
||||
echo json_encode(['status' => 'success']);
|
||||
// echo json_encode(['status' => 'success']);
|
||||
loadview("accounts/vouchers/create", $data);
|
||||
break;
|
||||
}
|
||||
|
@ -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