增加其他发票类型
This commit is contained in:
parent
047d25abbd
commit
7397ecc5ec
|
@ -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 +":发票识别失败:请上传有效发票");
|
||||
}
|
||||
|
|
|
@ -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 +":发票识别失败:请上传有效发票");
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue