Commit 3133d78b authored by neo's avatar neo

[DEV] change other define for cellValue

parent 15c40587
...@@ -87,8 +87,10 @@ public class PSUM extends FunctionBase implements FreeRefFunction { ...@@ -87,8 +87,10 @@ public class PSUM extends FunctionBase implements FreeRefFunction {
logger.debug("[PSUM_debug] eval other cell value {}", evalStr); logger.debug("[PSUM_debug] eval other cell value {}", evalStr);
try { try {
cellValue = new BigDecimal(evalStr); cellValue = new BigDecimal(evalStr);
if (!dss.isEmpty()) if (!dss.isEmpty()){
cellValue = cellValue.add(dss.get(0).getAmount()); BigDecimal addManualResult = cellValue.add(dss.get(0).getAmount());
cellValue = addManualResult;
}
} catch (Exception e) { } catch (Exception e) {
if (!dss.isEmpty()) if (!dss.isEmpty())
cellValue = dss.get(0).getAmount(); cellValue = dss.get(0).getAmount();
......
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