Available budget amount issue sorted out

This commit is contained in:
gandhimathi Bharathirajan 2017-09-01 16:55:23 +05:30
parent 37292c3b12
commit 27d52075da

View File

@ -94,7 +94,14 @@ class requisitionform extends BaseController
$userID = $this->session->userdata ( 'userId' );
$data['ReqDetails'] = $this->requistion_model->getRequistDetails($ReqNo,'Yes');
$this->load->model('purchaseorder_model');
$POType= $this->purchaseorder_model->GetPOType($ReqNo);
$ReqPOType = '';
if(count($POType) > 0)
{
$ReqPOType = $POType[0]['POType'];
}
$data['ReqPOType'] = $ReqPOType='' ? $ReqType:$ReqPOType;
$data['LineItem'] = $this->requistion_model->getEditRequistItemList($ReqNo);
$data['CostCenter'] = $this->requistion_model->getCostCenterUserID($userID);