Subversion Repositories SmartDukaan

Rev

Rev 35848 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35848 Rev 35942
Line 233... Line 233...
233
        for (String brand : brands) {
233
        for (String brand : brands) {
234
            Map<YearMonth, Double> yearMonthValue = brandMonthValue.get(brand);
234
            Map<YearMonth, Double> yearMonthValue = brandMonthValue.get(brand);
235
            for (int i = 6; i >= 0; i--) {
235
            for (int i = 6; i >= 0; i--) {
236
 
236
 
237
                LocalDateTime startMonth = curDate.withDayOfMonth(1).minusMonths(i);
237
                LocalDateTime startMonth = curDate.withDayOfMonth(1).minusMonths(i);
238
                LOGGER.info("startMonth" + startMonth);
238
                LOGGER.debug("startMonth {}", startMonth);
239
 
239
 
240
                if (yearMonthValue != null) {
240
                if (yearMonthValue != null) {
241
                    if (yearMonthValue.get(YearMonth.from(startMonth)) == null) {
241
                    if (yearMonthValue.get(YearMonth.from(startMonth)) == null) {
242
                        yearMonthValue.put(YearMonth.from(startMonth), 0.0);
242
                        yearMonthValue.put(YearMonth.from(startMonth), 0.0);
243
                    }
243
                    }