Subversion Repositories SmartDukaan

Rev

Rev 35522 | Rev 35616 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35522 Rev 35568
Line 302... Line 302...
302
        propertiesDetails.put("attachToffeeInvoices", "1");
302
        propertiesDetails.put("attachToffeeInvoices", "1");
303
        writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
303
        writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
304
 
304
 
305
    }
305
    }
306
 
306
 
307
    @Scheduled(cron = "0 0 5 * * *")
-
 
308
    public void ticketClosed() throws Throwable {
-
 
309
 
-
 
310
        LinkedHashMap<String, String> propertiesDetails = new LinkedHashMap<>();
-
 
311
        propertiesDetails.put("ticketClosed", "0");
-
 
312
        writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
307
    // REMOVED: ticketClosed() scheduler - now handled by TicketRelatedScheduledTask.autoCloseResolvedTickets()
313
 
-
 
314
        scheduledTasks.ticketClosed();
-
 
315
 
-
 
316
        propertiesDetails.put("ticketClosed", "1");
-
 
317
        writeToPropertiesFile.saveParamChanges(propertiesDetails, nagiosCronPropertiesFile);
308
    // which uses 8 working days instead of 7 calendar days and runs as part of processAllTicketTasks()
318
 
-
 
319
    }
-
 
320
 
309
 
321
    @Scheduled(cron = "0 0 8 * * *")
310
    @Scheduled(cron = "0 0 8 * * *")
322
    public void checkfocusedModelInPartnerStock() throws Throwable {
311
    public void checkfocusedModelInPartnerStock() throws Throwable {
323
        log.info("startTime" + LocalDateTime.now());
312
        log.info("startTime" + LocalDateTime.now());
324
 
313