1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 00:11:35 +02: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()
{
return [
'amount' => 'numeric',
];
return [];
}
}

View File

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

View File

@ -479,7 +479,7 @@
write: function(value) {
// When changing the converted amount we're updating
// 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);