gtARSalesItem
This function enables new Non-Stock Sales Codes to be updated to Greentree. The function does not update existing Sales Codes. The function call updates into Greentree using the Maintenance > Accounts Receivable > Non-stock AP Purchase & AR Sales Codes menu:
Company
The company code that the customer belongs to.
Code
The Sales item code. This must be unique within the company. If the code already exists in the company then an error will be returned.
Description
The Sales Code description.
Account
The General Ledger account to be updated when the Non-Stock code is used.
Price
The default price for the items sold under the Non-Stock code.
CostOfSaleRate
The default cost of sales rate for this item.
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
- Not Updated - When no error
- Updated - After Greentree update
- Error message - If error encountered
Errors Returned
- Must have a Company identifier
- Invalid Company identifier
- Must have a Sales Code
- Sales Code must be unique