<cfif NOT len(trim(url.UUID))> <cfoutput>

## Receipt not found

The receipt link may be invalid or expired.

</cfoutput> <cfabort> </cfif> SELECT O.OrderTypeID, O.BusinessID, O.Remarks, O.ID, B.Name, B.TaxRate FROM Orders O JOIN Businesses B ON B.ID = O.BusinessID WHERE O.UUID = <cfif get_order_info.recordcount EQ 0> <cfoutput>
Receipt Not Found

## Receipt not found

The receipt link may be invalid or expired.

</cfoutput> <cfabort> </cfif> SELECT T.CreatedOn FROM Tasks T WHERE T.OrderID = LIMIT 1 SELECT Name AS tt_OrderTypeName FROM tt_OrderTypes WHERE ID = <cfif get_order_info.OrderTypeID EQ 3> SELECT A.Line1 FROM Addresses A, Orders O WHERE O.UUID = AND A.ID = O.AddressID </cfif> SELECT OL.ID, OL.Quantity, OL.Remark, I.ID, I.Name, I.Price, I.CategoryID FROM OrderLineItems OL JOIN Items I ON I.ID = OL.ItemID JOIN Orders O ON O.ID = OL.OrderID WHERE O.UUID = AND OL.ParentOrderLineItemID = 0 ORDER BY OL.AddedOn DESC <cfoutput>
Receipt - #htmlEditFormat(get_order_info.Name)#

# #htmlEditFormat(get_order_info.Name)#

#htmlEditFormat(get_order_type.tt_OrderTypeName)#<cfif get_order_info.OrderTypeID EQ 3 AND isDefined("get_address")> to #htmlEditFormat(get_address.Line1)#</cfif>
<cfif get_order_task.recordcount GT 0 AND url.is_admin_view EQ 0>
Date #dateFormat(get_order_task.CreatedOn, "mmm d, yyyy")#
Time #timeFormat(get_order_task.CreatedOn, "h:mm tt")#
</cfif>
Order ###get_order_info.ID#
<cfif len(trim(get_order_info.Remarks))>
#htmlEditFormat(get_order_info.Remarks)#
</cfif>

Item | Qty | Price | Total
--- | --- | --- | ---
<cfif get_parent_items.CategoryID NEQ 31> </cfif>
#htmlEditFormat(get_parent_items.Name)# | #get_parent_items.Quantity# | #dollarFormat(get_parent_items.Price)# | #dollarFormat(line_total)#
SELECT I.Name, I.Price, I.ParentItemID FROM OrderLineItems OL JOIN Items I ON I.ID = OL.ItemID WHERE OL.ParentOrderLineItemID = ORDER BY OL.AddedOn DESC <cfif get_child_items.recordcount GT 0> SELECT Name FROM Items WHERE ID =
#htmlEditFormat(get_mod_parent_name.Name)#: #htmlEditFormat(get_child_items.Name)# (#dollarFormat(get_child_items.Price)#) | #dollarFormat(mod_total)#
</cfif> <cfif len(trim(get_parent_items.Remark))>
#htmlEditFormat(get_parent_items.Remark)#
</cfif>

Subtotal #dollarFormat(cart_grand_total)#
<cfif get_order_info.TaxRate GT 0> <cfelse> </cfif> <cfif tax_amount GT 0>
Tax #dollarFormat(tax_amount)#
</cfif> <cfif url.is_admin_view EQ 1>
Service fee #dollarFormat(PaymentPayfritsCut)#
</cfif> <cfif get_order_info.OrderTypeID EQ 3>
Delivery fee #dollarFormat(PaymentDeliveryFee)#
</cfif>
Total #dollarFormat(order_grand_total)#
</cfoutput>