Subversion Repositories SmartDukaan

Rev

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

Rev 37812 Rev 37814
Line 1749... Line 1749...
1749
    VendorCatalogPricingLogRepository vendorCatalogPricingLogRepository;
1749
    VendorCatalogPricingLogRepository vendorCatalogPricingLogRepository;
1750
 
1750
 
1751
//    private void checkItelImeiActivationNew(LocalDate now, int i) {
1751
//    private void checkItelImeiActivationNew(LocalDate now, int i) {
1752
//    }
1752
//    }
1753
 
1753
 
1754
    // TODO(amit.gupta): Samsung rebilling - recipients cannot open Admin Control > Manage PCM (menu 208 is Financial
-
 
1755
    //  Services L1/L2 only), the CSV omits the invoice and PCM dates the query already returns, and the body is just "PFA".
-
 
1756
    public void sendMailForSamsungRebilling() throws Exception {
1754
    public void sendMailForSamsungRebilling() throws Exception {
1757
        List<BilledImeiModel> samsungModels = warehouseInventoryItemRepository.findByBillingDateBrand(LocalDate.now(), "Samsung");
1755
        List<BilledImeiModel> samsungModels = warehouseInventoryItemRepository.findByBillingDateBrand(LocalDate.now(), "Samsung");
1758
        LOGGER.info("SamsungModels {}", samsungModels);
1756
        LOGGER.info("SamsungModels {}", samsungModels);
1759
        samsungModels = samsungModels.stream().sorted(Comparator.comparing(x -> x.getPcmDate() == null ? -1 : 1)).collect(Collectors.toList());
1757
        samsungModels = samsungModels.stream().sorted(Comparator.comparing(x -> x.getPcmDate() == null ? -1 : 1)).collect(Collectors.toList());
1760
        if (samsungModels.size() > 0) {
1758
        if (samsungModels.size() > 0) {