字段修改

release
yishiqihuasheng 2 years ago
parent a0cbebc1d1
commit de65d2175d
  1. 21
      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 bigDecimal = new BigDecimal(taxRate);
BigDecimal multiply = bigDecimal.multiply(new BigDecimal("100")); BigDecimal multiply = bigDecimal.multiply(new BigDecimal("100"));
info.setZTAX(multiply.toString()); info.setZTAX(multiply.toString());
info.setZSM(getZSM(taxRate));
} }
if (taxRate != null && taxRate.contains("%")) { if (taxRate != null && taxRate.contains("%")) {
String replace = taxRate.replace("%", ""); String replace = taxRate.replace("%", "");
@ -616,6 +617,7 @@ public class SDNYMainProcessController extends AbstractController {
} }
if (info.getZTAX() == null || info.getZTAX() == "") { if (info.getZTAX() == null || info.getZTAX() == "") {
info.setZTAX("0.00"); info.setZTAX("0.00");
info.setZSM(getZSM(info.getZTAX()));
} }
info.setZFPDM(snInvoice.getInvoiceCode()); info.setZFPDM(snInvoice.getInvoiceCode());
info.setZCD(snInvoice.getOriginPlace()); info.setZCD(snInvoice.getOriginPlace());
@ -677,6 +679,10 @@ public class SDNYMainProcessController extends AbstractController {
info.setZSJDH(snInvoice.getInspectionListNo()); info.setZSJDH(snInvoice.getInspectionListNo());
// info.setZYGC(""); // info.setZYGC("");
info.setZJSHJ(snInvoice.getAmountTax()); info.setZJSHJ(snInvoice.getAmountTax());
if (snInvoice.getAmountTax() == null && (info.getZFPLX() == "17"|| info.getZFPLX() == "18")){
info.setZJSHJ(snInvoice.getTotalAmount());
}
info.setZCYRMC(snInvoice.getCarrierName()); info.setZCYRMC(snInvoice.getCarrierName());
info.setZJGDM(snInvoice.getTaxAuthorityNo()); info.setZJGDM(snInvoice.getTaxAuthorityNo());
//时间转换 //时间转换
@ -687,10 +693,19 @@ public class SDNYMainProcessController extends AbstractController {
if (snInvoice.getSource() == null) { if (snInvoice.getSource() == null) {
info.setZPJLY("1"); info.setZPJLY("1");
} }
info.setZCYZT(snInvoice.getCheckStaus()); if ("01".equals(snInvoice.getInvoiceType()) || "02".equals(snInvoice.getInvoiceType()) || "03".equals(snInvoice.getInvoiceType()) || "04".equals(snInvoice.getInvoiceType())
if (snInvoice.getCheckStaus() == null) { || "08".equals(snInvoice.getInvoiceType()) || "10".equals(snInvoice.getInvoiceType()) || "11".equals(snInvoice.getInvoiceType()) || "14".equals(snInvoice.getInvoiceType())
info.setZCYZT("1"); || "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.setZCJR("opentext");
info.setZGXR("opentext"); info.setZGXR("opentext");
info.setZQM("opentext"); info.setZQM("opentext");

Loading…
Cancel
Save