fix: include PaymentFromCreditCard in cash payment INSERT
PaymentFromCreditCard column is NOT NULL with no default value, causing INSERT to fail silently. Set to 0 for cash payments. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
eda8010927
commit
cb7e3b7fc6
1 changed files with 2 additions and 1 deletions
|
|
@ -61,11 +61,12 @@
|
|||
<cfset qInsertPayment = queryExecute(
|
||||
"INSERT INTO Payments (
|
||||
PaymentPaidInCash,
|
||||
PaymentFromCreditCard,
|
||||
PaymentSentByUserID,
|
||||
PaymentReceivedByUserID,
|
||||
PaymentOrderID,
|
||||
PaymentAddedOn
|
||||
) VALUES (?, ?, 0, ?, NOW())",
|
||||
) VALUES (?, 0, ?, 0, ?, NOW())",
|
||||
[
|
||||
{ value = CashAmount, cfsqltype = "cf_sql_decimal" },
|
||||
{ value = qOrder.UserID, cfsqltype = "cf_sql_integer" },
|
||||
|
|
|
|||
Reference in a new issue