From aa528d341178709c56e9952faf4da86f94720219 Mon Sep 17 00:00:00 2001 From: heama Date: Mon, 8 Apr 2024 13:34:17 +0530 Subject: [PATCH] client --- app/Controllers/Client.php | 3 ++- app/Models/ClientModel.php | 2 +- app/Views/client_form.php | 15 +++++++++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/app/Controllers/Client.php b/app/Controllers/Client.php index 13c171b..7f63ade 100644 --- a/app/Controllers/Client.php +++ b/app/Controllers/Client.php @@ -65,7 +65,8 @@ class Client extends BaseController 'city' => $this->request->getPost('city'), 'state' => $this->request->getPost('state'), 'postal_code' => $this->request->getPost('postalcode'), - + 'gstnumber' => $this->request->getPost('gstnumber'), + 'client_type' => $this->request->getPost('clienttype'), 'isactive' => 1 , 'branch_id' => $this->session->get('logged_user_branch_id') ]; diff --git a/app/Models/ClientModel.php b/app/Models/ClientModel.php index 2e0dd03..5bf42a6 100644 --- a/app/Models/ClientModel.php +++ b/app/Models/ClientModel.php @@ -5,7 +5,7 @@ class ClientModel extends Model { protected $table = 'client'; protected $primaryKey = 'client_id'; - protected $allowedFields = ['client_id','client_name','email','mobile_no','address','city','state','postal_code','country','description','isactive','branch_id']; + protected $allowedFields = ['client_id','client_type','gstnumber','client_name','email','mobile_no','address','city','state','postal_code','country','description','isactive','branch_id']; } \ No newline at end of file diff --git a/app/Views/client_form.php b/app/Views/client_form.php index cb19780..a8c072a 100644 --- a/app/Views/client_form.php +++ b/app/Views/client_form.php @@ -34,6 +34,21 @@ +
+ + +
+
+ + +
+