| Line 3... |
Line 3... |
| 3 |
import com.smartdukaan.cron.migrations.RunOnceTasks;
|
3 |
import com.smartdukaan.cron.migrations.RunOnceTasks;
|
| 4 |
import com.smartdukaan.cron.scheduled.ambreports.AbmReportSender;
|
4 |
import com.smartdukaan.cron.scheduled.ambreports.AbmReportSender;
|
| 5 |
import com.smartdukaan.cron.scheduled.leadsync.LeadSyncRunner;
|
5 |
import com.smartdukaan.cron.scheduled.leadsync.LeadSyncRunner;
|
| 6 |
import com.smartdukaan.cron.scheduled.ordertracking.OrderTrackingService;
|
6 |
import com.smartdukaan.cron.scheduled.ordertracking.OrderTrackingService;
|
| 7 |
import com.smartdukaan.cron.scheduled.purchaseorder.POScheduler;
|
7 |
import com.smartdukaan.cron.scheduled.purchaseorder.POScheduler;
|
| - |
|
8 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| 8 |
import com.spice.profitmandi.common.model.ProfitMandiConstants;
|
9 |
import com.spice.profitmandi.common.model.ProfitMandiConstants;
|
| - |
|
10 |
import com.spice.profitmandi.service.warehouse.PoStockApprovalDigestService;
|
| 9 |
import com.spice.profitmandi.dao.service.PurSaleService;
|
11 |
import com.spice.profitmandi.dao.service.PurSaleService;
|
| 10 |
import com.spice.profitmandi.service.integrations.icicilombard.IciciLombardService;
|
12 |
import com.spice.profitmandi.service.integrations.icicilombard.IciciLombardService;
|
| 11 |
import com.spice.profitmandi.service.integrations.icicilombard.model.LastTransactionsResponseModel;
|
13 |
import com.spice.profitmandi.service.integrations.icicilombard.model.LastTransactionsResponseModel;
|
| 12 |
import org.apache.logging.log4j.LogManager;
|
14 |
import org.apache.logging.log4j.LogManager;
|
| 13 |
import org.apache.logging.log4j.Logger;
|
15 |
import org.apache.logging.log4j.Logger;
|
| Line 485... |
Line 487... |
| 485 |
|
487 |
|
| 486 |
scheduledTasks.persistSalesTodayAchievements();
|
488 |
scheduledTasks.persistSalesTodayAchievements();
|
| 487 |
|
489 |
|
| 488 |
}
|
490 |
}
|
| 489 |
|
491 |
|
| 490 |
@Scheduled(cron = "0 0 8 * * *")
|
- |
|
| 491 |
public void reviewNonSdBuyingBrand() throws Throwable {
|
- |
|
| 492 |
log.info("startTime" + LocalDateTime.now());
|
- |
|
| 493 |
|
- |
|
| 494 |
scheduledTasks.reviewNonSdBuyingBrand();
|
- |
|
| 495 |
|
- |
|
| 496 |
}
|
- |
|
| 497 |
|
492 |
|
| 498 |
@Autowired
|
493 |
@Autowired
|
| 499 |
private StandAlone standAlone;
|
494 |
private StandAlone standAlone;
|
| 500 |
|
495 |
|
| 501 |
@Autowired
|
496 |
@Autowired
|
| Line 761... |
Line 756... |
| 761 |
|
756 |
|
| 762 |
@Scheduled(cron = "0 0 1 * * *")
|
757 |
@Scheduled(cron = "0 0 1 * * *")
|
| 763 |
public void autoClosePO() {
|
758 |
public void autoClosePO() {
|
| 764 |
poScheduler.autoClosePurchaseOrders();
|
759 |
poScheduler.autoClosePurchaseOrders();
|
| 765 |
}
|
760 |
}
|
| - |
|
761 |
|
| - |
|
762 |
// Daily PO stock-cover approval digest — 5 heads notified of the day's
|
| - |
|
763 |
// APPROVED / REJECTED decisions. Manual trigger for testing lives at
|
| - |
|
764 |
// POST /po/stock-approvals/digest/trigger.
|
| - |
|
765 |
@Scheduled(cron = "0 0 22 * * *")
|
| - |
|
766 |
public void poStockApprovalDailyDigest() throws Exception {
|
| - |
|
767 |
log.info("poStockApprovalDailyDigest startTime {}", LocalDateTime.now());
|
| - |
|
768 |
runOnceTasks.poStockApprovalDailyDigest();
|
| - |
|
769 |
}
|
| 766 |
/*
|
770 |
/*
|
| 767 |
* @Scheduled(cron = "0 0 9 * * *") public void onBoardingDocumentsPending()
|
771 |
* @Scheduled(cron = "0 0 9 * * *") public void onBoardingDocumentsPending()
|
| 768 |
* throws Throwable { log.info("startTime" + LocalDateTime.now());
|
772 |
* throws Throwable { log.info("startTime" + LocalDateTime.now());
|
| 769 |
* onBoardingRelatedSchelduleTask.onBoardingDocumentsPending();
|
773 |
* onBoardingRelatedSchelduleTask.onBoardingDocumentsPending();
|
| 770 |
* log.info("endTime" + LocalDateTime.now()); }
|
774 |
* log.info("endTime" + LocalDateTime.now()); }
|