|
|
|
@ -286,9 +286,9 @@
|
|
|
|
|
function eventnew(){
|
|
|
|
|
$(".tax").off("blur");
|
|
|
|
|
$(".tax").on("blur", function() {
|
|
|
|
|
var lastNum = $(this).parent().next().text();
|
|
|
|
|
var lastNum = (parseFloat($(this).parent().next().text())).toFixed(2);
|
|
|
|
|
$(this).parent().next().text(($(this).parent().next().attr('data-value')*(1-$(this).val()/100)).toFixed(2));
|
|
|
|
|
var nowNum = $(this).parent().next().text();
|
|
|
|
|
var nowNum = (parseFloat($(this).parent().next().text())).toFixed(2);
|
|
|
|
|
console.log((nowNum-lastNum))
|
|
|
|
|
$(".sumAll").text((parseFloat($(".sumAll").text())+(nowNum-lastNum)).toFixed(2));
|
|
|
|
|
});
|
|
|
|
@ -297,8 +297,8 @@
|
|
|
|
|
$(".forfeit").on("blur", function() {
|
|
|
|
|
var lastNumber = $(this).parent().next().next().next().text();
|
|
|
|
|
|
|
|
|
|
$(this).parent().next().next().next().text($(this).val());
|
|
|
|
|
$(".sumAmount").text($(".sumAmount").attr("data-value")-$(this).val());
|
|
|
|
|
$(this).parent().next().next().next().text(parseFloat($(this).val()).toFixed(2));
|
|
|
|
|
$(".sumAmount").text(($(".sumAmount").attr("data-value")-$(this).val()).toFixed(2));
|
|
|
|
|
|
|
|
|
|
$(".sumAll").text((parseFloat($(".sumAll").text())+parseFloat(lastNumber)-parseFloat($(this).val())).toFixed(2));
|
|
|
|
|
|
|
|
|
|