Table of Contents |
---|
...
Impact of buffers on stock calculations
Taken into account in stock requests
Buffers are categorized into buffer groups. This categorization allows for efficient referencing from a stock query, making the management of buffers more structured and organized.
Bufferes are taken into account in Stock Queries when their groups are referenced in the query.
Global buffers will only take effect when the Stock Query is unified by stock location, otherwise it will not be taken into account.
...
BufKeyRequest
= Detailed Buffer - Declaration by key requests
BufGlob
= Global Buffer
Detailed stock query
...
(Without stock location unification)
Code Block |
---|
Stock per stock location : MAX( RawStock - ResStockLocation - Dispositions - MAX(BufPairs, BufKeyRequest) , 0 ) |
...
Unified stock query (With stock location unification)
Code Block |
---|
MIN( SUM( MAX_per_stock_location( RawStock - ResStockLocation - Dispositions - MAX(BufPairs, BufKeyRequest), 0 ) ), SUM(RawStock - ResStockLocation- Dispositions) - BufGlob ) |
...