|
@@ -693,8 +693,10 @@ public class SRMSynPayApiPlugin implements Serializable {
|
|
|
String taxAmount = jsonData.getString("taxAmount");//税额
|
|
|
|
|
|
if(StringUtils.isEmpty(serialNo)){
|
|
|
- returnMessage = "发票分录的第" + (i + 1) + "行的发票流水号不能为空";
|
|
|
- return buildReturnData(code, srmBillNo, returnMessage, null, null, null);
|
|
|
+// returnMessage = "发票分录的第" + (i + 1) + "行的发票流水号不能为空";
|
|
|
+// return buildReturnData(code, srmBillNo, returnMessage, null, null, null);
|
|
|
+
|
|
|
+ continue;
|
|
|
}
|
|
|
|
|
|
Long invoiceEntryId = DB.genLongId("er_publicreimbursebill.invoiceentry");
|
|
@@ -906,8 +908,10 @@ public class SRMSynPayApiPlugin implements Serializable {
|
|
|
}
|
|
|
|
|
|
DynamicObjectCollection expenseEntrys = bizAcctOutBill.getDynamicObjectCollection("expenseentryentity");
|
|
|
- expenseEntrys.get(0).set("invoiceno_entry", invoiceCode);
|
|
|
- expenseEntrys.get(0).set("expensegoodsname", invoiceName);
|
|
|
+ if(expenseEntrys.size() > 0) {
|
|
|
+ expenseEntrys.get(0).set("invoiceno_entry", invoiceCode);
|
|
|
+ expenseEntrys.get(0).set("expensegoodsname", invoiceName);
|
|
|
+ }
|
|
|
|
|
|
//合同信息
|
|
|
if(contractInfo != null){
|