MYOB Greentree

HideShow

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

 

gtINStockTakeCount


This function provides the information required to create inventory transactions based on stocktake counts entered using the gtINStockTakeCountLine function. The function returns a unique identifier that links the associated item counts.

Company

The company code of the stocktake count. This must be an exact string match.

Stocktake

The stocktake name of the stocktake count. This must be an exact string match.

ProcessDate

The transaction processing date (will convert to document date for adjustment transactions)

PosAdjRef

The reference to use for positive adjustments. This must be unique.

PosAdjTranType

The transaction type to use for positive adjustments. This must be an exact string match.

PosAdjTaxCode

The tax code to use for positive adjustments. This must be an exact string match.

NegAdjRef

The reference to use for negative adjustments. This must be unique.

NegAdjTranType

The transaction type to use for negative adjustments. This must be an exact string match.

NegAdjTaxCode

The tax code to use for negative adjustments. This must be an exact string match.

BinTransRef

String (20)

The reference to use for the bin adjustment. This must be the same for all updates to a single stocktake.

CancelOnError

Valid entries are True or False If True, then INStockTake:isContinueUpdateErrorOccur is assumed to be false. No counts process if one or more errors occur during the update. If this is False, then item counts not in error will process, but those in error do not.

Note: All parameters in this function are mandatory.

Returns

INSTK-nnn- this is used as input to the gtINStocktakeCountLine function.

Example

=gtINStockTakeCount(01,01,May Stocktake,28/05/2007,REF1,+ADJ,NOGST,REF2 , -ADJ,NOGST,True)

Errors Returned

  • Unknown company
  • Cannot find stocktake
  • Stocktake is already completed
  • The positive adjustment reference cannot be the same as the negative adjustment reference
  • Invalid positive adjustment transaction type
  • Invalid negative adjustment transaction type
  • Invalid positive adjustment tax code
  • Invalid negative adjustment tax code