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 salesperson 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

Errors Returned