Subversion Repositories SmartDukaan

Rev

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

Rev 32924 Rev 32927
Line 237... Line 237...
237
 
237
 
238
    private void addVendorPricingIfMissing(int itemId, int vendorId) throws ProfitMandiBusinessException {
238
    private void addVendorPricingIfMissing(int itemId, int vendorId) throws ProfitMandiBusinessException {
239
        Item item = itemRepository.selectById(itemId);
239
        Item item = itemRepository.selectById(itemId);
240
        int vendorWithPricing = 0;
240
        int vendorWithPricing = 0;
241
        if (vendorId == 406 || vendorId == 419) {
241
        if (vendorId == 406 || vendorId == 419) {
242
            VendorPriceCircularModel vendorPriceCircularModel = vendorCatalogPricingLogRepository.getVendorPriceOnDate(vendorId, itemId, LocalDate.now());
242
            VendorPriceCircularModel vendorPriceCircularModel = vendorCatalogPricingLogRepository.getVendorPriceOnDate(vendorId, item.getCatalogItemId(), LocalDate.now());
243
            LOGGER.info("VendorPriceCircularModel - {}", vendorPriceCircularModel);
243
            LOGGER.info("VendorPriceCircularModel - {}", vendorPriceCircularModel);
244
            if (vendorPriceCircularModel == null) {
244
            if (vendorPriceCircularModel == null) {
245
 
245
 
246
                if (item.getBrand().equals("Oppo")) {
246
                if (item.getBrand().equals("Oppo")) {
247
                    //RS Distributions
247
                    //RS Distributions