From 5a4eb3e5c8f2c935bed662c9511db830fc38833a Mon Sep 17 00:00:00 2001 From: G Date: Fri, 28 Sep 2018 14:15:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E7=A4=BE=E4=BC=9A=E4=BF=A1?= =?UTF-8?q?=E7=94=A8=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Tenwa/Customer/Lessee/Comm/Invoice/CustomerInvoice.jsp | 5 +++-- .../customer/handler/invoice/CustomerInvoiceHandler.java | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/WebContent/Tenwa/Customer/Lessee/Comm/Invoice/CustomerInvoice.jsp b/WebContent/Tenwa/Customer/Lessee/Comm/Invoice/CustomerInvoice.jsp index f981c5ec9..60974c429 100644 --- a/WebContent/Tenwa/Customer/Lessee/Comm/Invoice/CustomerInvoice.jsp +++ b/WebContent/Tenwa/Customer/Lessee/Comm/Invoice/CustomerInvoice.jsp @@ -94,6 +94,7 @@ function validityCheck(){ //验证纳税人识别号 var tax_no = getItemValue(0,getRow(),"tax_no");//纳税人识别号 + var certid=getItemValue(0,getRow() , "certid");//统一社会信用代码 var id = getItemValue(0,getRow(),"id"); var tax_account = getItemValue(0,getRow(),"tax_account");//开户账号 var tax_status = getItemValue(0,getRow(),"tax_status");//开票状态 @@ -106,7 +107,7 @@ if(typeof(tax_no) != undefined && tax_no != ""){ var sReturnInfo = RunJavaMethodTrans("com.tenwa.customer.controller.invoice.CustomerInvoiceController","checkTax_no","tax_no="+tax_no+",customer_id="+"<%=customer_id%>"); if(sReturnInfo != "true"){ - alert("统一社会信用代码已存在"); + alert("纳税人识别号已存在"); return false; } } @@ -114,7 +115,7 @@ if(typeof(tax_no) != undefined && tax_no != "" ){ var sReturnInfo = RunJavaMethodTrans("com.tenwa.customer.controller.invoice.CustomerInvoiceController","editCheckTax_no","tax_no="+tax_no+",id="+id+",customer_id="+"<%=customer_id%>"); if(sReturnInfo != "true"){ - alert("统一社会信用代码已存在"); + alert("纳税人识别号已存在"); return false; } } diff --git a/src_tenwa/com/tenwa/customer/handler/invoice/CustomerInvoiceHandler.java b/src_tenwa/com/tenwa/customer/handler/invoice/CustomerInvoiceHandler.java index 746734d57..42e47cba8 100644 --- a/src_tenwa/com/tenwa/customer/handler/invoice/CustomerInvoiceHandler.java +++ b/src_tenwa/com/tenwa/customer/handler/invoice/CustomerInvoiceHandler.java @@ -20,7 +20,7 @@ public class CustomerInvoiceHandler extends CommonHandler{ if(CUSTOMER_INFO != null) { bo.setAttributeValue("tax_object", CUSTOMER_INFO.getAttribute("customername").getString()); - bo.setAttributeValue("tax_no", CUSTOMER_INFO.getAttribute("customerid").getString()); + bo.setAttributeValue("tax_no", CUSTOMER_INFO.getAttribute("certid").getString()); } //初始化customer_id