MYOB Greentree

HideShow

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

 

gtGLJournal


This function records the header data needed for a General Ledger Journal document. The unique identifier returned by the function call must be used by the gtGLJournalLine function to link the journal line with the journal header.

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.

Company

The company code that the journal is to be created in.

Batch

The batch number the journal is to be posted in. A new batch is created if it does not exist and a Batch Description is entered.

BatchDescription

The batch description if a new batch is created. This is ignored if the batch already exists. If the batch description is null and the batch does not exist an error is returned.

DocumentNumber

The unique document number for this Journal. A document with this number cannot already exist or an error is returned.

DocumentDate

The document date for the journal.

DocumentDescription

The description for the document.

PostingDate

The posting date for the General Ledger transactions. This determines the financial period the transactions are posted to.

ReversalDate

Only needed if a reversing journal is required. This is the date on which the journal is to be reversed.

CurrencyType

The currency code. Only needed for foreign currency transactions as the default currency from the company is used if left blank.

Rate

Currency conversion rate for foreign currency accounts. Defaults to 1.0 for local currency if omitted. This rate cannot be set to zero.

MultiplyRate

Defaults to True. If true the rate above is a multiply rate rather than a divide rate.

QuadSegment

The Quad Segment. Defaults to the Quad Accounting default segment if omitted.

Returns

  • Unique identifier - to use to link the document header with its journal lines
  • Error - if error is encountered

Errors Returned

  • Must have a Company Identifier
  • Must have a Batch Identifier
  • Must have a Document Number
  • Must have a Document Date
  • Must have a Posting Date
  • A Currency Code requires a Rate
  • A Rate requires a Currency Code
  • Invalid Reversal Date
  • Quad Segment (XX) is invalid