avl budamt
This commit is contained in:
parent
79bf8e7439
commit
40a5564b11
@ -64,6 +64,25 @@ class amendmentpurchaseorder extends BaseController
|
||||
$ReqDetails = $this->purchaseorder_model->getRequistDetails($ReqArray);
|
||||
$data['RequistionDetails'] = $ReqDetails;
|
||||
$CostCode = '';
|
||||
|
||||
$this->load->model('costcenter_model');
|
||||
$FYStart = '';
|
||||
$FYEnd = '';
|
||||
$FiscalYear = $this->costcenter_model->getFiscalYear();
|
||||
if(!empty($FiscalYear))
|
||||
{
|
||||
foreach ($FiscalYear as $Fy)
|
||||
{
|
||||
$FYStart =$Fy->StartYear;
|
||||
$FYEnd =$Fy->EndYear;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$FYdt = $FYStart." - ".$FYEnd ;
|
||||
|
||||
|
||||
|
||||
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
|
||||
$currencycode = '';
|
||||
$Year = $dt->format('Y');
|
||||
@ -110,7 +129,9 @@ class amendmentpurchaseorder extends BaseController
|
||||
{
|
||||
|
||||
|
||||
$AvlBudget = $this->purchaseorder_model->GetAvailableImportBudgetAmount($CostCode,$Year,$ReqType);
|
||||
$AvlBudget = $this->purchaseorder_model->GetAvailableImportBudgetAmount($CostCode,$FYdt,$ReqType);
|
||||
|
||||
|
||||
|
||||
//print_r($AvlBudget);
|
||||
if(count($AvlBudget)>0)
|
||||
|
||||
@ -3276,6 +3276,7 @@ function Save(status)
|
||||
|
||||
|
||||
$('#txtStatus').val(stat);
|
||||
tinyMCE.triggerSave();
|
||||
|
||||
var txtRowCount = $('#txtRowCount').val();
|
||||
var txtDeletedRow = $('#txtDeletedRow').val();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user