From 3cb6a8bdf6ba59731f9e639f55c2f2d0f953813a Mon Sep 17 00:00:00 2001 From: yishiqihuasheng <1191093413@qq.com> Date: Thu, 11 May 2023 14:30:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=A8=8E=E7=8E=87=E7=B1=BB?= =?UTF-8?q?=E4=BC=BC0.030=E7=A8=8E=E7=A0=81=E4=B8=8D=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/dxhy/erp/controller/SDNYMainProcessController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 c6ac59ed..4553f83f 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 @@ -813,7 +813,7 @@ public class SDNYMainProcessController extends AbstractController { info.setZTAX(replace + ".00"); info.setZSM(getZSM(divide.toString())); } - if (taxRate != null && taxRate.contains(".")){ + if (taxRate != null && taxRate.contains(".") && !taxRate.contains("%")){ if (taxRate.length() >4){ taxRate = taxRate.substring(0,4); BigDecimal tax = new BigDecimal(taxRate);