Subversion Repositories SmartDukaan

Rev

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