From acdb28a0d0e7a787c0aad2978791516ee25e8cb8 Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Wed, 11 Mar 2026 12:05:42 -0700 Subject: [PATCH] Fix receipt for balance-only payments and add tip display Receipt was treating balance-only orders as card payments, adding Stripe processing fees that inflated the total. Now checks PaymentFromCreditCard to determine if card fees apply. Also adds tip line and includes TipAmount in total calculation. Co-Authored-By: Claude Opus 4.6 --- receipt/index.cfm | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/receipt/index.cfm b/receipt/index.cfm index 09c114c..24f3802 100644 --- a/receipt/index.cfm +++ b/receipt/index.cfm @@ -16,9 +16,10 @@ - SELECT O.OrderTypeID, O.BusinessID, O.Remarks, O.ID, O.BalanceApplied, O.PaymentID, + SELECT O.OrderTypeID, O.BusinessID, O.Remarks, O.ID, O.BalanceApplied, O.PaymentID, O.TipAmount, B.Name, B.TaxRate, B.PayfritFee, - COALESCE(P.PaymentPaidInCash, 0) AS PaymentPaidInCash + COALESCE(P.PaymentPaidInCash, 0) AS PaymentPaidInCash, + COALESCE(P.PaymentFromCreditCard, 0) AS PaymentFromCreditCard FROM Orders O JOIN Businesses B ON B.ID = O.BusinessID LEFT JOIN Payments P ON P.PaymentID = O.PaymentID @@ -306,26 +307,28 @@ - + + - + + - - - - - - + - + + + + + + @@ -350,6 +353,13 @@ + +
+ Tip + #dollarFormat(receiptTip)# +
+
+
Processing fee