S89 - Account Code of Last Sale/Purchase (Stock Control Report Generator variable)
From Catalyst
Syntax
S89{S/P, A/C/D, depot}
Description
The code of the account from when the current stock was last sold or purchased.
Parameters
- S/P
- A text parameter that can be omitted (it defaults to "S").
- S
- From last sale.
- P
- From last purchase.
- A/C/D
- A text parameter that can be omitted (it defaults to "A").
- A
- All depots (last sale/purchase from any depot)
- C
- Current depot (last sale/purchase from the current report depot)
- D
- Supplied depot (last sale/purchase from the supplied depot)
- depot
- A text parameter that can be omitted.
- Last sale/purchase for a specific depot.
- depot
- Filter by 'depot'.
Returns
A text value whose typical size is 6 characters.