gtARCreditNoteNSLine
This function supplies the information to add non-stock line items to Accounts Receivable Credit Note headers. The Credit Note Reference parameter must be the unique ID returned by the gtARCreditNote function call.
Each Accounts Receivable Credit Note is uploaded to Greentree Desktop as a complete transaction set. The AR Credit Note is either uploaded in its entirety or nothing of the document is loaded into Greentree Desktop.
InvoiceReference
This must be the unique identifier generated by the gtARCreditNote function call. It has the format ARCN-nnn.
This ensures the lines are of the correct Credit Note header details and it ensures Excel creates the header information before attempting to calculate and create the credit note line item details.
NSCode
The non-stock code used for the credit note entry.
Net
The net amount of the line.
Tax
The amount of tax for this line.
Narration
Narration for the credit note line item.
TaxType
Valid tax types are Inclusive or Exclusive.
HoldAmount
The amount to be put on hold for this line.
DiscAmount
The amount of discount given on this line.
Quantity
The number of units relevant for this line. Defaults to 0.
UnitPrice
Price per unit of quantity above. Normally zero on non-quantity general ledger accounts.
TaxPerc
Percentage of tax for this line item.
DiscPerc
Percentage discount given, defaults to 0.
TaxCode
The code that determines the tax rate and type for the transaction. If not entered and Greentree Desktop cannot find a valid default, then an error is returned and the user must enter a valid code.
Returns
- Ok - If there are no errors.
- Error - If there is an error.
Errors Returned
- Invalid credit note header reference. Should be ARCN-nnn
- Must have a Non-stock code number
- Invalid Quantity. Must be number or omitted
- Invalid Hold Amount. Must be number or omitted
- Invalid Discount Amount. Must be number or omitted
- Invalid Unit Price, must be a number or omitted
- Invalid Tax Percentage, must be a number or omitted
- Invalid Discount Percentage, must be a number or omitted