From 214c65adb26e67c471b5cb6f3d24a576c35f1f76 Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Wed, 11 Mar 2026 11:51:25 -0700 Subject: [PATCH] Fix receipt page: Payments PK is PaymentID not ID Payments table still uses old prefixed column names. Co-Authored-By: Claude Opus 4.6 --- receipt/index.cfm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receipt/index.cfm b/receipt/index.cfm index 8165f46..09c114c 100644 --- a/receipt/index.cfm +++ b/receipt/index.cfm @@ -21,7 +21,7 @@ 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 + LEFT JOIN Payments P ON P.PaymentID = O.PaymentID WHERE O.UUID =