gaoluyang
昨天 8c65f898ed6e5b0c7a94c792c4562f6ec831dccd
yudao-module-crm/src/main/java/cn/iocoder/yudao/module/crm/service/invoice/CrmInvoiceServiceImpl.java
@@ -444,7 +444,7 @@
     */
    private void validateSaleOrderAndOut(CrmInvoiceSaveReqVO reqVO) {
        if (reqVO.getSaleOrderId() == null) {
            return;
            throw exception(INVOICE_CREATE_FAIL_SALE_ORDER_REQUIRED);
        }
        // 1. 销售订单
        ErpSaleOrderRespDTO saleOrder = saleOrderApi.getSaleOrder(reqVO.getSaleOrderId()).getCheckedData();
@@ -471,9 +471,9 @@
                    formatPrice(orderRemainPrice), formatPrice(orderTotalPrice), formatPrice(orderInvoicedPrice));
        }
        // 2. 销售出库单(可选)
        // 2. 开票申请必须绑定已完成的销售出库单
        if (reqVO.getSaleOutId() == null) {
            return;
            throw exception(INVOICE_CREATE_FAIL_SALE_OUT_REQUIRED);
        }
        MesWmProductSalesRespDTO saleOut = productSalesApi.getProductSales(reqVO.getSaleOutId());
        if (saleOut == null) {