gtGLOutwardsCash
This function records the header information required to create an Outwards Cash transaction. The gtGLOutwardsCashGLLine, gtGLOutwardsCashJCLine and gtGLOutwardsCashPayeeDetails functions use the unique identifier returned by the function call to link the payment line and details with the payment header.
Each outwards cash transaction is uploaded to Greentree Desktop as a complete transaction set. The payment either uploads in its entirety or nothing of the document is loaded into Greentree Desktop.
Company
The company code that the payment is to be created in.
Reference
The unique document number for this payment. A document with this number cannot already exist or an error is returned.
BankCode
The bank code that the transaction is to be posted to.
DocumentDate
The document date for the payment.
PostingDate
The posting date for the payment. This determines the financial period the receipt is posted to.
AnalysisCode
The cash analysis code that the payment is to be applied against.
CurrencyCode
The currency code of the payment line items.
Batch
The batch number the payment is to be posted in. A new batch is created in Greentree Desktop 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.
LedgerToTranRate
The currency conversion rate used to convert a foreign currency payment into the base currency of the ledger.
IsLedgerToTranRateMultiply
Defaults to True. If True, the rate above is a multiply rate rather than a divide rate.
AccountToTranRate
The currency conversion rate used to convert a foreign currency payment into the currency of the bank account.
IsAccountToTranRate
Defaults to True. If True, the rate above is a multiply rate rather than a divide rate.
Returns
- Unique identifier - GLOUTCASH-nnn to use to link the receipt header with its lines.
- Error - if an error is encountered.
Errors Returned
- Must have a Document Date.
- Invalid LedgerToTranRate, must be a number or omitted.
- Invalid AccountToTranRate, must be a number or omitted.
- Invalid IsLedgerToTranRateMultiply, must be True, False, or omitted.
- Invalid IsAccountToTranRateMultiply, must be True, False, or omitted.