1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Fix comma in expense amount

This commit is contained in:
Hillel Coren 2018-01-01 11:15:49 +02:00
parent 3e39100eda
commit 3e10c76bc7
3 changed files with 3 additions and 7 deletions

View File

@ -23,8 +23,6 @@ class CreateExpenseRequest extends ExpenseRequest
*/ */
public function rules() public function rules()
{ {
return [ return [];
'amount' => 'numeric',
];
} }
} }

View File

@ -21,8 +21,6 @@ class UpdateExpenseRequest extends ExpenseRequest
*/ */
public function rules() public function rules()
{ {
return [ return [];
'amount' => 'numeric',
];
} }
} }

View File

@ -479,7 +479,7 @@
write: function(value) { write: function(value) {
// When changing the converted amount we're updating // When changing the converted amount we're updating
// the exchange rate rather than change the amount // the exchange rate rather than change the amount
self.exchange_rate(NINJA.parseFloat(value) / self.amount()); self.exchange_rate(roundSignificant(NINJA.parseFloat(value) / self.amount()));
//self.amount(roundToTwo(value / self.exchange_rate())); //self.amount(roundToTwo(value / self.exchange_rate()));
} }
}, self); }, self);