Update application/controllers/spendings.php