Subversion Repositories SmartDukaan

Rev

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

Rev 5395 Rev 5399
Line 214... Line 214...
214
        if (fullPlbSync) {
214
        if (fullPlbSync) {
215
            loadHotspotMappings();
215
            loadHotspotMappings();
216
            Map<Item, PLBDetails> mismatches = new HashMap<Item, PLBDetails>();
216
            Map<Item, PLBDetails> mismatches = new HashMap<Item, PLBDetails>();
217
            List<Item> items = fetchItems();
217
            List<Item> items = fetchItems();
218
            for (Item item : items) {
218
            for (Item item : items) {
219
                if (ItemType.NON_SERIALIZED.equals(item.getType())) {
-
 
220
                    continue;
-
 
221
                }
-
 
222
 
-
 
223
                if (hotspotMappings.containsKey(item.getId())) {
219
                if (hotspotMappings.containsKey(item.getId())) {
224
                    PLBDetails plbDetails = currentInventory
220
                    PLBDetails plbDetails = currentInventory
225
                            .get(hotspotMappings.get(item.getId()));
221
                            .get(hotspotMappings.get(item.getId()));
226
                    Long currentSnapshotAvailibility = fetchInventory(item.getId()).getAvailability().get(warehouseId);
222
                    Long currentSnapshotAvailibility = fetchInventory(item.getId()).getAvailability().get(warehouseId);
227
                    if ((currentSnapshotAvailibility == null || currentSnapshotAvailibility.equals(0)) && 
223
                    if ((currentSnapshotAvailibility == null || currentSnapshotAvailibility.equals(0l)) && 
228
                        (plbDetails == null || plbDetails.getQuantity().longValue() == 0))
224
                        (plbDetails == null || plbDetails.getQuantity().longValue() == 0))
229
                    {
225
                    {
230
                        continue;
226
                        continue;
231
                    }
227
                    }
232
 
228