Fix receipt page: Payments PK is PaymentID not ID
Payments table still uses old prefixed column names. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
bc52a0242f
commit
214c65adb2
1 changed files with 1 additions and 1 deletions
|
|
@ -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 = <cfqueryparam value="#url.UUID#" cfsqltype="cf_sql_varchar">
|
||||
</cfquery>
|
||||
|
||||
|
|
|
|||
Reference in a new issue