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

ResourceBudget getByResourceId

From Catglobe Wiki



ResourceBudget_getByResourceId

Get Budget of a resource. 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_getByResourceId (number resourceRId);

Arguments

number resourceRId

Return type

ResourceBudget class

Example

ResourceBudget budget = ResourceBudget_getByResourceId(11088827);
Dictionary d = budget.LedgerEntries;
LedgerEntry l = d[3];
print(l.AccountNumber);//3
print(l.AccountName);//Revenue
print(l.Actual);//0
print(l.Budget);//2000