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