Ver Fonte

项目开票相关修改

chenjun há 10 meses atrás
pai
commit
faca193ce5

+ 5 - 3
zjugis-business/src/main/resources/templates/FlowContractInvoice/js/apply.js

@@ -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];