MYOB Greentree

HideShow

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

 

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 as a complete transaction set. The AR Credit Note will either be uploaded in its entirety or nothing of the document will be 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 relevant to 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 used to determine the tax rate and type for the transaction. If not entered and Greentree cannot find a valid default, then an error is returned and the user will be expected to enter a valid code.

Returns

  • Ok - if no errors are encountered
  • Error - if an error is encountered

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