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