VbzCart/docs/queries/qryCbx Orders: Difference between revisions

From Woozle Writes Code
< VbzCart‎ | docs‎ | queries
Jump to navigation Jump to search
imported>Woozle
(New page: ==Details== * '''Requires''': core_orders * '''Used by''': various forms, I think * '''Fields''': ** '''ID_Pull''' and '''WhenNeeded''' are needed for [[../qry...)
 
m (Woozle moved page VbzCart/VbzCart/queries/qryCbx Orders to VbzCart/docs/queries/qryCbx Orders without leaving a redirect: part 2)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
==Details==
==About==
* '''Requires''': [[../../tables/core_orders|core_orders]]
* '''Requires''': {{vbzcart|table|core_orders}}
* '''Used by''': various forms, I think
* '''Used by''': various forms, I think
* '''Fields''':
* '''Fields''':
** '''ID_Pull''' and '''WhenNeeded''' are needed for [[../qryStock_forOpenOrders|qryStock_forOpenOrders]]
** '''ID_Pull''' and '''WhenNeeded''' are needed for {{vbzcart/query|qryStock_forOpenOrders}}
==SQL==
==SQL==
<section begin=sql /><mysql>CREATE OR REPLACE VIEW qryCbx_Orders AS
<section begin=sql /><mysql>CREATE OR REPLACE VIEW qryCbx_Orders AS

Latest revision as of 01:55, 25 February 2024

About

SQL

<section begin=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> <section end=sql />