1👍
✅
You need to convert taxamount
& amount
from String to Number first then do addition.
Change to: var t = +taxamount + +amount;
total: function () {
var amount= this.rinvoices.amount;
var tax= this.rinvoices.tva;
var taxamount= amount*tax;
var t = +taxamount + +amount;
return t;
}
Source:stackexchange.com