Subversion Repositories SmartDukaan

Rev

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

Rev 36188 Rev 36197
Line 1164... Line 1164...
1164
                 * && Arrays.asList(20,21,22,23).contains(localDateTime.getHour())) {
1164
                 * && Arrays.asList(20,21,22,23).contains(localDateTime.getHour())) {
1165
                 * scheduledTasks.sendCreditNote(yearMonth); }
1165
                 * scheduledTasks.sendCreditNote(yearMonth); }
1166
                 */
1166
                 */
1167
                scheduledTasks.sendCreditNote(yearMonth);
1167
                scheduledTasks.sendCreditNote(yearMonth);
1168
            }
1168
            }
-
 
1169
            if (args.containsOption("recoverCreditNote")) {
-
 
1170
                System.out.println("Calling recoverCreditNote");
-
 
1171
                YearMonth yearMonth = YearMonth.of(2026, 3); // March 2026 margins
-
 
1172
                String logFilePath = "/var/log/services/cron.log";
-
 
1173
                scheduledTasks.recoverCreditNote(yearMonth, logFilePath);
-
 
1174
            }
-
 
1175
            if (args.containsOption("resendCNReport")) {
-
 
1176
                System.out.println("Calling resendCNReport");
-
 
1177
                YearMonth yearMonth = YearMonth.now().minusMonths(1);
-
 
1178
                scheduledTasks.resendCNReport(yearMonth);
-
 
1179
            }
1169
            System.exit(0);
1180
            System.exit(0);
1170
        }
1181
        }
1171
    }
1182
    }
1172
}
1183
}
1173
1184