| | |
| | | package cn.iocoder.yudao.module.erp.service.purchase; |
| | | |
| | | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| | | import cn.iocoder.yudao.module.erp.controller.admin.purchase.vo.invoice.ErpPurchaseInvoiceImportExcelVO; |
| | | import cn.iocoder.yudao.module.erp.controller.admin.purchase.vo.invoice.ErpPurchaseInvoiceImportReqVO; |
| | | import cn.iocoder.yudao.module.erp.controller.admin.purchase.vo.invoice.ErpPurchaseInvoiceImportRespVO; |
| | | import cn.iocoder.yudao.module.erp.controller.admin.purchase.vo.invoice.ErpPurchaseInvoicePageReqVO; |
| | | import cn.iocoder.yudao.module.erp.controller.admin.purchase.vo.invoice.ErpPurchaseInvoiceSaveReqVO; |
| | | import cn.iocoder.yudao.module.erp.dal.dataobject.purchase.ErpPurchaseInvoiceDO; |
| | |
| | | void deletePurchaseInvoice(Long id); |
| | | |
| | | /** |
| | | * 提交来票审批 |
| | | * |
| | | * @param id 编号 |
| | | * @param userId 用户编号 |
| | | */ |
| | | void submitPurchaseInvoice(Long id, Long userId); |
| | | |
| | | /** |
| | | * 更新来票审批结果(BPM 回调) |
| | | * |
| | | * @param id 编号 |
| | | * @param bpmResult BPM 审批结果 |
| | | */ |
| | | void updatePurchaseInvoiceAuditStatus(Long id, Integer bpmResult); |
| | | |
| | | /** |
| | | * 获得来票 |
| | | * |
| | | * @param id 编号 |
| | |
| | | PageResult<ErpPurchaseInvoiceDO> getPurchaseInvoicePage(ErpPurchaseInvoicePageReqVO pageReqVO); |
| | | |
| | | /** |
| | | * 根据采购订单编号和审批状态获得来票列表 |
| | | * 根据采购订单编号获得来票列表 |
| | | * |
| | | * @param orderId 采购订单编号 |
| | | * @param auditStatuses 审批状态集合 |
| | | * @return 来票列表 |
| | | */ |
| | | List<ErpPurchaseInvoiceDO> getPurchaseInvoiceListByOrderIdAndStatus(Long orderId, Collection<Integer> auditStatuses); |
| | | List<ErpPurchaseInvoiceDO> getPurchaseInvoiceListByOrderId(Long orderId); |
| | | |
| | | /** |
| | | * 根据供应商编号和审批状态获得来票列表 |
| | | * 根据供应商编号获得来票列表 |
| | | * |
| | | * @param supplierId 供应商编号 |
| | | * @param auditStatuses 审批状态集合 |
| | | * @return 来票列表 |
| | | */ |
| | | List<ErpPurchaseInvoiceDO> getPurchaseInvoiceListBySupplierIdAndStatus(Long supplierId, Collection<Integer> auditStatuses); |
| | | List<ErpPurchaseInvoiceDO> getPurchaseInvoiceListBySupplierId(Long supplierId); |
| | | |
| | | /** |
| | | * 获得待审核来票数量 |
| | | * 导入采购来票 |
| | | * |
| | | * @return 数量 |
| | | * @param importInvoices 导入的来票列表(一行一张) |
| | | * @param importReqVO 导入参数 |
| | | * @return 导入结果 |
| | | */ |
| | | Long getAuditInvoiceCount(); |
| | | ErpPurchaseInvoiceImportRespVO importPurchaseInvoiceList(List<ErpPurchaseInvoiceImportExcelVO> importInvoices, |
| | | ErpPurchaseInvoiceImportReqVO importReqVO); |
| | | |
| | | } |