shruti-sen2004 / BudgetBuddy

A simple expense tracker
https://shruti-sen2004.github.io/BudgetBuddy/
MIT License
5 stars 3 forks source link

Restrict the expense button if amount is more than balance #16

Closed srinidhifd closed 1 month ago

srinidhifd commented 1 month ago

If we have only 9000 in account balance , how we can have expense of 90000 . It is showing -81000 which is not possible in reality. So I would like to add validation logic for this . Expense button logic will work only when amount is less than or equal to Balance.

Screenshots:

image image

@shruti-sen2004 Please assign me this issue under Hactoberfest label . I would like to work on this .

ishan657 commented 1 month ago

HI @srinidhifd I would love to work on this issue, kindly assign it to me thankyou

shruti-sen2004 commented 1 month ago

Hi @srinidhifd , Thank you for your suggestion but I wanted that feature to work this way because if the total goes into negative, it indicates that they’ve spent more than they’ve earned for that particular month or period. It’s meant to show overspending within a timeframe, not necessarily what the person has in total. Best regards, Shruti

srinidhifd commented 1 month ago

@shruti-sen2004 Yes even that seems one of the ways to handle overspending.