gtGLInwardsCash
This function records the header information required to create an Inwards Cash transaction. The unique identifier returned by the function call must be used by the gtGLInwardsCashGLLine and gtGLInwardsCashReceiptDetails functions to link the receipt line and details with the receipt header.
Each inwards cash transaction is uploaded to Greentree Desktop as a complete transaction set. The receipt is either uploaded in its entirety or nothing of the document is loaded into Greentree Desktop.
Company
The company code that the receipt is to be created in.
Reference
The unique document number for this receipt. 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 receipt.
PostingDate
The posting date for the receipt. This determines the financial period the receipt is posted to.
AnalysisCode
The cash analysis code that the receipt is to be applied against.
CurrencyCode
The currency code of the receipt line items.
Batch
The batch number the receipt 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 receipt 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 receipt into the currency of the bank account.
IsAccountToTranRateMultiply
Defaults to True. If True, the rate above is a multiply rate rather than a divide rate.
Returns
- Unique identifier - GLINCASH-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