Subversion Repositories SmartDukaan

Rev

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

Rev 5309 Rev 5384
Line 12... Line 12...
12
import in.shop2020.content.ContentService;
12
import in.shop2020.content.ContentService;
13
import in.shop2020.content.ContentServiceException;
13
import in.shop2020.content.ContentServiceException;
14
import in.shop2020.model.v1.catalog.InventoryService;
14
import in.shop2020.model.v1.catalog.InventoryService;
15
import in.shop2020.model.v1.catalog.SourceItemPricing;
15
import in.shop2020.model.v1.catalog.SourceItemPricing;
16
import in.shop2020.model.v1.catalog.status;
16
import in.shop2020.model.v1.catalog.status;
-
 
17
import in.shop2020.model.v1.catalog.ItemType;
17
import in.shop2020.thrift.clients.CatalogClient;
18
import in.shop2020.thrift.clients.CatalogClient;
18
import in.shop2020.thrift.clients.ContentClient;
19
import in.shop2020.thrift.clients.ContentClient;
19
import in.shop2020.thrift.clients.config.ConfigClient;
20
import in.shop2020.thrift.clients.config.ConfigClient;
20
import in.shop2020.utils.CategoryManager;
21
import in.shop2020.utils.CategoryManager;
21
import in.shop2020.utils.ConfigClientKeys;
22
import in.shop2020.utils.ConfigClientKeys;
Line 478... Line 479...
478
        
479
        
479
        if(item.getExpectedDelay() != null) {
480
        if(item.getExpectedDelay() != null) {
480
            tItem.setExpectedDelay(item.getExpectedDelay());
481
            tItem.setExpectedDelay(item.getExpectedDelay());
481
        }
482
        }
482
        
483
        
483
        if(item.getPreferredWarehouse() != null) {
-
 
484
            tItem.setPreferredWarehouse(item.getPreferredWarehouse());
-
 
485
        }
-
 
486
        
-
 
487
        if(item.getDefaultWarehouse() != null) {
-
 
488
            tItem.setDefaultWarehouse(item.getDefaultWarehouse());
-
 
489
        }
-
 
490
        
-
 
491
        tItem.setIsWarehousePreferenceSticky(item.isWarehouseStickiness());
484
        tItem.setIsWarehousePreferenceSticky(item.isWarehouseStickiness());
492
        
485
        
493
        if(item.getPreferredVendor() != null) {
486
        if(item.getPreferredVendor() != null) {
494
            tItem.setPreferredVendor(item.getPreferredVendor());
487
            tItem.setPreferredVendor(item.getPreferredVendor());
495
        }
488
        }
Line 503... Line 496...
503
            tItem.setBestSellingRank(item.getBestSellingRank());
496
            tItem.setBestSellingRank(item.getBestSellingRank());
504
        }
497
        }
505
        
498
        
506
        tItem.setDefaultForEntity(item.isDefaultForEntity());
499
        tItem.setDefaultForEntity(item.isDefaultForEntity());
507
        tItem.setRisky(item.isRisky());
500
        tItem.setRisky(item.isRisky());
-
 
501
        tItem.setHasItemNo(item.isHasItemNo());
-
 
502
        
-
 
503
        if(item.isItemType()) {
-
 
504
        	tItem.setType(ItemType.SERIALIZED);
-
 
505
        }
-
 
506
        else {
-
 
507
        	tItem.setType(ItemType.NON_SERIALIZED);
-
 
508
        }
508
 
509
        
509
        if(item.getStartDate() != null) {
510
        if(item.getStartDate() != null) {
510
            tItem.setStartDate(item.getStartDate());
511
            tItem.setStartDate(item.getStartDate());
511
        }
512
        }
512
        
513
        
513
        if(item.getExpectedArrivalDate() != null) {
514
        if(item.getExpectedArrivalDate() != null) {
Line 880... Line 881...
880
                thriftItem.isSetBestDealValue() ? thriftItem.getBestDealValue() : null,
881
                thriftItem.isSetBestDealValue() ? thriftItem.getBestDealValue() : null,
881
                thriftItem.isSetBestSellingRank() ? thriftItem.getBestSellingRank() : null,
882
                thriftItem.isSetBestSellingRank() ? thriftItem.getBestSellingRank() : null,
882
                thriftItem.isDefaultForEntity(),
883
                thriftItem.isDefaultForEntity(),
883
                thriftItem.isRisky(),
884
                thriftItem.isRisky(),
884
                thriftItem.isSetExpectedDelay() ? thriftItem.getExpectedDelay() : null,
885
                thriftItem.isSetExpectedDelay() ? thriftItem.getExpectedDelay() : null,
885
                thriftItem.isSetPreferredWarehouse() ? thriftItem.getPreferredWarehouse() : null,
-
 
886
                thriftItem.isSetDefaultWarehouse() ? thriftItem.getDefaultWarehouse() : null,
-
 
887
                thriftItem.isIsWarehousePreferenceSticky(),
886
                thriftItem.isIsWarehousePreferenceSticky(),
-
 
887
                thriftItem.isHasItemNo(),
-
 
888
                ItemType.SERIALIZED.equals(thriftItem.getType()),
888
                thriftItem.isSetPreferredVendor() ? thriftItem.getPreferredVendor() : null,
889
                thriftItem.isSetPreferredVendor() ? thriftItem.getPreferredVendor() : null,
889
                itemInventoryMap,
890
                itemInventoryMap,
890
                vendorPricingMap,
891
                vendorPricingMap,
891
                vItemMap,
892
                vItemMap,
892
                sourcePricingMap,
893
                sourcePricingMap,