Reset MoneyCostCalculator before generating project status report
If you generate the report and afterwards you report some expenses in a project, the MoneyCostCalculator cache still keep the previous value for the report. Now the MoneyCostCalculator cache is reseted every time the report is generated. FEA: ItEr77S09WBSReport
This commit is contained in:
parent
1a8ab420f0
commit
7f5d6c4ace
1 changed files with 2 additions and 0 deletions
|
|
@ -94,6 +94,8 @@ public class ProjectStatusReportModel implements IProjectStatusReportModel {
|
|||
@Override
|
||||
@Transactional(readOnly = true)
|
||||
public List<ProjectStatusReportDTO> getProjectStatusReportDTOs(Order order) {
|
||||
moneyCostCalculator.resetMoneyCostMap();
|
||||
|
||||
List<OrderElement> orderElements;
|
||||
if (order != null) {
|
||||
orderDAO.reattach(order);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue