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();