[ 1723106 ] DunningEntry Amt not updated correctly

http://sourceforge.net/tracker/index.php?func=detail&aid=1723106&group_id=176962&atid=879332
This commit is contained in:
teo_sarca 2007-05-21 22:34:01 +00:00
parent 9c2bba3565
commit e4448cb588
1 changed files with 1 additions and 1 deletions

View File

@ -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. // we do not count the fee line as an item, but it sum it up.
String sql = "UPDATE C_DunningRunEntry e " 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 " + " FROM C_DunningRunLine l "
+ "WHERE e.C_DunningRunEntry_ID=l.C_DunningRunEntry_ID), " + "WHERE e.C_DunningRunEntry_ID=l.C_DunningRunEntry_ID), "
+ "QTY=(SELECT COUNT(*)" + "QTY=(SELECT COUNT(*)"