Subversion Repositories SmartDukaan

Rev

Rev 26332 | Rev 26400 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.service.pricing;

import java.time.LocalDateTime;
import java.util.List;

import org.springframework.stereotype.Service;

import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
import com.spice.profitmandi.common.model.ImeiDropSummaryModel;
import com.spice.profitmandi.dao.entity.fofo.InventoryItem;
import com.spice.profitmandi.dao.entity.transaction.PriceDrop;
import com.spice.profitmandi.dao.entity.transaction.PriceDropIMEI;
import com.spice.profitmandi.dao.enumuration.transaction.PriceDropImeiStatus;

@Service
public interface PriceDropService {
        void addPriceDropAmountToWallet();

        List<InventoryItem> getInventoryForPriceDrop(List<PriceDropIMEI> priceDropImeis, PriceDrop priceDrop)
                        throws ProfitMandiBusinessException;

        void priceDropStatus(int priceDropId) throws Exception;

        List<ImeiDropSummaryModel> getAllSerialNumbersByAffectedDate(LocalDateTime affectedOn, Integer catalogItemId)
                        throws ProfitMandiBusinessException;

        void rollbackPriceDrop(InventoryItem inventoryItem, String debitNoteNumber) throws ProfitMandiBusinessException;
        
        void processManualPriceDrop(int priceDropId, List<PriceDropIMEI> priceDropIMEIsToProcess, PriceDropImeiStatus status) throws ProfitMandiBusinessException;

        List<PriceDropIMEI> getPriceDropImeis(int priceDropId) throws Exception;

        List<PriceDropIMEI> processPriceDrop(int priceDropId, boolean dryRun) throws ProfitMandiBusinessException;

}