diff --git a/main/java/shkd/repc/recon/formplugin/ReconPayreqFormPlugin.java b/main/java/shkd/repc/recon/formplugin/ReconPayreqFormPlugin.java index 9694965..9fbabfa 100644 --- a/main/java/shkd/repc/recon/formplugin/ReconPayreqFormPlugin.java +++ b/main/java/shkd/repc/recon/formplugin/ReconPayreqFormPlugin.java @@ -349,7 +349,14 @@ public class ReconPayreqFormPlugin extends AbstractFormPlugin implements BeforeF qeug_invoiceno = details.getString("number");//发票号码 qeug_amount = details.getBigDecimal("total");//总金额 qeug_bizdate = details.getDate("date");//填开日期 - }else{ + } else if ("102015".equals(invoiceType)) { + //102015【其他发票】 + qeug_invoicecode = details.getString("bill_number"); + qeug_invoiceno = details.getString("bill_code"); + qeug_amount = details.getBigDecimal("total");//总金额 + qeug_bizdate = details.getDate("date");//填开日期 + } + else{ parseFlag = false; this.getView().showTipNotification(name +":发票识别失败:请上传有效发票"); } diff --git a/main/java/shkd/repc/recon/formplugin/dynamic/ReconPayreqNewFormPlugin.java b/main/java/shkd/repc/recon/formplugin/dynamic/ReconPayreqNewFormPlugin.java index d658d68..c485ee3 100644 --- a/main/java/shkd/repc/recon/formplugin/dynamic/ReconPayreqNewFormPlugin.java +++ b/main/java/shkd/repc/recon/formplugin/dynamic/ReconPayreqNewFormPlugin.java @@ -314,7 +314,13 @@ public class ReconPayreqNewFormPlugin extends AbstractFormPlugin implements Befo qeug_invoiceno = details.getString("number");//发票号码 qeug_amount = details.getBigDecimal("total");//总金额 qeug_bizdate = details.getDate("date");//填开日期 - }else{ + } else if ("102015".equals(invoiceType)) { + //102015【其他发票】 + qeug_invoicecode = details.getString("bill_number"); + qeug_invoiceno = details.getString("bill_code"); + qeug_amount = details.getBigDecimal("total");//总金额 + qeug_bizdate = details.getDate("date");//填开日期 + } else{ parseFlag = false; this.getView().showTipNotification(name +":发票识别失败:请上传有效发票"); } diff --git a/main/java/shkd/repc/recon/opplugin/YongyouBIPOperation.java b/main/java/shkd/repc/recon/opplugin/YongyouBIPOperation.java index e9643aa..25a34b9 100644 --- a/main/java/shkd/repc/recon/opplugin/YongyouBIPOperation.java +++ b/main/java/shkd/repc/recon/opplugin/YongyouBIPOperation.java @@ -930,10 +930,10 @@ public class YongyouBIPOperation extends AbstractOperationServicePlugIn implemen def4Builder.append(typeName).append(":").append(String.join(",", numbers)); }); - // 截取200字符 + // 截取100字符 String def4Value = def4Builder.toString(); - if (def4Value.length() > 200) { - def4Value = def4Value.substring(0, 200); + if (def4Value.length() > 100) { + def4Value = def4Value.substring(0, 100); } payData.put("def4", def4Value); }