Available budget amount and Service PO status update for requistion screen
This commit is contained in:
parent
4a6d0075c3
commit
b805e31d23
@ -101,13 +101,13 @@ class requisitionform extends BaseController
|
|||||||
{
|
{
|
||||||
$ReqPOType = $POType[0]['POType'];
|
$ReqPOType = $POType[0]['POType'];
|
||||||
}
|
}
|
||||||
$data['ReqPOType'] = $ReqPOType='' ? $ReqType:$ReqPOType;
|
|
||||||
|
|
||||||
|
$data['ReqPOType'] = $ReqPOType =='' ? $ReqType:$ReqPOType;
|
||||||
$data['LineItem'] = $this->requistion_model->getEditRequistItemList($ReqNo);
|
$data['LineItem'] = $this->requistion_model->getEditRequistItemList($ReqNo);
|
||||||
$data['CostCenter'] = $this->requistion_model->getCostCenterUserID($userID);
|
$data['CostCenter'] = $this->requistion_model->getCostCenterUserID($userID);
|
||||||
$data['MaterialCode'] = $this->requistion_model->EditMaterialCode($ReqNo, $ReqType);
|
$data['MaterialCode'] = $this->requistion_model->EditMaterialCode($ReqNo, $ReqType);
|
||||||
$data['ServiceOption'] = $this->requistion_model->getConfigValue('C022');
|
$data['ServiceOption'] = $this->requistion_model->getConfigValue('C022');
|
||||||
$this->loadViews("editrequisitionform", $this->global, $data, NULL);
|
$this->loadViews("editrequisitionform", $this->global, $data, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -128,7 +128,6 @@ class requisitionform extends BaseController
|
|||||||
$this->requistion_model->DeleteRequistionLineItem( $ReqNo,$MaterialCode);
|
$this->requistion_model->DeleteRequistionLineItem( $ReqNo,$MaterialCode);
|
||||||
|
|
||||||
echo "Successfully Deleted the Line item".$ReqNo;
|
echo "Successfully Deleted the Line item".$ReqNo;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -45,7 +45,6 @@ class servicepurchaseorder extends BaseController
|
|||||||
$this->global['pageTitle'] = 'Siddharth : Update Service PO Status';
|
$this->global['pageTitle'] = 'Siddharth : Update Service PO Status';
|
||||||
$data['PO'] = $this->purchaseorder_model->GetServicePOListforStatusUpdate();
|
$data['PO'] = $this->purchaseorder_model->GetServicePOListforStatusUpdate();
|
||||||
$data['WorkStatus']=$this->purchaseorder_model->getStatus(7);
|
$data['WorkStatus']=$this->purchaseorder_model->getStatus(7);
|
||||||
//print_r($data['PO']);
|
|
||||||
|
|
||||||
$this->loadViews("statusofservicepurchaseorder", $this->global,$data,Null);
|
$this->loadViews("statusofservicepurchaseorder", $this->global,$data,Null);
|
||||||
|
|
||||||
@ -56,7 +55,7 @@ class servicepurchaseorder extends BaseController
|
|||||||
{
|
{
|
||||||
$PONO = $this->input->post('id');
|
$PONO = $this->input->post('id');
|
||||||
$PO=$PONO;
|
$PO=$PONO;
|
||||||
$result = $this->purchaseorder_model->GetPODetailforBillingServicePO($PO);
|
$result = $this->purchaseorder_model->GetPODetailforBillingServicePO($PO);
|
||||||
$HTML="";
|
$HTML="";
|
||||||
for ($i = 0; $i < count($result); $i++)
|
for ($i = 0; $i < count($result); $i++)
|
||||||
{
|
{
|
||||||
@ -110,7 +109,7 @@ $result = $this->purchaseorder_model->GetPODetailforBillingServicePO($PO);
|
|||||||
$POStatus=PO_SERVICE_COMPLETED;
|
$POStatus=PO_SERVICE_COMPLETED;
|
||||||
$POList = array('UpdateBY'=>$updatedBy,'UpdatedOn'=>$updateddt,'ServiceWorkStatusRemarks'=>$Remarks,'ServiceWorkStatus'=>$WorkStatus,'Status'=>$POStatus);
|
$POList = array('UpdateBY'=>$updatedBy,'UpdatedOn'=>$updateddt,'ServiceWorkStatusRemarks'=>$Remarks,'ServiceWorkStatus'=>$WorkStatus,'Status'=>$POStatus);
|
||||||
$ReqList = $this->purchaseorder_model->updateReqDetail($PONO,$POStatus);
|
$ReqList = $this->purchaseorder_model->updateReqDetail($PONO,$POStatus);
|
||||||
$this->purchaseorder_model->UpdateReceivedQtyforServicePO($PONO);
|
$this->purchaseorder_model->UpdateReceivedQtyforServicePO($PONO,$updateddt,$updatedBy);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$POList = array('UpdateBY'=>$updatedBy,'UpdatedOn'=>$updateddt,'ServiceWorkStatusRemarks'=>$Remarks,'ServiceWorkStatus'=>$WorkStatus);
|
$POList = array('UpdateBY'=>$updatedBy,'UpdatedOn'=>$updateddt,'ServiceWorkStatusRemarks'=>$Remarks,'ServiceWorkStatus'=>$WorkStatus);
|
||||||
@ -119,7 +118,7 @@ $result = $this->purchaseorder_model->GetPODetailforBillingServicePO($PO);
|
|||||||
|
|
||||||
$POMaster = $this->purchaseorder_model->updatePOMaster($PONO,$POList);
|
$POMaster = $this->purchaseorder_model->updatePOMaster($PONO,$POList);
|
||||||
|
|
||||||
$this->UpdateServicePOStatus();
|
$this->UpdateServicePOStatus();
|
||||||
echo "<script>alert('Successfully Updated the workStatus of the PO ".$PONO."')</script>";
|
echo "<script>alert('Successfully Updated the workStatus of the PO ".$PONO."')</script>";
|
||||||
}
|
}
|
||||||
// To get the available Budget Amount
|
// To get the available Budget Amount
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user