Edit Asset Details
Edit Asset Details
Before - name="PaymentDays" value="before"/> + name="PaymentDays" value="before"/>
diff --git a/application/controllers/assetdetails.php b/application/controllers/assetdetails.php index f9ce432f..4b8a2117 100644 --- a/application/controllers/assetdetails.php +++ b/application/controllers/assetdetails.php @@ -129,7 +129,7 @@ class assetdetails extends BaseController $this->session->set_flashdata('error', 'Asset Not Create'); } - redirect('assetdetails/assetListing'); + redirect('assetListing'); } } @@ -198,7 +198,7 @@ class assetdetails extends BaseController $SupplierName = $this->input->post('SupplierName'); $DateOfPurchase = $this->input->post('DateOfPurchase'); $DateOfCommission = $this->input->post('DateOfCommission'); - $Createdby = $this->input->post('Createdby'); + $Createdby = $this->input->post('Createdby'); $AssetValue = $this->input->post('AssetValue'); $asset = array(); @@ -218,8 +218,8 @@ class assetdetails extends BaseController { $this->session->set_flashdata('error', 'Asset updation failed'); } - echo $asset; - // redirect('assetListing'); + //echo success; + redirect('assetListing'); } } diff --git a/application/views/addasset.php b/application/views/addasset.php index 46185754..8b18a628 100644 --- a/application/views/addasset.php +++ b/application/views/addasset.php @@ -93,7 +93,7 @@