package com.topsun.posclient.sales.core.service;
import java.util.List;
import com.topsun.posclient.common.POSException;
import com.topsun.posclient.datamodel.Item;
import com.topsun.posclient.datamodel.Member;
import com.topsun.posclient.datamodel.PartSales;
import com.topsun.posclient.datamodel.dto.PromotionDTO;
/**
* 零售接口
*
* @author Dong
*
*/
public interface IPartSaleService extends ISalesService {
/**
* 保存零售数据
* @param retailDTO
* @param docNum 单据编号
* @throws POSException
*/
public void savePartSaleData(PartSales partSales) throws POSException;
/**
* 应用促销
* @param partSales
* @return
* @throws POSException
*/
public List<Item> applyPromotion(PartSales partSales) throws POSException;
/**
* 查询当前促销信息
* @return 促销信息DTO
* @throws POSException
*/
public PromotionDTO queryTodayPromotion() throws POSException;
/**
* 校验会员信息
* @param cardNo 会员卡号
* @throws POSException
*/
public Member checkMember(String cardNo, String phone, String password, String newPassword) throws POSException;
/**
* 应用会员折扣
* @param items 销售的单品集合
* @param cardType 卡类型
* @return 应用折扣之后的单品集合
* @throws POSException
*/
public List<Item> applyVipSales(List<Item> items, String cardTypeNM) throws POSException;
/**
* @param member
* @throws POSException
*/
public void writeCard(Member member) throws POSException;
}