VbzCart/queries/qryStk lines remaining byBin
Jump to navigation
Jump to search
About
- Returns: list of bins, with stock quantities for each (for sale, for shipping, existing)
- Requires:
- REDIRECT Template:l/vc/query
- Used by: qryStk_Bins_w_info
- History:
- 2009-04-29 Created for Special:VbzAdmin
SQL
<mysql>CREATE OR REPLACE VIEW qryStk_lines_remaining_byBin AS
SELECT ID_Bin, SUM(QtyForSale) AS QtyForSale, SUM(QtyForShip) AS QtyForShip, SUM(QtyExisting) AS QtyExisting FROM v_stk_lines_remaining GROUP BY ID_Bin;</mysql>