From 8554fb8d24af1be02f8dcc3f419ec3fe3133e86d Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Fri, 15 Feb 2008 08:26:21 +0000 Subject: [PATCH] BF [ 1803316 ] CalloutPayment: use C_Order.Bill_BPartner_ID --- base/src/org/compiere/model/CalloutPayment.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/base/src/org/compiere/model/CalloutPayment.java b/base/src/org/compiere/model/CalloutPayment.java index ad18638886..fd59c0d284 100644 --- a/base/src/org/compiere/model/CalloutPayment.java +++ b/base/src/org/compiere/model/CalloutPayment.java @@ -28,6 +28,9 @@ import org.compiere.util.*; * * @author Jorg Janke * @version $Id: CalloutPayment.java,v 1.3 2006/07/30 00:51:03 jjanke Exp $ + * + * @author Teo Sarca, SC ARHIPAC SERVICE SRL + *
  • BF [ 1803316 ] CalloutPayment: use C_Order.Bill_BPartner_ID */ public class CalloutPayment extends CalloutEngine { @@ -152,7 +155,9 @@ public class CalloutPayment extends CalloutEngine if (ts == null) ts = new Timestamp(System.currentTimeMillis()); // - String sql = "SELECT C_BPartner_ID,C_Currency_ID, GrandTotal " + String sql = "SELECT COALESCE(Bill_BPartner_ID, C_BPartner_ID) as C_BPartner_ID " + +", C_Currency_ID " + +", GrandTotal " + "FROM C_Order WHERE C_Order_ID=?"; // #1 PreparedStatement pstmt = null; ResultSet rs = null;