MYOB Greentree

HideShow

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

 

gtJCSalesAdjustGLLine


This function records the line item data needed for a Job Cost GL Sales Adjustment document.

Each adjustment is uploaded to Greentree as a complete transaction set. The adjustment will either be uploaded in its entirety or nothing of the document will be loaded into Greentree Desktop. The adjustment must balance to zero.

Reference

This must be the unique identifier generated by the gtJCSalesAdjustGL function call. It has the format JCSALESADJ-nnn. This ensures the lines are of the correct adjustment header details and it ensures Excel creates the header information before attempting to calculate and create the adjustment line item details.

LineDate

The date of the adjustment line item.

JobCode

The job code the adjustment is to be posted to.

SalesCode

The sales code that the adjustment is to be assigned to.

Quantity

The quantity of the transaction.

SellRate

The price per unit of quantity.

Narration

The line item narration.

Returns

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

Errors Returned

  • Adjustment header error
  • Invalid adjustment header reference
  • The adjustment reference is required
  • The job code is required
  • The account company is required
  • The sales code is required
  • Invalid net amount, must be a number or omitted
  • Invalid quantity, must be a number or omitted
  • Invalid sell rate, must be a number or omitted
  • The line date is required
  • The line date is invalid
  • Totals do not balance to zero