mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 11:04:41 -04:00
Updating the expense invoice amount now updates the expense amount
This commit is contained in:
parent
85c99c76bd
commit
7b28a8f9ad
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user