salesvspurchase and final accounts pages change

This commit is contained in:
Sampanna Rimal
2024-08-05 13:13:06 +05:45
parent c16163bf01
commit d164f3139d
18 changed files with 743 additions and 412 deletions

View File

@ -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;
}

View File

@ -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){