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

import com.uas.platform.b2b.erp.model.PurchaseAPBill;
import com.uas.platform.b2b.model.ApbillAdjustment;
import com.uas.platform.b2b.model.PurchaseApBill;
import com.uas.platform.b2b.model.PurchaseApBillItem;

import java.util.List;

public interface PurchaseAPBillService {

	/**
	 * 将ERP系统的采购验收单，转为平台的客户采购验收单
	 * 
	 * @param changes
	 * @return
	 */
	List<PurchaseApBillItem> convertApBills(List<PurchaseAPBill> apBills);

	/**
	 * 将ERP中已反过账的应付发票，转为反过账的客户应付发票
	 * @param prodInOuts
	 * @return
	 */
	List<PurchaseApBill> convertNonPostingApBills(List<PurchaseAPBill> apBills);
	
	/**
	 * 从erp传入的货款调账存入ApbillAdjustment中
	 * 
	 * @param apBills
	 * @return
	 */
	List<ApbillAdjustment> convertApbillAdjustment(List<PurchaseAPBill> apBills);

	/**
	 * 获取应付发票对应的平台的ID
	 *
	 * @param purchaseAPBills erp应付发票
	 * @return
	 */
    List<PurchaseAPBill> getB2bId(List<PurchaseAPBill> purchaseAPBills);
}
