From 06adc1211ea90d46be9cce9c61abf4a2b00be8d5 Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Sun, 8 Mar 2026 11:24:23 -0700 Subject: [PATCH] Fix receipt showing processing fee for cash orders Cash orders have no card processing fee. Now checks PaymentPaidInCash to determine payment type and skips the Stripe fee calculation + display for cash orders. Co-Authored-By: Claude Opus 4.6 --- receipt/index.cfm | 38 ++++++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/receipt/index.cfm b/receipt/index.cfm index 443ce99..8165f46 100644 --- a/receipt/index.cfm +++ b/receipt/index.cfm @@ -16,10 +16,12 @@ - SELECT O.OrderTypeID, O.BusinessID, O.Remarks, O.ID, O.BalanceApplied, - B.Name, B.TaxRate, B.PayfritFee + SELECT O.OrderTypeID, O.BusinessID, O.Remarks, O.ID, O.BalanceApplied, O.PaymentID, + B.Name, B.TaxRate, B.PayfritFee, + COALESCE(P.PaymentPaidInCash, 0) AS PaymentPaidInCash FROM Orders O JOIN Businesses B ON B.ID = O.BusinessID + LEFT JOIN Payments P ON P.ID = O.PaymentID WHERE O.UUID = @@ -304,21 +306,27 @@ + + + - - - - - - - - - - - - + + + + + + + + + + + + + + + @@ -342,10 +350,12 @@ +
Processing fee #dollarFormat(cardFee)#
+