Subversion Repositories SmartDukaan

Rev

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

Rev 10689 Rev 10864
Line 6... Line 6...
6
 
6
 
7
import java.util.Date;
7
import java.util.Date;
8
import java.util.List;
8
import java.util.List;
9
import java.util.Map;
9
import java.util.Map;
10
 
10
 
-
 
11
import org.apache.ibatis.annotations.MapKey;
11
import org.apache.ibatis.annotations.Param;
12
import org.apache.ibatis.annotations.Param;
12
 
13
 
13
 
14
 
14
public interface InventoryItemMapper {
15
public interface InventoryItemMapper {
15
 
16
 
Line 52... Line 53...
52
    		@Param("warehouseId")long warehouseId, @Param("physicalWarehouseId")long physicalWarehouseId);
53
    		@Param("warehouseId")long warehouseId, @Param("physicalWarehouseId")long physicalWarehouseId);
53
 
54
 
54
	Long getCurrentQuantityForNonSerializedItem(@Param("itemId")long itemId, @Param("warehouseId")long warehouseId, @Param("physicalWarehouseId")long physicalWarehouseId);
55
	Long getCurrentQuantityForNonSerializedItem(@Param("itemId")long itemId, @Param("warehouseId")long warehouseId, @Param("physicalWarehouseId")long physicalWarehouseId);
55
 
56
 
56
	void markPurchaseReturnIdForItem(@Param("id")long id, @Param("currentQuantity")long currentQuantity, @Param("purchaseReturnId")long purchaseReturnId);
57
	void markPurchaseReturnIdForItem(@Param("id")long id, @Param("currentQuantity")long currentQuantity, @Param("purchaseReturnId")long purchaseReturnId);
-
 
58
	
-
 
59
	void markPurchaseReturnIdForBadItem(@Param("id")long id, @Param("currentQuantity")long currentQuantity, @Param("purchaseReturnId")long purchaseReturnId);
57
 
60
 
58
	List<InventoryItem> getCurrentNonSerializedItemsByItemId(@Param("itemId")long itemId, @Param("warehouseId")long warehouseId, 
61
	List<InventoryItem> getCurrentNonSerializedItemsByItemId(@Param("itemId")long itemId, @Param("warehouseId")long warehouseId, 
59
			@Param("physicalWarehouseId")long physicalWarehouseId);
62
			@Param("physicalWarehouseId")long physicalWarehouseId);
60
	
63
	
-
 
64
	List<InventoryItem> getNonSerializedItemsForBadInventory(@Param("itemId")long itemId, @Param("currentWarehouseId")long currentWarehouseId, 
-
 
65
			@Param("physicalWarehouseId")long physicalWarehouseId);
-
 
66
	
61
	List<Map<String, Integer>> getCurrentSerializedInventory();
67
	List<Map<String, Integer>> getCurrentSerializedInventory();
62
 
68
 
63
	List<Map<String, Integer>> getCurrentNonSerializedInventory();
69
	List<Map<String, Integer>> getCurrentNonSerializedInventory();
64
 
70
 
65
	void markItemAsLost(@Param("id")long id, @Param("currentQuantity")long currentQuantity);
71
	void markItemAsLost(@Param("id")long id, @Param("currentQuantity")long currentQuantity);
Line 94... Line 100...
94
 
100
 
95
	InventoryItem getSellableBadNonSerializedItem(@Param("itemId") long itemId, @Param("itemNumber") String itemNumber, 
101
	InventoryItem getSellableBadNonSerializedItem(@Param("itemId") long itemId, @Param("itemNumber") String itemNumber, 
96
			@Param("physicalWarehouseId") long physicalWarehouseId);
102
			@Param("physicalWarehouseId") long physicalWarehouseId);
97
	
103
	
98
	List<InventoryItem> getInventoryItemScannedInForPO(@Param("itemId") long itemId,@Param("purchaseIds") List<Long> purchaseIds);
104
	List<InventoryItem> getInventoryItemScannedInForPO(@Param("itemId") long itemId,@Param("purchaseIds") List<Long> purchaseIds);
-
 
105
 
-
 
106
	Long getCurrentBadQuantityForItem(@Param("itemId") long itemId,@Param("currentWarehouseId") long currentWarehouseId, @Param("physicalWarehouseId") long physicalWarehouseId);
-
 
107
 
-
 
108
	@MapKey("itemId")
-
 
109
	Map<Integer, Integer> getItemsInPurchaseReturn(@Param("purchaseReturnId")long purchaseReturnId);
99
}
110
}