Subversion Repositories SmartDukaan

Rev

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

Rev 5220 Rev 5221
Line 68... Line 68...
68
			client = catalogServiceClient.getClient();
68
			client = catalogServiceClient.getClient();
69
			long warehouseId = Long.parseLong(getId());
69
			long warehouseId = Long.parseLong(getId());
70
			Warehouse warehouse = client.getWarehouse(warehouseId);
70
			Warehouse warehouse = client.getWarehouse(warehouseId);
71
			timestampAndItemIds = warehouse.getVendorString();
71
			timestampAndItemIds = warehouse.getVendorString();
72
 
72
 
-
 
73
			client = catalogServiceClient.getClient();
73
			List<String> itemKeys = client.getItemKeysToBeProcessed(warehouseId);
74
			List<String> itemKeys = client.getItemKeysToBeProcessed(warehouseId);
74
			if (fullPlbSync) {
75
			if (fullPlbSync) {
75
			    itemKeys = new ArrayList<String>();
76
			    itemKeys = new ArrayList<String>();
-
 
77
			    client = catalogServiceClient.getClient();
76
			    List<Item> items = client.getAllItems(true);
78
			    List<Item> items = client.getAllItems(true);
77
			    for (Item item : items) {
79
			    for (Item item : items) {
78
			        if (ItemType.NON_SERIALIZED.equals(item.getType())) {
80
			        if (ItemType.NON_SERIALIZED.equals(item.getType())) {
79
			            continue;
81
			            continue;
80
			        }
82
			        }
81
 
83
 
-
 
84
			        client = catalogServiceClient.getClient();
82
			        List<VendorItemMapping> mappings = client.getVendorItemMappings(item.getId());
85
			        List<VendorItemMapping> mappings = client.getVendorItemMappings(item.getId());
83
			        if (mappings != null) {
86
			        if (mappings != null) {
84
			            for (VendorItemMapping mapping : mappings) {
87
			            for (VendorItemMapping mapping : mappings) {
85
			                if (mapping.getVendorId() == 1) {
88
			                if (mapping.getVendorId() == 1) {
86
			                    itemKeys.add(mapping.getItemKey());
89
			                    itemKeys.add(mapping.getItemKey());