MYOB Greentree

HideShow

  • Contents
  • Index
  • Search
 
Display results with all search words

 

gtGLBudNote


This function returns notes recorded against a Greentree Desktop General Ledger Budget information.

Company

The company code that the account budget belongs to.

Budget

The budget number that notes are to be retrieved from.

BudgetYear

The Year the budget note is to be found from.If empty then the budget level note is returned.

GLAccount

The GL Account the budget note is to be found from. Wildcard GL Account identifiers are not allowed. If left empty a budget year note is returned. This parameter is ignored if the BudgetYear parameter is blank.

TCodes

The transaction code(s) that the budget note is to be found from. Wildcard tree identifiers are not allowed. If populated then the note for the GLAccount/Transaction Code combination is returned. This parameter is ignored if the BudgetYear or GLAccount parameters are blank.

Period

The period the note is to be retrieved from for the Budget, BudgetYear, GLAccount (and, optionally, the transaction code). This parameter is ignored if the BudgetYear or GLAccount parameters are blank.

Returns

  • The Budget note for the selected item.
  • Error - if an error is encountered

Examples

  • gtGLBudNote(01,1) returns the note for GL budget 1 in company 01
  • gtGLBudNote(01,1, 2013/2014) returns the note for budget year 2013/2014 in GL budget 1 in company 01.
  • gtGLBudNote(01,1, 2013/2014, 10.10.1000) returns the note for GL Account 10.10.1000 in budget year 2013/2014 in GL budget 1 in company 01.
  • gtGLBudNote(01,1, 2013/2014, 10.10.1000, 30008) returns the note for Tree 30008 in GL Account 10.10.1000 in budget year 2013/2014 in GL budget 1 in company 01.
  • gtGLBudNote(01,1, 2013/2014, 10.10.1000, 30008, June) returns the June period note for Tree 30008 in GL Account 10.10.1000 in budget year 2013/2014 in GL budget 1 in company 01.
  • gtGLBudNote(01,1, 2013/2014, 10.10.1000,, June) returns the June period note for GL Account 10.10.1000 in budget year 2013/2014 in GL budget 1 in company 01.

    Note: No treeBranch is defined.

  • gtGLBudNote(01,1, 2013/2014, ,, June) returns the note for budget year 2013/2014 in GL budget 1 in company 01.

    Note: FromPeriod is ignored because there is no GLAccount specified.

Errors Returned

  • Must have a Company identifier
  • Invalid Company identifier
  • Must have a Budget number
  • Budget number does not exist
  • Budget Year does not exist for Company or Budget
  • GL Account does not exist for Company, Budget or Budget Year