IDEMPIERE-4076 In financial report when calculation is Add Range and operand 1 and operand 2 are same, calculations are wrong

based on patch from Deepak Pansheriya
This commit is contained in:
Carlos Ruiz 2019-12-11 17:13:59 +01:00
parent 304014ab72
commit 2368c6da57
1 changed files with 3 additions and 0 deletions

View File

@ -1110,6 +1110,9 @@ public class FinReport extends SvrProcess
private String getLineIDs (int fromID, int toID)
{
if (log.isLoggable(Level.FINEST)) log.finest("From=" + fromID + " To=" + toID);
if (fromID == toID) {
return String.valueOf(fromID);
}
int firstPA_ReportLine_ID = 0;
int lastPA_ReportLine_ID = 0;