VbzCart/docs/queries/qryRstkReq Item status Req info
Jump to navigation
Jump to search
Details
- Returns: Data from Template:Vbzcart/query with some additional info about the request
- Requires: Template:Vbzcart/query, Template:Vbzcart/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
<section begin=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> <section end=sql />