单价计算时也取5位小数
parent
ba8d8b4427
commit
361f506476
|
@ -448,7 +448,7 @@ function bindChangeableInput() {
|
|||
$(".input-changeable-amount").change(function () {
|
||||
var amount = parseInt($(this).val());
|
||||
//找到对应的单价和税率
|
||||
var price = f2($(this).parent().parent().find(".input-changeable-price").val());
|
||||
var price = f5($(this).parent().parent().find(".input-changeable-price").val());
|
||||
var taxRate = f2($(this).parent().parent().find(".input-changeable-tax-rate").val());
|
||||
console.log(amount, price, taxRate);
|
||||
|
||||
|
@ -473,7 +473,7 @@ function bindChangeableInput() {
|
|||
var taxRate = f2($(this).val());
|
||||
//找到对应的数量和单价
|
||||
var amount = parseInt($(this).parent().parent().find(".input-changeable-amount").val());
|
||||
var price = f2($(this).parent().parent().find(".input-changeable-price").val());
|
||||
var price = f5($(this).parent().parent().find(".input-changeable-price").val());
|
||||
console.log(amount, price, taxRate);
|
||||
|
||||
$(this).parent().parent().find(".input-changeable-total-tax-exclude").val(f2Fixed(amount * price / (1 + taxRate / 100)));
|
||||
|
|
Loading…
Reference in New Issue