diff --git a/app/Http/Requests/CreateExpenseRequest.php b/app/Http/Requests/CreateExpenseRequest.php index 785390f23..a4983e265 100644 --- a/app/Http/Requests/CreateExpenseRequest.php +++ b/app/Http/Requests/CreateExpenseRequest.php @@ -23,8 +23,6 @@ class CreateExpenseRequest extends ExpenseRequest */ public function rules() { - return [ - 'amount' => 'numeric', - ]; + return []; } } diff --git a/app/Http/Requests/UpdateExpenseRequest.php b/app/Http/Requests/UpdateExpenseRequest.php index 65fdc9375..97616adc6 100644 --- a/app/Http/Requests/UpdateExpenseRequest.php +++ b/app/Http/Requests/UpdateExpenseRequest.php @@ -21,8 +21,6 @@ class UpdateExpenseRequest extends ExpenseRequest */ public function rules() { - return [ - 'amount' => 'numeric', - ]; + return []; } } diff --git a/resources/views/expenses/edit.blade.php b/resources/views/expenses/edit.blade.php index 5a04d4766..9fbd63981 100644 --- a/resources/views/expenses/edit.blade.php +++ b/resources/views/expenses/edit.blade.php @@ -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);