Subversion Repositories SmartDukaan

Rev

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

Rev 26961 Rev 27529
Line 16... Line 16...
16
import com.spice.profitmandi.common.model.MapWrapper;
16
import com.spice.profitmandi.common.model.MapWrapper;
17
import com.spice.profitmandi.dao.entity.fofo.CustomerReturnItem;
17
import com.spice.profitmandi.dao.entity.fofo.CustomerReturnItem;
18
import com.spice.profitmandi.dao.entity.fofo.DebitNote;
18
import com.spice.profitmandi.dao.entity.fofo.DebitNote;
19
import com.spice.profitmandi.dao.entity.fofo.InventoryItem;
19
import com.spice.profitmandi.dao.entity.fofo.InventoryItem;
20
import com.spice.profitmandi.dao.entity.fofo.PurchaseReturnItem;
20
import com.spice.profitmandi.dao.entity.fofo.PurchaseReturnItem;
21
import com.spice.profitmandi.dao.entity.transaction.Order;
21
import com.spice.profitmandi.dao.entity.inventory.SaholicInventoryCIS;
22
 
22
 
23
import in.shop2020.model.v1.user.ItemQuantity;
23
import in.shop2020.model.v1.user.ItemQuantity;
24
 
24
 
25
@Service
25
@Service
26
public interface InventoryService {
26
public interface InventoryService {
27
	public Map<Integer, String> getItemIdDescriptionMap(Set<Integer> itemIds);
27
	public Map<Integer, String> getItemIdDescriptionMap(Set<Integer> itemIds);
-
 
28
 
28
	public Map<Integer, String> getCatalogItemDescriptionMap(String brand, int categoryId);
29
	public Map<Integer, String> getCatalogItemDescriptionMap(String brand, int categoryId);
-
 
30
 
29
	public Set<String> getAllTagListingBrands();
31
	public Set<String> getAllTagListingBrands();
-
 
32
 
30
	public Set<String> getAllTagListingBrands(int categoryId);
33
	public Set<String> getAllTagListingBrands(int categoryId);
-
 
34
 
31
	public Map<Integer, String> getAllTagListingItemIdItemDescriptionMap(String brand);
35
	public Map<Integer, String> getAllTagListingItemIdItemDescriptionMap(String brand);
-
 
36
 
32
	public List<MapWrapper<Integer, String>> getAllTagListingItemIdItemDescriptionMap(Set<String> brands);
37
	public List<MapWrapper<Integer, String>> getAllTagListingItemIdItemDescriptionMap(Set<String> brands);
-
 
38
 
33
	public Map<String, Object> getCurrentInventorySnapshot(int fofoId, int offset, int limit, String searchTerm);
39
	public Map<String, Object> getCurrentInventorySnapshot(int fofoId, int offset, int limit, String searchTerm);
-
 
40
 
34
	public Map<String, Object> getBadInventorySnapshot(int fofoId, int offset, int limit, String searchTerm);
41
	public Map<String, Object> getBadInventorySnapshot(int fofoId, int offset, int limit, String searchTerm);
-
 
42
 
35
	public Map<String, Object> getPaginatedCurrentInventorySnapshot(int fofoId, int offset, int limit, String searchTerm);
43
	public Map<String, Object> getPaginatedCurrentInventorySnapshot(int fofoId, int offset, int limit,
-
 
44
			String searchTerm);
-
 
45
 
36
	public Map<String, Object> getCatalog(int fofoId, int offset, int limit, String searchTerm);
46
	public Map<String, Object> getCatalog(int fofoId, int offset, int limit, String searchTerm);
-
 
47
 
37
	public Map<String, Object> getPaginatedCatalog(int fofoId, int offset, int limit, String searchTerm);
48
	public Map<String, Object> getPaginatedCatalog(int fofoId, int offset, int limit, String searchTerm);
-
 
49
 
38
	public CustomCurrentInventorySnapshot checkItemAvailability(int itemId, int fofoId) throws ProfitMandiBusinessException;
50
	public CustomCurrentInventorySnapshot checkItemAvailability(int itemId, int fofoId)
-
 
51
			throws ProfitMandiBusinessException;
-
 
52
 
39
	public Map<String, Object> getGrnHistory(int fofoId, LocalDateTime startTime, LocalDateTime endTime, int offset, int limit, String purchaseReference, String searchType) throws ProfitMandiBusinessException;
53
	public Map<String, Object> getGrnHistory(int fofoId, LocalDateTime startTime, LocalDateTime endTime, int offset,
-
 
54
			int limit, String purchaseReference, String searchType) throws ProfitMandiBusinessException;
-
 
55
 
40
	public Map<String, Object> getPaginatedGrnHistory(int fofoId, LocalDateTime startTime, LocalDateTime endTime, int offset, int limit) throws ProfitMandiBusinessException;
56
	public Map<String, Object> getPaginatedGrnHistory(int fofoId, LocalDateTime startTime, LocalDateTime endTime,
-
 
57
			int offset, int limit) throws ProfitMandiBusinessException;
-
 
58
 
41
	public Map<String, Object> getGrnHistoryDetail(int fofoId, int purchaseId, String host, int port, String webapp) throws ProfitMandiBusinessException;
59
	public Map<String, Object> getGrnHistoryDetail(int fofoId, int purchaseId, String host, int port, String webapp)
-
 
60
			throws ProfitMandiBusinessException;
-
 
61
 
42
	public Map<String, Object> getGrnHistoryDetail(int fofoId, String purchaseReference, String host, int port, String webapp) throws ProfitMandiBusinessException;
62
	public Map<String, Object> getGrnHistoryDetail(int fofoId, String purchaseReference, String host, int port,
-
 
63
			String webapp) throws ProfitMandiBusinessException;
-
 
64
 
43
	public List<InventoryItemAgingModel> getItemAgingByInterval(int fofoId, List<Integer> intervals) throws ProfitMandiBusinessException;
65
	public List<InventoryItemAgingModel> getItemAgingByInterval(int fofoId, List<Integer> intervals)
-
 
66
			throws ProfitMandiBusinessException;
-
 
67
 
44
	public Map<String, Object> getPaginatedItemAgingByInterval(int fofoId, List<Integer> intervals, String searchContent, int offset, int limit) throws ProfitMandiBusinessException;
68
	public Map<String, Object> getPaginatedItemAgingByInterval(int fofoId, List<Integer> intervals,
-
 
69
			String searchContent, int offset, int limit) throws ProfitMandiBusinessException;
-
 
70
 
45
	public Map<String, Object> addToCart(String cartJson, int fofoId) throws ProfitMandiBusinessException;
71
	public Map<String, Object> addToCart(String cartJson, int fofoId) throws ProfitMandiBusinessException;
-
 
72
 
46
	public Map<String, Object> validateCart(String cartJson, int fofoId) throws ProfitMandiBusinessException;
73
	public Map<String, Object> validateCart(String cartJson, int fofoId) throws ProfitMandiBusinessException;
-
 
74
 
47
	public void saleReturnInventoryItem(CustomerReturnItem customerReturnItem) throws ProfitMandiBusinessException;
75
	public void saleReturnInventoryItem(CustomerReturnItem customerReturnItem) throws ProfitMandiBusinessException;
-
 
76
 
48
	public Map<String, BrandStockPrice> getBrandWiseStockValue(int fofoId);
77
	public Map<String, BrandStockPrice> getBrandWiseStockValue(int fofoId);
-
 
78
 
49
	public void returnInventory(PurchaseReturnItem purchaseReturnItem); 
79
	public void returnInventory(PurchaseReturnItem purchaseReturnItem);
-
 
80
 
50
	//public void returnInventoryItems(List<InventoryItem> inventoryItems, DebitNote debitNote);
81
	// public void returnInventoryItems(List<InventoryItem> inventoryItems,
-
 
82
	// DebitNote debitNote);
51
	public void returnItems(DebitNote debitNote) throws Exception;
83
	public void returnItems(DebitNote debitNote) throws Exception;
-
 
84
 
52
	public List<ItemQuantity> getPartnerStockOnDate(LocalDate stockDate);
85
	public List<ItemQuantity> getPartnerStockOnDate(LocalDate stockDate);
-
 
86
 
53
	float getTotalAmountInStock(int fofoId);
87
	float getTotalAmountInStock(int fofoId);
-
 
88
 
54
	List<InventoryItem> getInventoryInStock();
89
	List<InventoryItem> getInventoryInStock();
-
 
90
 
55
	List<InventoryItem> getInventoryInStock(int fofoId, int itemId);
91
	List<InventoryItem> getInventoryInStock(int fofoId, int itemId);
-
 
92
 
56
	List<InventoryItem> getInventoryInStock(int fofoId, int itemId, LocalDateTime date);
93
	List<InventoryItem> getInventoryInStock(int fofoId, int itemId, LocalDateTime date);
-
 
94
 
57
	List<InventoryItem> getInventoryInStock(int itemId, LocalDateTime date);
95
	List<InventoryItem> getInventoryInStock(int itemId, LocalDateTime date);
-
 
96
 
58
	public void updatePriceDrop(List<InventoryItem> inventoryItems, float amount);
97
	public void updatePriceDrop(List<InventoryItem> inventoryItems, float amount);
-
 
98
 
59
	public Map<Integer, String> getCatalogIdDescriptionMap(Set<Integer> catalogIds);
99
	public Map<Integer, String> getCatalogIdDescriptionMap(Set<Integer> catalogIds);
-
 
100
 
60
	public void rollbackInventory(int inventoryItemId, int rollbackQuantity, int orderId);
101
	public void rollbackInventory(int inventoryItemId, int rollbackQuantity, int orderId);
-
 
102
 
61
	float getActivatedStockAmount(int fofoId) throws ProfitMandiBusinessException;
103
	float getActivatedStockAmount(int fofoId) throws ProfitMandiBusinessException;
-
 
104
 
62
	public List<ItemDescriptionModel> getAllPartnerItemStringDescription();
105
	public List<ItemDescriptionModel> getAllPartnerItemStringDescription();
-
 
106
 
63
	public void addActivatedImeis(Map<String, LocalDateTime> imeisActivationMap);
107
	public void addActivatedImeis(Map<String, LocalDateTime> imeisActivationMap);
-
 
108
 
64
	Map<Integer, AvailabilityModel> getStoreAndOurStock(int storeId, List<Integer> itemIds);
109
	Map<Integer, AvailabilityModel> getStoreAndOurStock(int storeId, List<Integer> itemIds);
-
 
110
 
65
	Map<Integer, List<InventoryItemAgingModel>> getItemAgingByInterval(List<Integer> intervals) throws ProfitMandiBusinessException;
111
	Map<Integer, List<InventoryItemAgingModel>> getItemAgingByInterval(List<Integer> intervals)
-
 
112
			throws ProfitMandiBusinessException;
-
 
113
 
-
 
114
	List<SaholicInventoryCIS> getItemAvailabilityAndIndent() throws Exception;
66
}
115
}