| 22925 |
ashik.ali |
1 |
package com.spice.profitmandi.service.inventory;
|
| 22471 |
ashik.ali |
2 |
|
| 22925 |
ashik.ali |
3 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| 24995 |
amit.gupta |
4 |
import com.spice.profitmandi.common.model.BrandStockPrice;
|
| 22925 |
ashik.ali |
5 |
import com.spice.profitmandi.common.model.CustomCurrentInventorySnapshot;
|
| 22471 |
ashik.ali |
6 |
import com.spice.profitmandi.common.model.InventoryItemAgingModel;
|
| 26299 |
amit.gupta |
7 |
import com.spice.profitmandi.common.model.ItemDescriptionModel;
|
| 30493 |
amit.gupta |
8 |
import com.spice.profitmandi.dao.entity.catalog.Category;
|
| 23650 |
amit.gupta |
9 |
import com.spice.profitmandi.dao.entity.fofo.CustomerReturnItem;
|
| 23638 |
amit.gupta |
10 |
import com.spice.profitmandi.dao.entity.fofo.DebitNote;
|
| 23884 |
amit.gupta |
11 |
import com.spice.profitmandi.dao.entity.fofo.InventoryItem;
|
| 23638 |
amit.gupta |
12 |
import com.spice.profitmandi.dao.entity.fofo.PurchaseReturnItem;
|
| 23796 |
amit.gupta |
13 |
import in.shop2020.model.v1.user.ItemQuantity;
|
| 30493 |
amit.gupta |
14 |
import org.springframework.cache.annotation.Cacheable;
|
| 30148 |
amit.gupta |
15 |
import org.springframework.stereotype.Service;
|
| 23796 |
amit.gupta |
16 |
|
| 30148 |
amit.gupta |
17 |
import java.time.LocalDate;
|
|
|
18 |
import java.time.LocalDateTime;
|
|
|
19 |
import java.util.List;
|
|
|
20 |
import java.util.Map;
|
|
|
21 |
import java.util.Set;
|
|
|
22 |
|
| 22471 |
ashik.ali |
23 |
@Service
|
| 22925 |
ashik.ali |
24 |
public interface InventoryService {
|
| 33245 |
ranu |
25 |
public Map<Integer, String> getItemIdDescriptionMap(Set<Integer> itemIds) throws ProfitMandiBusinessException;
|
| 27529 |
tejbeer |
26 |
|
| 24083 |
amit.gupta |
27 |
public Map<Integer, String> getCatalogItemDescriptionMap(String brand, int categoryId);
|
| 27529 |
tejbeer |
28 |
|
| 23418 |
ashik.ali |
29 |
public Set<String> getAllTagListingBrands();
|
| 27529 |
tejbeer |
30 |
|
| 23443 |
amit.gupta |
31 |
public Set<String> getAllTagListingBrands(int categoryId);
|
| 27529 |
tejbeer |
32 |
|
| 30493 |
amit.gupta |
33 |
@Cacheable(value = "catalog.categories", cacheManager = "thirtyMinsTimeOutCacheManager")
|
| 33245 |
ranu |
34 |
List<Category> getAllCategories() throws ProfitMandiBusinessException;
|
| 30493 |
amit.gupta |
35 |
|
| 33245 |
ranu |
36 |
public Map<Integer, String> getModelDescriptionMap(String brand) throws ProfitMandiBusinessException;
|
| 27529 |
tejbeer |
37 |
|
| 30148 |
amit.gupta |
38 |
public Map<Integer, String> getModelDescriptionMap(Set<String> brands) throws Exception;
|
| 27529 |
tejbeer |
39 |
|
| 30500 |
amit.gupta |
40 |
public Map<Integer, String> getModelDescriptionMap(int categoryId, List<String> brands) throws Exception;
|
|
|
41 |
|
| 33245 |
ranu |
42 |
public Map<String, Object> getCurrentInventorySnapshot(int fofoId, int offset, int limit, String searchTerm) throws ProfitMandiBusinessException;
|
| 27529 |
tejbeer |
43 |
|
| 22925 |
ashik.ali |
44 |
public Map<String, Object> getBadInventorySnapshot(int fofoId, int offset, int limit, String searchTerm);
|
| 27529 |
tejbeer |
45 |
|
|
|
46 |
public Map<String, Object> getPaginatedCurrentInventorySnapshot(int fofoId, int offset, int limit,
|
| 33245 |
ranu |
47 |
String searchTerm) throws ProfitMandiBusinessException;
|
| 27529 |
tejbeer |
48 |
|
| 30197 |
tejbeer |
49 |
public Map<String, Object> getCatalog(int fofoId, int offset, int limit, String searchTerm, int catalogItemId,
|
| 30500 |
amit.gupta |
50 |
String brand, boolean accesories) throws ProfitMandiBusinessException;
|
| 27529 |
tejbeer |
51 |
|
| 30197 |
tejbeer |
52 |
public Map<String, Object> getPaginatedCatalog(int fofoId, int offset, int limit, String searchTerm, int itemId,
|
|
|
53 |
String brand, boolean accesories) throws ProfitMandiBusinessException;
|
| 27529 |
tejbeer |
54 |
|
|
|
55 |
public CustomCurrentInventorySnapshot checkItemAvailability(int itemId, int fofoId)
|
|
|
56 |
throws ProfitMandiBusinessException;
|
|
|
57 |
|
|
|
58 |
public Map<String, Object> getGrnHistory(int fofoId, LocalDateTime startTime, LocalDateTime endTime, int offset,
|
|
|
59 |
int limit, String purchaseReference, String searchType) throws ProfitMandiBusinessException;
|
|
|
60 |
|
|
|
61 |
public Map<String, Object> getPaginatedGrnHistory(int fofoId, LocalDateTime startTime, LocalDateTime endTime,
|
|
|
62 |
int offset, int limit) throws ProfitMandiBusinessException;
|
|
|
63 |
|
|
|
64 |
public Map<String, Object> getGrnHistoryDetail(int fofoId, int purchaseId, String host, int port, String webapp)
|
|
|
65 |
throws ProfitMandiBusinessException;
|
|
|
66 |
|
|
|
67 |
public Map<String, Object> getGrnHistoryDetail(int fofoId, String purchaseReference, String host, int port,
|
|
|
68 |
String webapp) throws ProfitMandiBusinessException;
|
|
|
69 |
|
|
|
70 |
public List<InventoryItemAgingModel> getItemAgingByInterval(int fofoId, List<Integer> intervals)
|
|
|
71 |
throws ProfitMandiBusinessException;
|
|
|
72 |
|
|
|
73 |
public Map<String, Object> getPaginatedItemAgingByInterval(int fofoId, List<Integer> intervals,
|
|
|
74 |
String searchContent, int offset, int limit) throws ProfitMandiBusinessException;
|
|
|
75 |
|
| 22925 |
ashik.ali |
76 |
public Map<String, Object> addToCart(String cartJson, int fofoId) throws ProfitMandiBusinessException;
|
| 27529 |
tejbeer |
77 |
|
| 22925 |
ashik.ali |
78 |
public Map<String, Object> validateCart(String cartJson, int fofoId) throws ProfitMandiBusinessException;
|
| 27529 |
tejbeer |
79 |
|
| 23650 |
amit.gupta |
80 |
public void saleReturnInventoryItem(CustomerReturnItem customerReturnItem) throws ProfitMandiBusinessException;
|
| 27529 |
tejbeer |
81 |
|
| 24995 |
amit.gupta |
82 |
public Map<String, BrandStockPrice> getBrandWiseStockValue(int fofoId);
|
| 27529 |
tejbeer |
83 |
|
|
|
84 |
public void returnInventory(PurchaseReturnItem purchaseReturnItem);
|
|
|
85 |
|
|
|
86 |
// public void returnInventoryItems(List<InventoryItem> inventoryItems,
|
|
|
87 |
// DebitNote debitNote);
|
| 23638 |
amit.gupta |
88 |
public void returnItems(DebitNote debitNote) throws Exception;
|
| 27529 |
tejbeer |
89 |
|
| 36103 |
amit |
90 |
public void restoreReturnedItems(DebitNote debitNote) throws Exception;
|
|
|
91 |
|
| 23796 |
amit.gupta |
92 |
public List<ItemQuantity> getPartnerStockOnDate(LocalDate stockDate);
|
| 27529 |
tejbeer |
93 |
|
| 23884 |
amit.gupta |
94 |
float getTotalAmountInStock(int fofoId);
|
| 27529 |
tejbeer |
95 |
|
| 23884 |
amit.gupta |
96 |
List<InventoryItem> getInventoryInStock();
|
| 27529 |
tejbeer |
97 |
|
| 23884 |
amit.gupta |
98 |
List<InventoryItem> getInventoryInStock(int fofoId, int itemId);
|
| 27529 |
tejbeer |
99 |
|
| 23884 |
amit.gupta |
100 |
List<InventoryItem> getInventoryInStock(int fofoId, int itemId, LocalDateTime date);
|
| 27529 |
tejbeer |
101 |
|
| 23884 |
amit.gupta |
102 |
List<InventoryItem> getInventoryInStock(int itemId, LocalDateTime date);
|
| 27529 |
tejbeer |
103 |
|
| 23968 |
amit.gupta |
104 |
public void updatePriceDrop(List<InventoryItem> inventoryItems, float amount);
|
| 27529 |
tejbeer |
105 |
|
| 33245 |
ranu |
106 |
public Map<Integer, String> getCatalogIdDescriptionMap(Set<Integer> catalogIds) throws ProfitMandiBusinessException;
|
| 27529 |
tejbeer |
107 |
|
| 24264 |
amit.gupta |
108 |
public void rollbackInventory(int inventoryItemId, int rollbackQuantity, int orderId);
|
| 27529 |
tejbeer |
109 |
|
| 35191 |
amit |
110 |
double getActivatedStockAmount(int fofoId) throws ProfitMandiBusinessException;
|
| 27529 |
tejbeer |
111 |
|
| 27618 |
tejbeer |
112 |
public List<ItemDescriptionModel> getAllPartnerItemStringDescription(boolean anyColor);
|
| 27529 |
tejbeer |
113 |
|
| 26299 |
amit.gupta |
114 |
public void addActivatedImeis(Map<String, LocalDateTime> imeisActivationMap);
|
| 27529 |
tejbeer |
115 |
|
| 33952 |
aman.kumar |
116 |
public void addActivatedImeis(Map<String, LocalDateTime> imeisActivationMap, int authId);
|
|
|
117 |
|
| 27529 |
tejbeer |
118 |
Map<Integer, List<InventoryItemAgingModel>> getItemAgingByInterval(List<Integer> intervals)
|
|
|
119 |
throws ProfitMandiBusinessException;
|
|
|
120 |
|
| 30197 |
tejbeer |
121 |
void getItemAvailabilityAndIndent() throws Exception;
|
| 27583 |
tejbeer |
122 |
|
|
|
123 |
public Map<Integer, AvailabilityModel> getStoreAndOurStock(int storeId, List<Integer> itemIds);
|
|
|
124 |
}
|