MYOB Greentree

HideShow

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

 

gtARCreditNoteJCLine


This function supplies the information to add JC line items to AR credit note headers. The InvoiceReference parameter must be the unique ID returned by the gtARCreditNote function call.

Each AR credit note is uploaded to Greentree Desktop as a complete transaction set. The AR credit note either uploads in its entirety or nothing of the document is loaded into Greentree Desktop unless the function returns a #VALUE!, in which case, if the transactions are processed, this line are not included.

InvoiceReference

This must be the unique identifier generated by the gtARCreditNote function call. It has the format ARCN-nnn. This ensures the lines are associated with the correct invoice header details and it ensures Excel creates the header information before attempting to calculate and create the credit note line item details.

Job

The job code for the transaction.

ActivityCode

The activity code for the transaction.

Amount

The net amount of the line.

Tax

The amount of tax for this line.

Narration

The narration for the transaction.

TaxType

Valid tax types are Inclusive or Exclusive.

Quantity

The number of units relevant for this line. Defaults to 0.

UnitPrice

The price per unit of quantity above. Defaults to 0.

DiscPerc

The percentage discount given for this line. Defaults to 0.

DiscAmount

The amount of discount given on this line.

TaxPerc

The percentage of tax for this line item.

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 all is okay.
  • #VALUE! if an invalid entry is made such as text for a numeric value. On this, case if the transactions are processed this line are not included.

Errors Returned

  • Invalid Invoice header reference. Should be ARCN-nnn.
  • Must have an Job.
  • Must have a Sales Code.
  • Invalid tax type. Must be Inclusive or Exclusive.
  • Invalid job. Must be a valid Job Code.
  • Invalid sales code. Must be a valid sales code.
  • Invalid Tax Code. Must be a valid tax code or omitted.