MYOB Greentree

HideShow

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

 

gtINStockItemDefaults


Use this function to supplement the function gtINStockItem if additional parameters must be set or updated to Greentree.

Company

The company code that the inventory item belongs to.

Code

The inventory item code that is to be updated or created. This code must be unique if a new inventory item is being created.

Description

The description of the inventory item that is to be updated or created.

Note: This is a mandatory field if the inventory item is a new one.

Status

The status of the inventory item. Must be a valid status. It is required if the inventory item is a new one.

Location

The default location for this inventory item.

PrimaryLocation

A flag which indicates whether this location is a primary location. Valid codes are True or False.

If True, the location updates as a primary location.

If False, the location updates as not a primary location. If omitted, and it is a new inventory code, the code updates as not a primary location. If omitted, and it is an existing inventory code, there is no change to the primary location setting in Greentree Desktop.

ReorderCalc

The reorder calculation option. The default is the linear regression model.

SalesAccount

Sales Account code. Allows the GL interface accounts, normally taken from the Analysis Code, to be over-ridden on individual inventory items.

CostAccount

Cost Account code. Allows the GL interface accounts, normally taken from the Analysis Code, to be over-ridden on individual inventory items.

StockAccount

Inventory Account code. Allows the GL interface accounts, normally taken from the Analysis Code, to be over-ridden on individual inventory items.

TransitAccount

Transit Account code. Allows the GL interface accounts, normally taken from the Analysis Code, to be over-ridden on individual inventory items.

ProdnAccount

Production Account code. Allows the GL interface accounts, normally taken from the Analysis Code, to be over-ridden on individual inventory items.

ProdnVarAccount

Production Variance Account code. Allows the GL interface accounts, normally taken from the Analysis Code, to be over-ridden on individual inventory items.

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.

DoesApplyWET

Indicates whether WET tax applies to the item.

TaxClass

The tax class. This must be a valid class on the Tax Class Maintenance form.

IsIndentItem

Enter True or False to indicate whether the item is an indent item or not.

Returns

  • Not Updated - When no error
  • Updated - after running Greentree Desktop update function
  • Error message - if an error is encountered

Example

=gtINStockItemDefaults(01,68SC SECRETARY,,,,A01,,Default)

Errors Returned

  • Must have a Company Identifier
  • Must have a Stock Item code
  • Invalid location
  • This is not a stocking location