|
StockQuantity() 
Adjusts the stock control physical stock quantity
or allocated/reserved stock quantity.
Syntax
StockQuantity(<nQuantity, nAllocated)) -->
lSuccess
Arguments
<nQty> --> The quantity to adjust the
current physical stock holding level by.
<nAllocated> --> The quantity to adjust
the current stock allocation 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.
Stock 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
If StockQuantity(,
1)
Echo("Allocated stock quantity
increased by 1 unit.")
Endif
____________________________
Related Topics
Business
Function List
|