VbzCart/queries/qryRpt Pkg Lines

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< VbzCart‎ | queries
Revision as of 16:33, 31 May 2011 by Woozle (talk | contribs) (copied, not tested)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

About

  1. REDIRECT Template:l/vc/query
  • History:
    • 2011-05-31 ported from MS Access so I can print packing slips from web interface (final major piece?)

SQL

<mysql>CREATE OR REPLACE VIEW qryRpt_Pkg_Lines AS SELECT

 p.ID AS ID,
 p.ID_Pkg,
 o.Seq,
 iif(o.CatNum IS NULL,i.CatNum,o.CatNum) AS CatNum,
 iif(o.Descr IS NULL,i.Descr,o.Descr) AS Descr,
 o.QtyOrd,
 p.QtyShipped,
 p.QtyExtra,
 p.QtyNotAvail,
 p.QtyKilled,
 o.Price,
 o.ShipItm,
 o.ShipPkg,
 i.ID_Title

FROM (

 ord_pkg_lines AS p LEFT JOIN
 ord_lines AS o ON p.ID_OrdLine=o.ID) LEFT JOIN
 qryCat_Items AS i ON p.ID_Item=i.ID;</mysql>


This has not yet been modified to work with MySQL.