Avl Bud Amt issue fixed

This commit is contained in:
gandhimathi Bharathirajan 2017-08-16 13:59:04 +05:30
parent b197a5c954
commit c6e3f281bf

View File

@ -142,8 +142,16 @@ class servicepurchaseorder extends BaseController
$FYdt = $FYStart." - ".$FYEnd ;
$this->load->model('purchaseorder_model');
$result = array();
$result = $this->purchaseorder_model->GetAvailableBudgetAmount($CostCode,$FYdt,$ReqType);
if($ReqType== CAPITAL)
{
$result = $this->purchaseorder_model->GetAvailableCapitalBudgetAmount($CostCode,$FYdt,$ReqType);
}
else
{
$result = $this->purchaseorder_model->GetAvailableBudgetAmount($CostCode,$FYdt,$ReqType);
}
//print_r($result);
$AvilBudAmt = '0';
if(count($result)>0)