Available Budget amount for Capital PO issue fixed
This commit is contained in:
parent
742cbe12fa
commit
090e416b5f
@ -548,7 +548,19 @@ class requisitionform extends BaseController
|
|||||||
$CostCode = $ReqList[0]['CostCenterCode'];
|
$CostCode = $ReqList[0]['CostCenterCode'];
|
||||||
}
|
}
|
||||||
$this->load->model('purchaseorder_model');
|
$this->load->model('purchaseorder_model');
|
||||||
$AvlBudget = $this->purchaseorder_model->GetAvailableBudgetAmount($CostCode,$FYdt,$ReqType);
|
$AvlBudget = array();
|
||||||
|
|
||||||
|
if($ReqType== CAPITAL)
|
||||||
|
{
|
||||||
|
$AvlBudget = $this->purchaseorder_model->GetAvailableCapitalBudgetAmount($CostCode,$FYdt,$ReqType);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$AvlBudget = $this->purchaseorder_model->GetAvailableBudgetAmount($CostCode,$FYdt,$ReqType);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// $AvlBudget = $this->purchaseorder_model->GetAvailableBudgetAmount($CostCode,$FYdt,$ReqType);
|
||||||
//print_r($result);
|
//print_r($result);
|
||||||
$AvilBudAmt = '0';
|
$AvilBudAmt = '0';
|
||||||
if(count($AvlBudget)>0)
|
if(count($AvlBudget)>0)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user