Fix bug that causes editing of earning to decrease its amount by 99 percent
MODIFY
app/Http/Controllers/EarningController.php
app/Http/Controllers/EarningController.php
@@ -62,7 +62,7 @@ class EarningController extends Controller {
$earning->fill([
'happened_on' => $request->input('date'),
'description' => $request->input('description'),
- 'amount' => $request->input('amount')
+ 'amount' => (int) ($request->input('amount') * 100)
])->save();
return redirect()->route('transactions.index');

Fix bug that causes editing of earning to decrease its amount by 99 percent