From c681412c7784b0b7d6bc1305753fe1e2e36968c6 Mon Sep 17 00:00:00 2001 From: bitbucket Date: Wed, 12 Jun 2024 17:17:05 +0530 Subject: [PATCH] GWM --- app/Controllers/MasterController.php | 6 ++++-- app/Views/share_docs.php | 13 +++++++++---- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/app/Controllers/MasterController.php b/app/Controllers/MasterController.php index 9d536a2..1bb1917 100644 --- a/app/Controllers/MasterController.php +++ b/app/Controllers/MasterController.php @@ -265,12 +265,14 @@ class MasterController extends BaseController - $data['doc_list'] = $this->ClientDocsModel->select('client_docs.* , services.service_name , service_group.group_name') + $data['doc_list'] = $this->ClientDocsModel->select('client_docs.* , services.service_name , service_group.group_name , client_branch.name as client_branch_name , client.name as client_name') ->join('template', 'template.template_id = client_docs.template_id', 'left') ->join('services', 'services.service_id = template.service_id', 'left') ->join('service_group', 'service_group.service_group_id = template.service_group_id', 'left') + ->join('client_branch', 'client_branch.id = client_docs.client_branch_id', 'left') + ->join('client', 'client.client_id = client_branch.client_id', 'left') ->findAll(); - + $data['clientdata'] = $this->ClientBranchModel->select('client.name as client_name , client_branch.name as client_branch_name , client_branch.id as client_branch_id') ->join('client', 'client_branch.client_id = client.client_id', 'left') ->where('client.business_id',$this->session->get('logged_in_staff_business_id')) diff --git a/app/Views/share_docs.php b/app/Views/share_docs.php index b9230bc..6b5d8ac 100644 --- a/app/Views/share_docs.php +++ b/app/Views/share_docs.php @@ -24,7 +24,6 @@

Share Documents

- Share Docs
@@ -45,7 +44,10 @@ - + + + + @@ -58,8 +60,11 @@ $value) { ?> - - + + + + +
ServiceClient NameClient Branch NameService GroupService Name Document Name Doc Status Action