From 3cd98ecea603eb104440acc87b37ea01f721db14 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Tue, 10 Apr 2007 01:38:58 +0000 Subject: [PATCH] * minor fix for postgresql port of oracle romwnum sql --- serverRoot/src/main/server/org/compiere/acct/Doc_Invoice.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serverRoot/src/main/server/org/compiere/acct/Doc_Invoice.java b/serverRoot/src/main/server/org/compiere/acct/Doc_Invoice.java index 2275a557ba..cde49cbe7d 100644 --- a/serverRoot/src/main/server/org/compiere/acct/Doc_Invoice.java +++ b/serverRoot/src/main/server/org/compiere/acct/Doc_Invoice.java @@ -879,7 +879,7 @@ public class Doc_Invoice extends Doc } else { - sql.append(" AND i.UPDATED IN (SELECT MAX(i1.UPDATED) " + sql.append(" AND il.C_InvoiceLine_ID = (SELECT MIN(il1.C_InvoiceLine_ID) " + "FROM C_Invoice i1, C_InvoiceLine il1 " + "WHERE i1.C_Invoice_ID=il1.C_Invoice_ID" + " AND po.M_Product_ID=il1.M_Product_ID AND po.C_BPartner_ID=i1.C_BPartner_ID")