Fix comma in expense amount
This commit is contained in:
parent
3e39100eda
commit
3e10c76bc7
3 changed files with 3 additions and 7 deletions
|
|
@ -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…
Add table
Reference in a new issue