StockQuantity()


Adjusts the stock control physical stock quantity.

Syntax

StockQuantity(<nQuantity)) --> lSuccess

Arguments

<nQty> --> The quantity to adjust the current physical stock holding level by.

Returns

Returns TRUE if the adjustment was possible. FALSE is returned if the record could not be altered either because the record does not exist or is locked by another user or the record does not hold a physical quantity that can be adjusted.

Description

This function adjust the stock control physical stock level by the quantity specified and correctly updates CAPITAL's internal stock movement audit trail files. The database STOCK must be pointing to the record you wish to adjust before you call this function.

generate/notepad1.gifStock kit records do not hold physical quantities so cannot be adjusted by this function.

Example

* Sample balancing entry

If StockQuantity(1)

   Echo("Physical stock increased by 1 unit.")

Endif

____________________________

Related Topics:

Business Function List



CAPITAL VISUAL BUILDER