Subversion Repositories SmartDukaan

Rev

Rev 22955 | Rev 23269 | 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
 
3
import java.util.List;
22925 ashik.ali 4
import java.util.Map;
22471 ashik.ali 5
 
6
import org.springframework.stereotype.Service;
7
 
22925 ashik.ali 8
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
9
import com.spice.profitmandi.common.model.CustomCurrentInventorySnapshot;
22471 ashik.ali 10
import com.spice.profitmandi.common.model.InventoryItemAgingModel;
11
 
12
@Service
22925 ashik.ali 13
public interface InventoryService {
23019 ashik.ali 14
	public List<String> getAllBrands();
15
	public Map<Integer, String> getAllItemIdItemDescriptionMap(String brand);
22925 ashik.ali 16
	public int getCachedAvailabilityByItemIdWarehouseIds(int itemId, int[] warehouseIds);
17
	public Map<String, Object> getCurrentInventorySnapshot(int fofoId, int offset, int limit, String searchTerm);
18
	public Map<String, Object> getBadInventorySnapshot(int fofoId, int offset, int limit, String searchTerm);
19
	public Map<String, Object> getPaginatedCurrentInventorySnapshot(int fofoId, int offset, int limit, String searchTerm);
20
	public Map<String, Object> getCatalog(int fofoId, int offset, int limit, String searchTerm);
21
	public Map<String, Object> getPaginatedCatalog(int fofoId, int offset, int limit, String searchTerm);
22955 ashik.ali 22
	public CustomCurrentInventorySnapshot checkItemAvailability(int itemId, int fofoId) throws ProfitMandiBusinessException;
22925 ashik.ali 23
	public Map<String, Object> getGrnHistory(int fofoId, String startTimeString, String endTimeString, int offset, int limit, String purchaseReference, String searchType) throws ProfitMandiBusinessException;
24
	public Map<String, Object> getPaginatedGrnHistory(int fofoId, String startTimeString, String endTimeString, int offset, int limit) throws ProfitMandiBusinessException;
25
	public Map<String, Object> getGrnHistoryDetail(int fofoId, int purchaseId, String host, int port, String webapp) throws ProfitMandiBusinessException;
26
	public Map<String, Object> getGrnHistoryDetail(int fofoId, String purchaseReference, String host, int port, String webapp) throws ProfitMandiBusinessException;
27
	public List<InventoryItemAgingModel> getItemAgingByInterval(int fofoId, List<Integer> intervals) throws ProfitMandiBusinessException;
28
	public Map<String, Object> getPaginatedItemAgingByInterval(int fofoId, List<Integer> intervals, String searchContent, int offset, int limit) throws ProfitMandiBusinessException;
29
	public Map<String, Object> addToCart(String cartJson, int fofoId) throws ProfitMandiBusinessException;
30
	public Map<String, Object> validateCart(String cartJson, int fofoId) throws ProfitMandiBusinessException;
22471 ashik.ali 31
}