From 96b13eaffbbd0631d8540f0a4e83f013bb245d63 Mon Sep 17 00:00:00 2001 From: VE10-Sanjeev Date: Thu, 1 Aug 2024 06:56:18 +0000 Subject: [PATCH] FIX_Bug Fixes --- app/Controllers/Purchaseorder.php | 7 +++++-- app/Views/EditservicePurchaseorder.php | 9 +++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/app/Controllers/Purchaseorder.php b/app/Controllers/Purchaseorder.php index 4539a280..89944b62 100644 --- a/app/Controllers/Purchaseorder.php +++ b/app/Controllers/Purchaseorder.php @@ -2436,8 +2436,11 @@ $mpdf->use_kwt = true; // $data['Status']= $this->purchaseorder_model->getStatus(); $userID = $this->session->get('userId'); //print_r($data['Status']);echo "CON"; - $data['AppList'] = $this->purchaseorder_model->getPOList($q); - + $appList = $this->purchaseorder_model->getPOList($q); + $filteredAppList = array_filter($appList, function($item) { + return $item->Status !== PO_DRAFT; + }); + $data['AppList'] = $filteredAppList; $this->loadViews("porelease_view", $this->global, $data, NULL); } diff --git a/app/Views/EditservicePurchaseorder.php b/app/Views/EditservicePurchaseorder.php index 22399862..b256b766 100644 --- a/app/Views/EditservicePurchaseorder.php +++ b/app/Views/EditservicePurchaseorder.php @@ -2429,8 +2429,13 @@ if (!empty($getlogpodtl)) {

-
- +
+ + + + +
+