VbzCart/queries/qryRstkReq Item status Req info
Jump to navigation
Jump to search
Details
- Returns: Data from
- REDIRECT Template:l/vc/query with some additional info about the request
- Requires: qryRstkReq_Item_status,
- REDIRECT Template:l/vc/table
- Used by: sfrmItem_Rstks (MS Access)
- History:
- 2008-11-23 Created for new restock process
- 2008-12-22 Added WhenOrphaned field, so we can see all possible causes of a restock being inactive
SQL
<mysql>CREATE OR REPLACE VIEW qryRstkReq_Item_status_Req_info AS SELECT
rqis.*, IFNULL(rq.WhenOrdered,rq.WhenCreated) AS WhenMade, rq.WhenClosed, rq.WhenKilled, rq.WhenOrphaned
FROM qryRstkReq_Item_status AS rqis LEFT JOIN rstk_req AS rq ON rqis.ID_RstkReq=rq.ID ORDER BY WhenMade,ID_RstkReq;</mysql>