From 7227891daaf79047f2303239253eee00465b60dc Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Mon, 26 Mar 2007 03:42:02 +0000 Subject: [PATCH] * [ 1688102 ] Posting of PO Failed --- serverRoot/src/main/server/org/compiere/acct/Doc_Order.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serverRoot/src/main/server/org/compiere/acct/Doc_Order.java b/serverRoot/src/main/server/org/compiere/acct/Doc_Order.java index 3332807888..89a6042396 100644 --- a/serverRoot/src/main/server/org/compiere/acct/Doc_Order.java +++ b/serverRoot/src/main/server/org/compiere/acct/Doc_Order.java @@ -629,7 +629,7 @@ public class Doc_Order extends Doc sql.append(" AND o.UPDATED IN (SELECT MAX(o1.UPDATED) " + "FROM C_Order o1, C_OrderLine ol1 " + "WHERE o1.C_Order_ID=ol1.C_Order_ID" - + " AND po.M_Product_ID=ol1.M_Product_ID AND po.C_BPartner_ID=o1.C_BPartner_ID") + + " AND pc.M_Product_ID=ol1.M_Product_ID ") .append(" AND o1.C_Order_ID=").append(get_ID()).append(") "); sql.append(" AND pc.C_AcctSchema_ID=").append(C_AcctSchema_ID).append(" AND o.C_Order_ID=") .append(get_ID()).append(") ")