VbzCart/queries/qryRstkReq Item status Req info

Details

 * Returns: Data from with some additional info about the request
 * Requires: ,
 * 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
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;