From de65d2175d0984b26858e20b700a372e2ec2baa7 Mon Sep 17 00:00:00 2001 From: yishiqihuasheng <1191093413@qq.com> Date: Thu, 20 Apr 2023 09:19:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E6=AE=B5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/SDNYMainProcessController.java | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) 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 dc409676..a07666ca 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 @@ -604,6 +604,7 @@ public class SDNYMainProcessController extends AbstractController { BigDecimal bigDecimal = new BigDecimal(taxRate); BigDecimal multiply = bigDecimal.multiply(new BigDecimal("100")); info.setZTAX(multiply.toString()); + info.setZSM(getZSM(taxRate)); } if (taxRate != null && taxRate.contains("%")) { String replace = taxRate.replace("%", ""); @@ -616,6 +617,7 @@ public class SDNYMainProcessController extends AbstractController { } if (info.getZTAX() == null || info.getZTAX() == "") { info.setZTAX("0.00"); + info.setZSM(getZSM(info.getZTAX())); } info.setZFPDM(snInvoice.getInvoiceCode()); info.setZCD(snInvoice.getOriginPlace()); @@ -677,6 +679,10 @@ public class SDNYMainProcessController extends AbstractController { info.setZSJDH(snInvoice.getInspectionListNo()); // info.setZYGC(""); info.setZJSHJ(snInvoice.getAmountTax()); + if (snInvoice.getAmountTax() == null && (info.getZFPLX() == "17"|| info.getZFPLX() == "18")){ + info.setZJSHJ(snInvoice.getTotalAmount()); + + } info.setZCYRMC(snInvoice.getCarrierName()); info.setZJGDM(snInvoice.getTaxAuthorityNo()); //时间转换 @@ -687,10 +693,19 @@ public class SDNYMainProcessController extends AbstractController { if (snInvoice.getSource() == null) { info.setZPJLY("1"); } - info.setZCYZT(snInvoice.getCheckStaus()); - if (snInvoice.getCheckStaus() == null) { - info.setZCYZT("1"); + if ("01".equals(snInvoice.getInvoiceType()) || "02".equals(snInvoice.getInvoiceType()) || "03".equals(snInvoice.getInvoiceType()) || "04".equals(snInvoice.getInvoiceType()) + || "08".equals(snInvoice.getInvoiceType()) || "10".equals(snInvoice.getInvoiceType()) || "11".equals(snInvoice.getInvoiceType()) || "14".equals(snInvoice.getInvoiceType()) + || "15".equals(snInvoice.getInvoiceType()) || "31".equals(snInvoice.getInvoiceType()) || "32".equals(snInvoice.getInvoiceType())) { + //可查验发票, + info.setZCYZT("1"); + } else { + //不可查验发票 + info.setZCYZT("3"); } +// info.setZCYZT(snInvoice.getCheckStaus()); +// if (snInvoice.getCheckStaus() == null) { +// info.setZCYZT("1"); +// } info.setZCJR("opentext"); info.setZGXR("opentext"); info.setZQM("opentext");