ResourceBudget getByResourceId

From Catglobe Wiki
Revision as of 05:08, 11 January 2018 by Nguyenduyan (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



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