import
This commit is contained in:
parent
c71b486e2a
commit
8fe849aaa9
@ -251,7 +251,7 @@ function purchaseorderListing($forwhat='')
|
||||
|
||||
function GetAvailableImportBudgetAmount($CostCode,$Year,$BudgetType)
|
||||
{
|
||||
$subQuery='select BudgetAmount,(select ifnull(sum((Quantity*Rate)),0)as TValue from T_PurchaseOrder_LineItem LineItem
|
||||
$subQuery='select BudgetAmount,(select ifnull(sum((Quantity*Rate*ExchangeRate)),0)as TValue from T_PurchaseOrder_LineItem LineItem
|
||||
join T_PurchaseOrder_Master Mast on Mast.PONO=LineItem.PONO where POType=?
|
||||
and CostCenterCode=?)as TotalValue from T_CostCenter_Budget Bud where Bud.CostCenterCode=? and BudgetYear=? and BudgetType=?';
|
||||
$query = $this->db->query($subQuery,array($BudgetType,$CostCode,$CostCode,$Year,$BudgetType));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user