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