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:
John Mizerek 2026-02-15 16:56:59 -08:00
parent 932fa9737a
commit 1e3ad771b2

View file

@ -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>