* minor fix for postgresql port of oracle romwnum sql
This commit is contained in:
parent
0a0ed4f0f0
commit
3cd98ecea6
|
@ -879,7 +879,7 @@ public class Doc_Invoice extends Doc
|
||||||
}
|
}
|
||||||
else
|
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 "
|
+ "FROM C_Invoice i1, C_InvoiceLine il1 "
|
||||||
+ "WHERE i1.C_Invoice_ID=il1.C_Invoice_ID"
|
+ "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")
|
+ " AND po.M_Product_ID=il1.M_Product_ID AND po.C_BPartner_ID=i1.C_BPartner_ID")
|
||||||
|
|
Loading…
Reference in New Issue