ResourceBudget getByResourceIds

From Catglobe Wiki
Revision as of 05:05, 3 January 2018 by Nguyenduyan (talk | contribs) (Created page with "Category:Cost {{HelpFiles}} = ResourceBudget_getByResourceIds = == Syntax == ResourceBudget_getByResourceIds (array resourceRIds); == Arguments == array ''resourc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



ResourceBudget_getByResourceIds

Syntax

ResourceBudget_getByResourceIds (array resourceRIds);

Arguments

array resourceRIds

Return type

Dictionnary of ResourceBudget class

Example

Dictionary d = ResourceBudget_getByResourceIds({11088827, 15513943});
print(d);//{"11088827": ResourceBudget, "15513943": ResourceBudget}
print(d[11088827]);//ResourceBudget
ResourceBudget budget = d[11088827];
Dictionary b = budget.LedgerEntries;
print(b);//{"3": LedgerEntry, "333333333": LedgerEntry, "4": LedgerEntry, "444444444": LedgerEntry, "5": LedgerEntry, "6": LedgerEntry, "7": LedgerEntry, "8": LedgerEntry}
LedgerEntry l = b[3];
print(l.AccountNumber);//3
print(l.AccountName);//Revenue
print(l.Actual);//0
print(l.Budget);//2000