Toggle menu
876
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

ResourceBudget getByResourceIds: Difference between revisions

From Catglobe Wiki
Nguyenduyan (talk | contribs)
Created page with "Category:Cost {{HelpFiles}} = ResourceBudget_getByResourceIds = == Syntax == ResourceBudget_getByResourceIds (array resourceRIds); == Arguments == array ''resourc..."
 
Nguyenduyan (talk | contribs)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
= ResourceBudget_getByResourceIds =
= ResourceBudget_getByResourceIds =


 
Get Budget of multi resources. On UI, you can find Budget of each resource by: open the resource, go to Cost tab, go to Income statement tab, then click on Update Budget button


== Syntax ==
== Syntax ==
Line 16: Line 16:


== Return type ==
== Return type ==
Dictionnary of ResourceBudget class
Dictionnary of [[ResourceBudget class|ResourceBudget]] class


== Example ==
== Example ==

Latest revision as of 04:05, 11 January 2018



ResourceBudget_getByResourceIds

Get Budget of multi resources. On UI, you can find Budget of each resource by: open the resource, go to Cost tab, go to Income statement tab, then click on Update Budget button

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