MYOB Greentree

HideShow

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

 

gtSAAnalysisLine


Use this function to update customer historical sales information for a General Ledger Account, Inventory item or Non-Stock Sales code.

Company

The company code that the sales analysis is to be created in.

SaleDate

The date of the original sale. This determines what period the value is reported in.

Customer

The Customer code that this sale line belongs to.

SalesPerson

The sales person that this sale was made by.

Branch

The branch code.

LineType

The type of sales line this is. Valid codes are GL, IN & NS.

Code1

Depending on the line type entered above, this is the GL Account code, the Inventory Item code, or the Non-Stock sales code.

Code2

Depending on the line type entered above, this is the Company code that the GL Account code belongs to, the Inventory Transaction Type code. No entry is required for a Non-Stock sales code line type.

Account

If this is a GL line type then this is the GL Account code in Code1 above.

NSSalesCode

If this is a NS line type then this is the Non-Stock Sales code in Code1 above.

StockItem

If this is a inventory line type then this is the Inventory Item code in Code1 above.

INTransType

If this is a inventory line type then this is the Inventory Transaction type code in Code2 above. This is not required for a GL or NS line type.

Quantity

The number of units relevant for this line.

NetAmount

The net amount of the line.

TaxAmount

The amount of tax for this line.

CostAmount

The cost amount of the line.

DiscAmount

The discount amount of the line.

Returns

  • Not Updated - When there is no error.
  • Updated - After the function has successfully been updated to Greentree.
  • Error message - If an error is encountered.

Errors Returned

  • Must have a Company Identifier
  • Must have a Sale Date
  • Must have a Code1 Identifier
  • Must have a Customer Identifier
  • Must have a SalesPerson Identifier
  • Must have a LineType Identifier
  • Must have a Branch Identifier
  • Invalid Quantity, must be number or omitted
  • Invalid NetAmount, must be number or omitted
  • Invalid TaxAmount, must be number or omitted
  • Invalid CostAmount, must be number or omitted
  • Invalid DiscAmount, must be number or omitted