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