Subversion Repositories SmartDukaan

Rev

Rev 28891 | Rev 32690 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 28891 Rev 32182
Line 1... Line 1...
1
package com.spice.profitmandi.service.pricing;
1
package com.spice.profitmandi.service.pricing;
2
 
2
 
3
import java.time.LocalDateTime;
-
 
4
import java.util.List;
-
 
5
 
-
 
6
import org.springframework.stereotype.Service;
-
 
7
 
-
 
8
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
3
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
9
import com.spice.profitmandi.common.model.ImeiDropSummaryModel;
4
import com.spice.profitmandi.common.model.ImeiDropSummaryModel;
10
import com.spice.profitmandi.dao.entity.fofo.InventoryItem;
5
import com.spice.profitmandi.dao.entity.fofo.InventoryItem;
11
import com.spice.profitmandi.dao.entity.transaction.PriceDrop;
6
import com.spice.profitmandi.dao.entity.transaction.PriceDrop;
12
import com.spice.profitmandi.dao.entity.transaction.PriceDropIMEI;
7
import com.spice.profitmandi.dao.entity.transaction.PriceDropIMEI;
-
 
8
import org.springframework.stereotype.Service;
-
 
9
 
-
 
10
import java.time.LocalDateTime;
-
 
11
import java.util.List;
13
 
12
 
14
@Service
13
@Service
15
public interface PriceDropService {
14
public interface PriceDropService {
16
	List<InventoryItem> getInventoryForPriceDrop(List<PriceDropIMEI> priceDropImeis, PriceDrop priceDrop)
15
	List<InventoryItem> getInventoryForPriceDrop(List<PriceDropIMEI> priceDropImeis, PriceDrop priceDrop)
17
			throws ProfitMandiBusinessException;
16
			throws ProfitMandiBusinessException;
Line 20... Line 19...
20
 
19
 
21
	List<ImeiDropSummaryModel> getAllSerialNumbersByAffectedDate(LocalDateTime affectedOn, Integer catalogItemId)
20
	List<ImeiDropSummaryModel> getAllSerialNumbersByAffectedDate(LocalDateTime affectedOn, Integer catalogItemId)
22
			throws ProfitMandiBusinessException;
21
			throws ProfitMandiBusinessException;
23
 
22
 
24
	void rollbackPriceDrop(InventoryItem inventoryItem, String debitNoteNumber) throws ProfitMandiBusinessException;
23
	void rollbackPriceDrop(InventoryItem inventoryItem, String debitNoteNumber) throws ProfitMandiBusinessException;
25
	
-
 
26
	List<PriceDropIMEI> getPriceDropImeis(int priceDropId) throws Exception;
-
 
27
 
24
 
28
	List<PriceDropIMEI> processPriceDrop(int priceDropId, boolean activeOnly) throws ProfitMandiBusinessException;
25
	List<PriceDropIMEI> processPriceDrop(int priceDropId, boolean activeOnly) throws ProfitMandiBusinessException;
29
 
26
 
30
	List<PriceDropIMEI> processPriceDrop(int priceDropId, List<String> imeis) throws ProfitMandiBusinessException;
27
	List<PriceDropIMEI> processPriceDrop(int priceDropId, List<String> imeis) throws ProfitMandiBusinessException;
31
 
28