Commit 0ce12f8e by 王昆

Merge branch 'xgg-saas-platform' of gitlab.gongsibao.com:jiangyong/zhichan into xgg-saas-platform

parents 7f921c31 ac09ebff
...@@ -179,8 +179,16 @@ class InvoiceCtl extends CtlBase { ...@@ -179,8 +179,16 @@ class InvoiceCtl extends CtlBase {
let calcList = res.data.data; let calcList = res.data.data;
let calcMap = {}; let calcMap = {};
let errors = [];
for (let c of calcList) { for (let c of calcList) {
calcMap[c.credit_code] = c; calcMap[c.credit_code] = c;
if (c.error) {
errors.push(`${c.msg}${c.credit_code}】`);
}
}
if (errors.length > 0) {
return system.getResult(null, errors.join("、"));
} }
for (let invoice of invoiceList) { for (let invoice of invoiceList) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment