|
@@ -165,9 +165,11 @@
|
|
|
allInvoiceAmount += Number(mealName.invoiceAmount);
|
|
|
}
|
|
|
}
|
|
|
- if(Number(postData.contractInvoice.invoiceAmount) != Number(allInvoiceAmount)){
|
|
|
- all({success: false, errorMsg: "开票金额与所有项目开票金额之和不相等!"});
|
|
|
- return;
|
|
|
+ if(contractInvoiceList.length>1){
|
|
|
+ if(Number(postData.contractInvoice.invoiceAmount) != Number(allInvoiceAmount)){
|
|
|
+ all({success: false, errorMsg: "开票金额与所有项目开票金额之和不相等!"});
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
for (let key of Object.keys(postData)) {
|
|
|
let mealName = postData[key];
|