VbzCart/queries/qryRstkItms unsent for order

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Revision as of 19:17, 4 December 2008 by Woozle (talk | contribs) (adapted from Access version, using new restock tables)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Details

  • Purpose: This should have enough information in it that we can use it to generate a restock order in whatever format the supplier needs it to be in, with minimal hand-massaging.
  • Requires: rstk_req_item, qryCat_Items
  • Used by: eventually, the restock order generation form (currently working on this)
  • History:
    • 2008-12-04 Created for new restock process

SQL

<section begin=sql /><mysql>CREATE OR REPLACE VIEW qryRstkReq_for_order AS SELECT

 ri.ID_Restock,
 ri.ID_Item,
 ci.CatNum,
 ci.Title_CatNum,
 ci.Title_Name,
 ci.ID_ItTyp,
 ci.ID_itOpt,
 ci.ItOpt_Descr,
 ci.ItOpt_Sort,
 ci.Supp_CatNum,
 ri.QtyOrd,
 ri.QtyExp,
 ci.QtyMin_Stk,
 ri.CostExpPer,
 ci.PriceSell

FROM rstk_req_item AS ri LEFT JOIN qryCat_Items AS ci ON ci.ID=ri.ID_Item ORDER BY ci.CatNum;</mysql> <section end=sql />