Updating the expense invoice amount now updates the expense amount

This commit is contained in:
Hillel Coren 2016-01-31 17:34:11 +02:00
parent 85c99c76bd
commit 7b28a8f9ad

View File

@ -192,7 +192,7 @@
return roundToTwo(self.amount() * self.exchange_rate()).toFixed(2); return roundToTwo(self.amount() * self.exchange_rate()).toFixed(2);
}, },
write: function(value) { write: function(value) {
self.exchange_rate(roundToFour(value / self.amount())); self.amount(roundToTwo(value / self.exchange_rate()));
} }
}, self); }, self);