Supplier Listing
- Add New Supplier -( Note :The entries count includes archived data... )
diff --git a/app/Controllers/Department.php b/app/Controllers/Department.php index 185376e0..b731caeb 100755 --- a/app/Controllers/Department.php +++ b/app/Controllers/Department.php @@ -145,11 +145,21 @@ class Department extends BaseController function reActivateDepartment(){ + $depCode = $this->request->getGet('SID'); + $updateInfo = ['IsActive' => 1]; + $result = $this->department_model->reActivateDepartment($depCode , $updateInfo); + + return redirect()->route('departmentListing'); + } function deleteDepartment(){ + $depCode = $this->request->getGet('SID'); + $updateInfo = ['IsActive' => 0]; + $result = $this->department_model->reActivateDepartment($depCode , $updateInfo); + return redirect()->route('departmentListing'); } diff --git a/app/Models/Department_model.php b/app/Models/Department_model.php index 339da784..d5428328 100755 --- a/app/Models/Department_model.php +++ b/app/Models/Department_model.php @@ -132,13 +132,21 @@ function getdepcode() } - function reActivateDepartment(){ - + function reActivateDepartment($depCode , $updateInfo){ + $this->db->table('t_departmentdetails') + ->where('DEPCode', $depCode) + ->update($updateInfo); + $res = $this->db->affectedRows(); + return $res; } - function deleteDepartment(){ - + function deleteDepartment($depCode , $updateInfo){ + $this->db->table('t_departmentdetails') + ->where('DEPCode', $depCode) + ->update($updateInfo); + $res = $this->db->affectedRows(); + return $res; } diff --git a/app/Views/MaterialIssueList.php b/app/Views/MaterialIssueList.php index 200965dc..ac484748 100755 --- a/app/Views/MaterialIssueList.php +++ b/app/Views/MaterialIssueList.php @@ -92,6 +92,7 @@ ?> +
( Note :The entries count includes archived data... )
| Created Date | -Asset Code | -Asset Name | -Asset Description | -Department Name | -Location | -Asset User | -Supplier Name | -Received Date | -Asset Value | -Asset Status | -Action | +||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| - | AssetCode ?> | -AssetName ?> | -Description ?> | -DepartmentName ?> | -Location ?> | -UserName ?> | -SupplierName ?> | -DateOfPurchase); - $DOPurchase = $dtpurchase->format('d-m-Y'); - echo $DOPurchase ?> | -AssetValue, 2); ?> | -AssetStatus ?> | -
+
( Note :The entries count includes archived data... ) - -- - - - + } + ?> + |
( Note :The entries count includes archived data... )
+( Note :The entries count includes archived data... )
( Note :The entries count includes archived data... )
( Note :The entries count includes archived data... )
( Note :The entries count includes archived data... )