Browse Source

二手提交订单bugfix

Aslee 3 năm trước cách đây
mục cha
commit
169f21158d
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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