S99 - Stock Quantity (Stock Control Report Generator variable)

From Catalyst
Jump to: navigation, search

Syntax

S99{account, D1-D16}

Description

Return the stock level of the current stock line.

Parameters

account
A text parameter that can be omitted.
If you have are using the Asset Management module for keeping track of individual stock items within a stock line then you can supply an account code along with a ledger code (S for Sales, P for Purchase) to get the number of this stock line at that account.
D1-D16
A text parameter that can be omitted.
Given a Date, the report will back calculate your Quantity in Stock on that Date from Stock History movements. (Note, has no effect if Parameter 1 is used.)
D1-D16
Corresponds to the date range screen.

Returns

A numeric value whose typical size is 6 digits plus 2 decimal places.