Difference between revisions of "ResourceBudget getByResourceId"

From Catglobe Wiki
Jump to: navigation, search
(Created page with "Category:Cost {{HelpFiles}} = ResourceBudget_getByResourceId = == Syntax == ResourceBudget_getByResourceId (number resourceRId); == Arguments == number ''resource...")
 
(Tag: visualeditor)
 
Line 6: Line 6:
  
  
 +
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 ==
 
== Syntax ==
Line 16: Line 17:
  
 
== Return type ==
 
== Return type ==
ResourceBudget class
+
[[ResourceBudget class|ResourceBudget]] class
  
 
== Example ==
 
== Example ==

Latest revision as of 05:08, 11 January 2018



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