I used to see in the GardenWorld demo Balance Sheet
that the calculation of 'add range of lines' producing
incorrect value. As I go through this
class: "org.compiere.report.FinReport", guess the error
may be due to line 419: sb.append(getLineIDs (oper_1,
For addition of line range, the program is passing
the "from line id" and "to line id" to the
method "getLineIDs(int fromID, int toID)", to get all line
ids in between fromID and toID, then sum up the values
of each line. This method assumes fromID always smaller
However in FinReport.java, before calling "getLineIDs(int
fromID, int toID)", the from id (oper_1) and to id
(oper_2) have been swapped (in line 394~399). So the
fromID is actually the end line id, the toID is the
beginning line id (now oper_1>oper_2). Resulting in the
return string, all line ids greater that fromID are return
(till the last line id). This makes the calculation of 'add
range of lines' incorrect.
What I have attempt to fix is: FinReport.java in line 419,
change it to: "sb.append(getLineIDs (oper_2, oper_1));"
and build from the source again (250c), now i can have
correct value of add range.
Hope this helps.