From e4448cb58860826a82388e62856ee7277f478a15 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Mon, 21 May 2007 22:34:01 +0000 Subject: [PATCH] [ 1723106 ] DunningEntry Amt not updated correctly http://sourceforge.net/tracker/index.php?func=detail&aid=1723106&group_id=176962&atid=879332 --- base/src/org/compiere/model/MDunningRunLine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/src/org/compiere/model/MDunningRunLine.java b/base/src/org/compiere/model/MDunningRunLine.java index 77ae37d6d7..eb95f01309 100644 --- a/base/src/org/compiere/model/MDunningRunLine.java +++ b/base/src/org/compiere/model/MDunningRunLine.java @@ -326,7 +326,7 @@ public class MDunningRunLine extends X_C_DunningRunLine { // we do not count the fee line as an item, but it sum it up. String sql = "UPDATE C_DunningRunEntry e " - + "SET Amt=(SELECT SUM(ConvertedAmt)+SUM(FeeAmt)" + + "SET Amt=(SELECT SUM(ConvertedAmt)+SUM(FeeAmt)+SUM(InterestAmt)" + " FROM C_DunningRunLine l " + "WHERE e.C_DunningRunEntry_ID=l.C_DunningRunEntry_ID), " + "QTY=(SELECT COUNT(*)"