package com.inkasso.factoring.invoicemanage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.inkasso.factoring.invoicemanage.entity.InvoiceGoodsInfo;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author : liutao
 * @Date: 2022-3-22
 */
public interface InvoiceGoodsInfoService extends IService<InvoiceGoodsInfo> {


    /**
     * 计算已开票数量
     *
     * @param acceptanceBusinessGoodsId
     * @return
     */
    BigDecimal calculateInvoicedQuantity(Long acceptanceBusinessGoodsId);

    /**
     * 根据发票主表id获取货物列表
     * @param invoiceBasicInfoId
     * @return
     */
    List<InvoiceGoodsInfo> findListGoods(Long invoiceBasicInfoId);
}
