Commit 10871ac9 authored by frank.xa.zhang's avatar frank.xa.zhang

Merge branch 'dev' into dev_frank

parents fab92652 3d3e89cc
......@@ -602,7 +602,7 @@ public class ReportGeneratorImpl extends VatAbstractService implements ReportGen
List<PCTEntity> entities = formulaMapToPCT.get(pctStr);
BigDecimal result = new BigDecimal("0");
for (PCTEntity entity : entities) {
result = result.add(pctCache.get(entity));
result = pctCache.containsKey(entity) ? result.add(pctCache.get(entity)) : result;
}
k.setParsedFormula(k.getParsedFormula().replace(pctStr, result.toString()));
});
......
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