|
@@ -1226,7 +1226,6 @@ function setSeondHandProductList(data) {
|
|
|
|
|
|
//设置订单金额信息
|
|
|
function setOrderFee() { //不考虑经理折扣、运费,此时 商品总金额=订单总额=应付总额
|
|
|
- debugger
|
|
|
var productTotalFee = 0, //商品总金额
|
|
|
productCount = 0, // 商品总数
|
|
|
presentCount = 0, //协商赠送商品数
|
|
@@ -1575,6 +1574,8 @@ function taxRateVal(index) {
|
|
|
$checkItem["costPrice"] = costPrice + ""; //重新设置成本
|
|
|
$checkItem["svipReduction"] = svipReduction + ""; //重新设置超级会员优惠
|
|
|
$("#svipReduction0").val(svipReduction);
|
|
|
+ $checkItem["svipTaxReduction"] = svipTaxReduction +""; //重新设置超级会员税费优惠
|
|
|
+ $("#svipTaxReduction").val(svipTaxReduction);
|
|
|
// console.log("data" + index + ":" + JSON.stringify($checkItem));
|
|
|
$("#check-item" + index).val(JSON.stringify($checkItem));
|
|
|
} else {
|
|
@@ -1678,6 +1679,8 @@ function taxRateVal(index) {
|
|
|
}
|
|
|
$checkItem["svipReduction"] = svipReduction + ""; //重新设置超级会员优惠
|
|
|
$("#svipReduction0").val(svipReduction);
|
|
|
+ $checkItem["svipTaxReduction"] = svipTaxReduction +""; //重新设置超级会员税费优惠
|
|
|
+ $("#svipTaxReduction").val(svipTaxReduction);
|
|
|
// console.log("data" + index + ":" + JSON.stringify($checkItem));
|
|
|
$("#check-item" + index).val(JSON.stringify($checkItem));
|
|
|
} else if (taxRate > 100) {
|
|
@@ -1781,7 +1784,6 @@ function taxRateVal(index) {
|
|
|
shouldPayTotalTax = (singleShouldPayTotalTax * numVal).toFixed(2);
|
|
|
}
|
|
|
if (svipPriceFlag == 1) {
|
|
|
- debugger
|
|
|
// 折扣价重新计算超级会员优惠
|
|
|
var svipDiscountPrice = $("#svipDiscountPrice" + index).text();
|
|
|
var originalPrice = $("#price" + index).val();
|
|
@@ -1789,8 +1791,9 @@ function taxRateVal(index) {
|
|
|
svipTaxReduction = ((originalPrice - svipDiscountPrice) * taxRate / 100).toFixed(2);
|
|
|
}
|
|
|
$checkItem["svipReduction"] = svipReduction + ""; //重新设置超级会员优惠
|
|
|
- $checkItem["svipTaxReduction"] = svipTaxReduction +""; //重新设置超级会员税费优惠
|
|
|
$("#svipReduction0").val(svipReduction);
|
|
|
+ $checkItem["svipTaxReduction"] = svipTaxReduction +""; //重新设置超级会员税费优惠
|
|
|
+ $("#svipTaxReduction").val(svipTaxReduction);
|
|
|
|
|
|
$("#addedValueTax" + index).val(addedValueTax);
|
|
|
$("#totalAddedValueTax" + index).val(totalAddedValueTax);
|