Subversion Repositories SmartDukaan

Rev

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

Rev 10864 Rev 11751
Line 201... Line 201...
201
	
201
	
202
	public Long getCurrentBadQuantityForItem( long itemId, long currentWarehouseId, long physicalWarehouseId){
202
	public Long getCurrentBadQuantityForItem( long itemId, long currentWarehouseId, long physicalWarehouseId){
203
		return inventoryItemMapper.getCurrentBadQuantityForItem(itemId, currentWarehouseId, physicalWarehouseId);
203
		return inventoryItemMapper.getCurrentBadQuantityForItem(itemId, currentWarehouseId, physicalWarehouseId);
204
	}
204
	}
205
	
205
	
206
	public Map<Long, Long> getItemsInPurchaseReturn(long purchaseReturnId){		
206
	public Map<Long, Long> getItemsInPurchaseReturn(long purchaseReturnId, ScanType type){		
207
		Map<Integer, Integer> result  = inventoryItemMapper.getItemsInPurchaseReturn(purchaseReturnId);
207
		Map<Integer, Integer> result  = inventoryItemMapper.getItemsInPurchaseReturn(purchaseReturnId, type);
208
		Map<Long, Long> purchaseReturnItems = new HashMap<Long, Long>();
208
		Map<Long, Long> purchaseReturnItems = new HashMap<Long, Long>();
209
		
209
		
210
		for(Integer itemId : result.keySet()){
210
		for(Integer itemId : result.keySet()){
211
			Long count = Long.parseLong(((Object)((Map<String,Long>)(Object)result.get(itemId)).get("count")).toString());
211
			Long count = Long.parseLong(((Object)((Map<String,Long>)(Object)result.get(itemId)).get("count")).toString());
212
			purchaseReturnItems.put(new Long(itemId), count);
212
			purchaseReturnItems.put(new Long(itemId), count);