From 43afeb2e94b7e469b5991b2cbf039c903012bd2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E9=B9=8F?= <845871400@qq.com> Date: Fri, 18 Oct 2024 15:54:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9B=E9=A1=B9=E7=A8=8E=E6=8A=B5=E6=89=A3?= =?UTF-8?q?=20=E5=BD=93=E5=8F=91=E7=A5=A8=E5=8D=AB=20103=E5=A2=9E=E5=80=BC?= =?UTF-8?q?=E7=A8=8E=E7=94=B5=E5=AD=90=E4=B8=93=E7=94=A8=E5=8F=91=E7=A5=A8?= =?UTF-8?q?=20107=E7=94=B5=E5=AD=90=E5=8F=91=E7=A5=A8=EF=BC=88=E5=A2=9E?= =?UTF-8?q?=E5=80=BC=E7=A8=8E=E4=B8=93=E7=94=A8=E5=8F=91=E7=A5=A8=EF=BC=89?= =?UTF-8?q?=20=E6=97=B6=20=E9=80=89=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shkd/fi/fi/formplugin/UploadAttachmentsFormPlugin.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fi/shkd-fi-fi/src/main/java/shkd/fi/fi/formplugin/UploadAttachmentsFormPlugin.java b/fi/shkd-fi-fi/src/main/java/shkd/fi/fi/formplugin/UploadAttachmentsFormPlugin.java index a12a677..a316812 100644 --- a/fi/shkd-fi-fi/src/main/java/shkd/fi/fi/formplugin/UploadAttachmentsFormPlugin.java +++ b/fi/shkd-fi-fi/src/main/java/shkd/fi/fi/formplugin/UploadAttachmentsFormPlugin.java @@ -277,7 +277,11 @@ public class UploadAttachmentsFormPlugin extends AbstractFormPlugin { if(null!=hanshuijia&&BigDecimal.ZERO.compareTo(hanshuijia)!=0){ compliancecollectBody.put("TotalAmount", hanshuijia); } - } Date invoiceDate = response.getInvoiceDate(); + } + if("103".equals(invoiceType)||"107".equals(invoiceType)){ + ap_finapbill.set("istaxdeduction", true);//进项税抵扣 当发票卫 103增值税电子专用发票 107电子发票(增值税专用发票) 时 选中 + } + Date invoiceDate = response.getInvoiceDate(); SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd"); String format = simpleDateFormat.format(invoiceDate); compliancecollectBody.put("BillingDate", format);//invoiceDate @@ -390,7 +394,6 @@ public class UploadAttachmentsFormPlugin extends AbstractFormPlugin { //回写发票信息到财务应付单发票明细 if (!returnDataList.isEmpty()) { - ap_finapbill.set("istaxdeduction", false);//进项税抵扣 DynamicObjectCollection inventry = ap_finapbill.getDynamicObjectCollection("shkd_inventry"); // inventry.clear();