[fix] [minor] recalculate on removing row
diff --git a/public/js/transaction.js b/public/js/transaction.js
index 9bc9f33..1d06a9f 100644
--- a/public/js/transaction.js
+++ b/public/js/transaction.js
@@ -32,7 +32,11 @@
}
if(this.other_fname) {
- this[this.fname + "_remove"] = this[this.other_fname + "_remove"] = this.calculate_taxes_and_totals;
+ this[this.other_fname + "_remove"] = this.calculate_taxes_and_totals;
+ }
+
+ if(this.fname) {
+ this[this.fname + "_remove"] = this.calculate_taxes_and_totals;
}
},