diff --git a/dxhy-erp/src/main/java/com/dxhy/erp/controller/SDNYMainProcessController.java b/dxhy-erp/src/main/java/com/dxhy/erp/controller/SDNYMainProcessController.java index 7a9b1adc..548d1f93 100644 --- a/dxhy-erp/src/main/java/com/dxhy/erp/controller/SDNYMainProcessController.java +++ b/dxhy-erp/src/main/java/com/dxhy/erp/controller/SDNYMainProcessController.java @@ -1057,7 +1057,7 @@ public class SDNYMainProcessController extends AbstractController { checkInvoice.put("purchaserAddressPhone", checkInvoice.get("gfAddressAndPhone")); checkInvoice.put("salesName", checkInvoice.get("xfName")); checkInvoice.put("salesTaxNo", checkInvoice.get("xfTaxNo")); - checkInvoice.put("salesAddressPhone", checkInvoice.get("gfAddressAndPhone")); + checkInvoice.put("salesAddressPhone", checkInvoice.get("xfAddressAndPhone")); checkInvoice.put("salesBank", checkInvoice.get("gfBankAndNo")); checkInvoice.put("checkCode", checkInvoice.get("checkCode")); if("1".equals(checkInvoice.get("invoiceStatus"))){ diff --git a/dxhy-erp/src/main/java/com/dxhy/erp/service/impl/SignSaveInvoiceInfoServiceImpl.java b/dxhy-erp/src/main/java/com/dxhy/erp/service/impl/SignSaveInvoiceInfoServiceImpl.java index 67ab4c87..2a1133d9 100644 --- a/dxhy-erp/src/main/java/com/dxhy/erp/service/impl/SignSaveInvoiceInfoServiceImpl.java +++ b/dxhy-erp/src/main/java/com/dxhy/erp/service/impl/SignSaveInvoiceInfoServiceImpl.java @@ -182,6 +182,42 @@ public class SignSaveInvoiceInfoServiceImpl extends MpBaseServiceImpl 0) { + boolean deleteStatistics = signInvoiceStatisticsService + .deleteStatistics(recordInvoice.getInvoiceCode(), recordInvoice.getInvoiceNo(), dbName); + if (deleteStatistics) { + signInvoiceStatisticsService.saveInvoiceStatistics(invoiceStatistics, dbName); + } + } + + } + // 二手车 + if (vehicleInvoice != null) { + + boolean deleteVehicleSaleInvoice = + signJdcService.deleteVehicleSaleInvoice(recordInvoice.getUuid(), dbName); + if (deleteVehicleSaleInvoice) { + signJdcService.saveVehicleSaleInvoice(vehicleInvoice, dbName); + } + + // 保存税率统计表 + if (invoiceStatistics.size() > 0) { + signInvoiceStatisticsService.remove(new UpdateWrapper() + .eq("invoice_code", recordInvoice.getInvoiceCode()).eq("invoice_no", recordInvoice.getInvoiceNo())); + signInvoiceStatisticsService.saveBatch(invoiceStatistics); + } + + } } }