增加其他发票类型

This commit is contained in:
李贵强 2025-07-21 15:21:14 +08:00
parent 047d25abbd
commit 7397ecc5ec
3 changed files with 18 additions and 5 deletions

View File

@ -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 +":发票识别失败:请上传有效发票");
}

View File

@ -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 +":发票识别失败:请上传有效发票");
}

View File

@ -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);
}