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:
parent
3e39100eda
commit
3e10c76bc7
@ -23,8 +23,6 @@ class CreateExpenseRequest extends ExpenseRequest
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
'amount' => 'numeric',
|
||||
];
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
@ -21,8 +21,6 @@ class UpdateExpenseRequest extends ExpenseRequest
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
'amount' => 'numeric',
|
||||
];
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user