Subversion Repositories SmartDukaan

Rev

Rev 30197 | Rev 30500 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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 {
23418 ashik.ali 25
	public Map<Integer, String> getItemIdDescriptionMap(Set<Integer> itemIds);
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")
34
	List<Category> getAllCategories();
35
 
30148 amit.gupta 36
	public Map<Integer, String> getModelDescriptionMap(String brand);
27529 tejbeer 37
 
30148 amit.gupta 38
	public Map<Integer, String> getModelDescriptionMap(Set<String> brands) throws Exception;
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
 
30197 tejbeer 47
	public Map<String, Object> getCatalog(int fofoId, int offset, int limit, String searchTerm, int catalogItemId,
48
			String brand, boolean accesories) throws ProfitMandiBusinessException;
27529 tejbeer 49
 
30197 tejbeer 50
	public Map<String, Object> getPaginatedCatalog(int fofoId, int offset, int limit, String searchTerm, int itemId,
51
			String brand, boolean accesories) 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
 
27618 tejbeer 108
	public List<ItemDescriptionModel> getAllPartnerItemStringDescription(boolean anyColor);
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
 
30197 tejbeer 115
	void getItemAvailabilityAndIndent() throws Exception;
27583 tejbeer 116
 
117
	public Map<Integer, AvailabilityModel> getStoreAndOurStock(int storeId, List<Integer> itemIds);
118
}