package com.uas.platform.b2b.erp.service;

import com.uas.platform.b2b.erp.model.Quotation;
import com.uas.platform.b2b.erp.model.QuotationDecide;
import com.uas.platform.b2b.model.SaleQuotation;
import com.uas.platform.b2b.model.SaleQuotationItem;

import java.util.List;
import java.util.Map;

public interface QuotationService {

	/**
	 * 供应商ERP的主动报价单，转为平台的报价单
	 * 
	 * @param quotations
	 * @return map 包含要保存的信息和返回的信息
	 */
	Map<String, List<SaleQuotationItem>> convertQuotation(List<Quotation> quotations);

	/**
	 * 平台的主动报价的采纳结果，转为卖家ERP的主动报价的采纳结果
	 * 
	 * @param quotationItems
	 * @return
	 */
	List<QuotationDecide> convertQuotationDecide(List<SaleQuotationItem> quotationItems);

	/**
	 * 将平台的主动报价，转为卖家的主动报价
	 * 
	 * @param quotations
	 * @return
	 */
	List<Quotation> convertSaleQuotation(List<SaleQuotation> quotations);

}
