소스 검색

二手提交订单bugfix

Aslee 3 년 전
부모
커밋
169f21158d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/main/webapp/static/modules/bulkpurchase/orderForm.js

+ 2 - 2
src/main/webapp/static/modules/bulkpurchase/orderForm.js

@@ -1486,8 +1486,8 @@ function taxRateVal(index) {
     var obj2 = document.getElementById("price"); //设置商品页面商品单价
     var price = obj1 != null ? obj1 : obj2 != null ? obj2 : null;
     var svipDiscountPriceObj = document.getElementById("svipDiscountPrice" + index);
-    var svipReduction = $("#svipReduction" + index).val();
-    var svipPriceFlag = $("#svipPriceFlag" + index).val();
+    var svipReduction = $("#svipReduction" + index).val() == undefined ? 0 : $("#svipReduction" + index).val();
+    var svipPriceFlag = $("#svipPriceFlag" + index).val() == undefined ? 0 : $("#svipPriceFlag" + index).val();
 
     if (includedTax != '' && includedTax == 0 && invoiceType == 3) {
         //不含税不能开票商品,税率置为0