Commit 1b9ea9da authored by neo's avatar neo

[DEV] fixed psum index

parent 53270579
......@@ -59,7 +59,7 @@ public class PSUM extends FunctionBase implements FreeRefFunction {
private BigDecimal evaluatePCells(List<PCell> pCells, OperationEvaluationContext ec, FormulaContext formulaContext, List<Object> dataSource) {
BigDecimal bigDecimal = new BigDecimal(0);
for (PCell pCell : pCells) {
ValueEval eval = ec.getRefEval(pCell.rowIndex, pCell.columnIndex);
ValueEval eval = ec.getRefEval(pCell.rowIndex-1, pCell.columnIndex-1);
List<CellTemplatePerGroupDto> cellTemplateDataList = agent.getCellTemplateGroupDto(formulaContext.getReportTemplateGroupId(),
formulaContext.getProjectId(), ec.getWorkbook().getSheetName(ec.getSheetIndex()), pCell.rowIndex-1,
pCell.columnIndex-1, formulaContext.getPeriod());
......
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