Subversion Repositories SmartDukaan

Rev

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

Rev 33203 Rev 33260
Line 588... Line 588...
588
                    calculated, uw.getAmount() - calculated);
588
                    calculated, uw.getAmount() - calculated);
589
        }
589
        }
590
    }
590
    }
591
 
591
 
592
    public void changeWarehouse() throws Exception {
592
    public void changeWarehouse() throws Exception {
593
        transactionService.moveWarehouses();
593
        transactionService.moveOrdersFulfimentWarehouseByBillingWarehouseId(7573);
594
    }
594
    }
595
 
595
 
596
    public void mailDashboardScreenshots() throws Exception {
596
    public void mailDashboardScreenshots() throws Exception {
597
        System.setProperty("webdriver.chrome.driver", "/usr/bin/chromedriver");
597
        System.setProperty("webdriver.chrome.driver", "/usr/bin/chromedriver");
598
 
598
 
Line 781... Line 781...
781
            }
781
            }
782
        }
782
        }
783
        // throw new Exception();
783
        // throw new Exception();
784
    }
784
    }
785
 
785
 
786
    public void mongom() {
786
    public void mongom() throws ProfitMandiBusinessException {
787
        List<TagListing> tls = tagListingRepository.selectAll(false);
787
        List<TagListing> tls = tagListingRepository.selectAll(false);
788
        Set<Integer> itemIds = tls.stream().map(x -> x.getItemId()).collect(Collectors.toSet());
788
        Set<Integer> itemIds = tls.stream().map(x -> x.getItemId()).collect(Collectors.toSet());
789
        Set<Integer> catalogIds = itemRepository.selectByIds(itemIds).stream().map(x -> x.getCatalogItemId())
789
        Set<Integer> catalogIds = itemRepository.selectByIds(itemIds).stream().map(x -> x.getCatalogItemId())
790
                .collect(Collectors.toSet());
790
                .collect(Collectors.toSet());
791
        for (int catalogId : catalogIds) {
791
        for (int catalogId : catalogIds) {
Line 1480... Line 1480...
1480
 
1480
 
1481
    public void genericCreateCurrentInventorySnapshot() throws Exception {
1481
    public void genericCreateCurrentInventorySnapshot() throws Exception {
1482
        purchaseService.genericCreateCurrentInventorySnapshot(175138856, 32820, 2);
1482
        purchaseService.genericCreateCurrentInventorySnapshot(175138856, 32820, 2);
1483
    }
1483
    }
1484
 
1484
 
1485
    public void fixScans() {
1485
    public void fixScans() throws ProfitMandiBusinessException {
1486
        Map<Integer, Integer> inventoryOrderMap = new HashMap<>();
1486
        Map<Integer, Integer> inventoryOrderMap = new HashMap<>();
1487
        inventoryOrderMap.put(348795, 1628598);
1487
        inventoryOrderMap.put(348795, 1628598);
1488
        inventoryOrderMap.put(348796, 1628599);
1488
        inventoryOrderMap.put(348796, 1628599);
1489
        inventoryOrderMap.put(329854, 1628600);
1489
        inventoryOrderMap.put(329854, 1628600);
1490
        inventoryOrderMap.put(334197, 1628602);
1490
        inventoryOrderMap.put(334197, 1628602);
Line 1964... Line 1964...
1964
                UserWalletHistory userWalletHistory = userWalletHistories.get(0);
1964
                UserWalletHistory userWalletHistory = userWalletHistories.get(0);
1965
                walletService.addAmountToWallet(insurancePolicy.getRetailerId(), userWalletHistory.getReference(), WalletReferenceType.DAMAGE_PROTECTION, "Excess deduction - settled", 198, LocalDateTime.now());
1965
                walletService.addAmountToWallet(insurancePolicy.getRetailerId(), userWalletHistory.getReference(), WalletReferenceType.DAMAGE_PROTECTION, "Excess deduction - settled", 198, LocalDateTime.now());
1966
            }
1966
            }
1967
        }
1967
        }
1968
    }
1968
    }
-
 
1969
 
-
 
1970
    public void changeFulfillmentWarehouse(int orderId, int whId) throws ProfitMandiBusinessException {
-
 
1971
        transactionService.changeFulfillmentWarehouse(orderId, whId);
-
 
1972
    }
1969
}
1973
}
1970
 
1974
 
1971
//7015845171
1975
//7015845171
1972
1976