提交 ac0ff515 authored 作者: 艾庆国's avatar 艾庆国

订单报价

上级 20422833
...@@ -1108,16 +1108,12 @@ public class SettlementMqHandlerServiceImpl implements SettlementMqHandlerServic ...@@ -1108,16 +1108,12 @@ public class SettlementMqHandlerServiceImpl implements SettlementMqHandlerServic
if (Objects.equals(feignOrderVO.getPlatformFreightQuotationTaxType(), if (Objects.equals(feignOrderVO.getPlatformFreightQuotationTaxType(),
InvoicingCompanyEnum.TaxType.TAX_EXCLUDED.getCode())) { InvoicingCompanyEnum.TaxType.TAX_EXCLUDED.getCode())) {
if (Objects.equals(settlementDriverDetail.getInvoiceConfigType(), // 查询开票公司
InvoicingCompanyEnum.YesAndNo.YES.getCode())) { InvoicingCompanyVO invoiceCompany = invoicingCompanyService.getInvoicingCompany(
settlementOwnerDetail.getInvoicingCompanyId()).orElseThrow(PerformanceResultEnum.DATA_NOT_FIND);
// 查询开票公司 settlementOwnerDetail.setInvoiceServiceFeeRate(
InvoicingCompanyVO invoiceCompany = invoicingCompanyService.getInvoicingCompany( invoiceCompany.getServiceFeeRate() == null ? BigDecimal.ZERO : invoiceCompany.getServiceFeeRate());
settlementOwnerDetail.getInvoicingCompanyId()).orElseThrow(PerformanceResultEnum.DATA_NOT_FIND);
settlementOwnerDetail.setInvoiceServiceFeeRate(
invoiceCompany.getServiceFeeRate() == null ? BigDecimal.ZERO : invoiceCompany.getServiceFeeRate());
}
} }
// 开票服务费 // 开票服务费
......
...@@ -163,20 +163,17 @@ public class SettlementOwnerDetailServiceImpl implements SettlementOwnerDetailS ...@@ -163,20 +163,17 @@ public class SettlementOwnerDetailServiceImpl implements SettlementOwnerDetailS
if (Objects.equals(feignOrderVO.getPlatformFreightQuotationTaxType(), if (Objects.equals(feignOrderVO.getPlatformFreightQuotationTaxType(),
InvoicingCompanyEnum.TaxType.TAX_EXCLUDED.getCode())) { InvoicingCompanyEnum.TaxType.TAX_EXCLUDED.getCode())) {
if (Objects.equals(settlementOwnerDetail.getInvoiceConfigType(), InvoicingCompanyEnum.YesAndNo.YES.getCode())) { //设置开票公司信息
settlementOwnerDetail.setInvoicingCompanyId(orderChild.getInvoicingCompanyId());
settlementOwnerDetail.setInvoicingCompanyShorterName(orderChild.getInvoicingCompanyShorterName());
settlementOwnerDetail.setInvoicingCompanyGroupCode(orderChild.getInvoicingCompanyGroupCode());
//设置开票公司信息 // 查询开票公司
settlementOwnerDetail.setInvoicingCompanyId(orderChild.getInvoicingCompanyId()); InvoicingCompanyVO invoiceCompany = invoicingCompanyService.getInvoicingCompany(
settlementOwnerDetail.setInvoicingCompanyShorterName(orderChild.getInvoicingCompanyShorterName()); settlementOwnerDetail.getInvoicingCompanyId()).orElseThrow(PerformanceResultEnum.DATA_NOT_FIND);
settlementOwnerDetail.setInvoicingCompanyGroupCode(orderChild.getInvoicingCompanyGroupCode());
// 查询开票公司 settlementOwnerDetail.setInvoiceServiceFeeRate(
InvoicingCompanyVO invoiceCompany = invoicingCompanyService.getInvoicingCompany( invoiceCompany.getServiceFeeRate() == null ? BigDecimal.ZERO : invoiceCompany.getServiceFeeRate());
settlementOwnerDetail.getInvoicingCompanyId()).orElseThrow(PerformanceResultEnum.DATA_NOT_FIND);
settlementOwnerDetail.setInvoiceServiceFeeRate(
invoiceCompany.getServiceFeeRate() == null ? BigDecimal.ZERO : invoiceCompany.getServiceFeeRate());
}
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论