Fix submit.cfm: correct column names for OrderLineItems and ServicePoints queries
This commit is contained in:
parent
abf444ffe6
commit
add65346c9
1 changed files with 6 additions and 6 deletions
|
|
@ -42,7 +42,7 @@
|
||||||
ItemID,
|
ItemID,
|
||||||
IsDeleted
|
IsDeleted
|
||||||
FROM OrderLineItems
|
FROM OrderLineItems
|
||||||
WHERE ID = ?
|
WHERE OrderID = ?
|
||||||
ORDER BY ID
|
ORDER BY ID
|
||||||
",
|
",
|
||||||
[ { value = arguments.OrderID, cfsqltype = "cf_sql_integer" } ],
|
[ { value = arguments.OrderID, cfsqltype = "cf_sql_integer" } ],
|
||||||
|
|
@ -90,7 +90,7 @@
|
||||||
)>
|
)>
|
||||||
|
|
||||||
<cfloop query="qMeta">
|
<cfloop query="qMeta">
|
||||||
<cfset out.itemMeta[qMeta.ItemID] = {
|
<cfset out.itemMeta[qMeta.ID] = {
|
||||||
"requires": qMeta.RequiresChildSelection,
|
"requires": qMeta.RequiresChildSelection,
|
||||||
"maxSel": qMeta.MaxNumSelectionReq
|
"maxSel": qMeta.MaxNumSelectionReq
|
||||||
}>
|
}>
|
||||||
|
|
@ -143,9 +143,9 @@
|
||||||
"
|
"
|
||||||
SELECT o.ID, o.StatusID, o.OrderTypeID, o.BusinessID, o.ServicePointID,
|
SELECT o.ID, o.StatusID, o.OrderTypeID, o.BusinessID, o.ServicePointID,
|
||||||
o.GrantID, o.GrantOwnerBusinessID,
|
o.GrantID, o.GrantOwnerBusinessID,
|
||||||
sp.ServicePointName AS Name
|
sp.Name AS Name
|
||||||
FROM Orders o
|
FROM Orders o
|
||||||
LEFT JOIN ServicePoints sp ON sp.ServicePointID = o.ServicePointID
|
LEFT JOIN ServicePoints sp ON sp.ID = o.ServicePointID
|
||||||
WHERE o.ID = ?
|
WHERE o.ID = ?
|
||||||
LIMIT 1
|
LIMIT 1
|
||||||
",
|
",
|
||||||
|
|
@ -199,9 +199,9 @@
|
||||||
"
|
"
|
||||||
SELECT COUNT(*) AS Cnt
|
SELECT COUNT(*) AS Cnt
|
||||||
FROM OrderLineItems
|
FROM OrderLineItems
|
||||||
WHERE ID = ?
|
WHERE OrderID = ?
|
||||||
AND ParentOrderLineItemID = 0
|
AND ParentOrderLineItemID = 0
|
||||||
AND IsDeleted = b'0'
|
AND IsDeleted = 0
|
||||||
",
|
",
|
||||||
[ { value = OrderID, cfsqltype = "cf_sql_integer" } ],
|
[ { value = OrderID, cfsqltype = "cf_sql_integer" } ],
|
||||||
{ datasource = "payfrit" }
|
{ datasource = "payfrit" }
|
||||||
|
|
|
||||||
Reference in a new issue