MYOB Greentree

HideShow

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

 

gtGLJournalLine


This function records the line item data needed for a General Ledger Journal document.

Each Journal document is uploaded to Greentree Desktop as a complete transaction set. The Journal Document either uploads in its entirety or nothing of the document is loaded into Greentree Desktop.

Inter-company transactions may be processed using a company that is different to the journal document header in this function.

JournalReference

Journal reference number. This is the reference created by the gtGLJournal function call. It links the Journal line with its header.

Company

Company code the account belongs to. This may be different to the company code specified in the document header (gtGLJournal) for inter-company transactions.

Account

Account number to for which the journal transaction is being created.

SubCode

Account sub-code if its relevant for the account. May be left empty if it's not used on the account.

CashAnalysis

Required for cash analysis on bank accounts. Supply an analysis code if you're posting to a bank account. All other accounts require that this parameter is left blank.

Amount

Amount of the transaction.

Quantity

Quantity of the transaction on accounts that require quantities. Other accounts should have this parameter left blank.

Narration

Transaction narration.

Rate

The for a foreign currency transaction.

Note: To use a rate of zero (for example, for revaluation journals), enter the word zero instead of 0.00.

MultiplyRate

Flags whether the rate is a multiply or divide rate. Defaults to True for multiply rate if omitted.

TransCode

Transactional Analysis Code (TCode) for the line item.

Returns

  • Ok - If there are no errors.
  • Error - If there is an error.

Errors Returned

  • Must have a Journal Reference Number
  • Journal reference number must start with GLJNL-
  • Must have a Company Identifier
  • Must have an Account Number
  • Invalid Quantity, must be a number or omitted
  • Invalid Rate, must be a number or omitted
  • Invalid Multiply Rate flag, must be True, False or omitted