MYOB Greentree

HideShow

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

 

gtARCreditNoteLine


This function supplies the information to add General Ledger line items to Accounts Receivable Credit Note headers. The critical link is the Credit Note Reference parameter must be the unique ID returned by the gtARCreditNote function call.

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.

AccountCompany

The company identifier that the account belongs to.

Account

The general ledger account number to be posted to.

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. This must be zero on all but numeric based general ledger accounts.

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.

TransCode

The transaction code for the line item.

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 an Account Company identifier
  • Must have an Account number
  • Invalid Quantity, must be a number or omitted
  • Invalid Hold Amount. Must be number or omitted
  • Invalid Discount Amount. Must be number or omitted
  • Invalid Unit Price. Must be number or omitted
  • Invalid Tax Percentage. Must be number or omitted
  • Invalid Discount Percentage. Must be number or omitted
  • Customer Credit Note header not found