From 6637f549d771bb7f96ee161188a9ec7071163919 Mon Sep 17 00:00:00 2001 From: hengsin Date: Tue, 7 Dec 2021 19:14:20 +0800 Subject: [PATCH] IDEMPIERE-5084 SQL error in MPaymentTransaction.getAuthorizationPaymentTransactionIDs method (#1036) --- .../src/org/compiere/model/MPaymentTransaction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/model/MPaymentTransaction.java b/org.adempiere.base/src/org/compiere/model/MPaymentTransaction.java index 79af0f84dc..1fec6f4829 100644 --- a/org.adempiere.base/src/org/compiere/model/MPaymentTransaction.java +++ b/org.adempiere.base/src/org/compiere/model/MPaymentTransaction.java @@ -657,7 +657,7 @@ public class MPaymentTransaction extends X_C_PaymentTransaction implements Proce if (orderIDs.length() > 0 && C_Invoice_ID > 0) whereClause.append(" AND (C_Order_ID IN (").append(orderIDs).append(") OR C_Invoice_ID=").append(C_Invoice_ID).append(")"); else if (orderIDs.length() > 0) - whereClause.append(" AND C_Order_ID IN ('").append(orderIDs).append(")"); + whereClause.append(" AND C_Order_ID IN (").append(orderIDs).append(")"); else if (C_Invoice_ID > 0) whereClause.append(" AND C_Invoice_ID=").append(C_Invoice_ID); whereClause.append(" AND IsApproved='Y' AND IsVoided='N' AND IsDelayedCapture='N' ");