VbzCart/queries/qryCbx Orders
< VbzCart | queries
Jump to navigation
Jump to search
Revision as of 21:03, 3 December 2008 by Woozle (talk | contribs) (New page: ==Details== * '''Requires''': core_orders * '''Used by''': various forms, I think * '''Fields''': ** '''ID_Pull''' and '''WhenNeeded''' are needed for [[../qry...)
Details
- Requires: core_orders
- Used by: various forms, I think
- Fields:
- ID_Pull and WhenNeeded are needed for qryStock_forOpenOrders
SQL
<mysql>CREATE OR REPLACE VIEW qryCbx_Orders AS SELECT
ID, CONCAT_WS(' due ',CAST(Number AS CHAR),DATE_FORMAT(WhenNeeded,'%Y-%m-%d')) AS Descr, ID_Pull, WhenNeeded
FROM core_orders ORDER BY CONCAT(IFNULL(SortPfx,),Number) DESC;</mysql>