Subversion Repositories SmartDukaan

Rev

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

Rev 24714 Rev 24715
Line 221... Line 221...
221
					List<InventoryItem> itemIis = itemIdInventoryMap.get(itemQtyEntry.getKey());
221
					List<InventoryItem> itemIis = itemIdInventoryMap.get(itemQtyEntry.getKey());
222
					if (itemIdInventoryMap != null) {
222
					if (itemIdInventoryMap != null) {
223
						for (InventoryItem ii : itemIis) {
223
						for (InventoryItem ii : itemIis) {
224
							if (ii.getGoodQuantity() >= quantityToReduce
224
							if (ii.getGoodQuantity() >= quantityToReduce
225
									&& ii.getInitialQuantity() >= quantityToReduce) {
225
									&& ii.getInitialQuantity() >= quantityToReduce) {
226
								LOGGER.info("Changed in inventoryItems ", purchase.getPurchaseReference(),
226
								LOGGER.info("Changed in inventoryItems {}, {}, {}, {}, {}, {}, {}", purchase.getPurchaseReference(),
227
										ii.getId(), ii.getItemId(), ii.getInitialQuantity(), ii.getGoodQuantity(), ii.getBadQuantity(), quantityToReduce);
227
										ii.getId(), ii.getItemId(), ii.getInitialQuantity(), ii.getGoodQuantity(), ii.getBadQuantity(), quantityToReduce);
228
							}
228
							}
229
						}
229
						}
230
					}
230
					}
231
				}
231
				}