Fix ambiguous AddedOn column references in show_order.cfm
Prefixed with OL. table alias for OrderLineItems. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
932fa9737a
commit
1e3ad771b2
1 changed files with 2 additions and 2 deletions
|
|
@ -27,7 +27,7 @@ WHERE O.UUID = '#form.UUID#'
|
|||
<cfif get_order_info.OrderTypeID eq 3>A.ID = O.AddressID
|
||||
AND </cfif>
|
||||
ttO.ID = O.OrderTypeID
|
||||
ORDER BY AddedOn DESC
|
||||
ORDER BY OL.AddedOn DESC
|
||||
</cfquery>
|
||||
|
||||
<cfoutput><cfif url.is_admin_view EQ 0>Ordered On #dateformat(get_parent_items_in_order.CreatedOn, "mm/dd/yy")# at #timeformat(get_parent_items_in_order.CreatedOn, "hh:mm tt")#<br></cfif>
|
||||
|
|
@ -90,7 +90,7 @@ ORDER BY AddedOn DESC
|
|||
OL.ItemID = I.ID
|
||||
AND
|
||||
OL.ParentOrderLineItemID = #get_parent_items_in_order.OrderLineItemID#
|
||||
ORDER BY AddedOn DESC
|
||||
ORDER BY OL.AddedOn DESC
|
||||
</cfquery>
|
||||
|
||||
<cfif get_child_line_items.recordcount GT 0>
|
||||
|
|
|
|||
Reference in a new issue