Commit ef170d92 authored by chase's avatar chase

修复jff跟dffs公式取值错误

parent 7059de95
...@@ -186,13 +186,13 @@ public class DFFS extends FunctionBase implements FreeRefFunction { ...@@ -186,13 +186,13 @@ public class DFFS extends FunctionBase implements FreeRefFunction {
for (TrialBalanceFinal balance : temp) { for (TrialBalanceFinal balance : temp) {
ReportCellDataSourceDto dto = new ReportCellDataSourceDto(); ReportCellDataSourceDto dto = new ReportCellDataSourceDto();
dto.setAmount(balance.getPeriodCr()); dto.setAmount(balance.getPeriodCrBeq());
dto.setPeriod(period); dto.setPeriod(period);
dto.setIsOnlyManualInput(Boolean.FALSE); dto.setIsOnlyManualInput(Boolean.FALSE);
dto.setName(Constant.DataSourceName.ReportDataSource); dto.setName(Constant.DataSourceName.ReportDataSource);
dto.setType(FormulaDataSourceType.Report.getCode()); dto.setType(FormulaDataSourceType.Report.getCode());
contain.add(dto); contain.add(dto);
} }
return temp.stream().mapToDouble(a -> a.getPeriodCr().doubleValue()).sum(); return temp.stream().mapToDouble(a -> a.getPeriodCrBeq().doubleValue()).sum();
} }
} }
...@@ -183,13 +183,13 @@ public class JFFS extends FunctionBase implements FreeRefFunction { ...@@ -183,13 +183,13 @@ public class JFFS extends FunctionBase implements FreeRefFunction {
for (TrialBalanceFinal balance : temp) { for (TrialBalanceFinal balance : temp) {
ReportCellDataSourceDto dto = new ReportCellDataSourceDto(); ReportCellDataSourceDto dto = new ReportCellDataSourceDto();
dto.setAmount(balance.getPeriodDr()); dto.setAmount(balance.getPeriodDrBeq());
dto.setPeriod(period); dto.setPeriod(period);
dto.setIsOnlyManualInput(Boolean.FALSE); dto.setIsOnlyManualInput(Boolean.FALSE);
dto.setName(Constant.DataSourceName.ReportDataSource); dto.setName(Constant.DataSourceName.ReportDataSource);
dto.setType(FormulaDataSourceType.Report.getCode()); dto.setType(FormulaDataSourceType.Report.getCode());
contain.add(dto); contain.add(dto);
} }
return temp.stream().mapToDouble(a -> a.getPeriodDr().doubleValue()).sum(); return temp.stream().mapToDouble(a -> a.getPeriodDrBeq().doubleValue()).sum();
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment