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

import java.util.List;

import com.uas.platform.b2b.erp.model.SaleDown;
import com.uas.platform.b2b.erp.model.SaleDownDetailEnd;
import com.uas.platform.b2b.erp.model.SaleReply;
import com.uas.platform.b2b.model.PurchaseOrderAll;
import com.uas.platform.b2b.model.PurchaseOrderItem;
import com.uas.platform.b2b.model.PurchaseOrderReply;

public interface SaleDownService {

	/**
	 * 将平台里面的采购订单，转为供应商ERP的订单下达
	 * 
	 * @param orders
	 * @return
	 */
	List<SaleDown> convertPurchaseOrder(List<PurchaseOrderAll> orders);

	/**
	 * 将供应商在ERP的订单回复，转为平台的回复
	 * 
	 * @param replies
	 * @return
	 */
	List<PurchaseOrderReply> convertSaleReply(List<SaleReply> replies);

	/**
	 * 将供应商在平台的回复，转为ERP的订单回复
	 * 
	 * @param replies
	 * @return
	 */
	List<SaleReply> convertOrderReply(List<PurchaseOrderReply> replies);

	/**
	 * 将平台里面的结案、反结案客户采购单，转为供应商ERP的结案、反结案客户采购单
	 * 
	 * @param replies
	 * @return
	 */
	List<SaleDownDetailEnd> convertOrderItemEnd(List<PurchaseOrderItem> orderItems);

}
