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:
Manuel Rego Casasnovas 2012-10-25 12:08:53 +02:00
parent 1a8ab420f0
commit 7f5d6c4ace

View file

@ -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);