+ 2

CAN SOMEONE GIVE ME A HAND ON HOW TO ADD A THRESHOLD LIMIT TO THE CATOEGORIES SECTION

I WANT TO ADD A THRESHOLD LIMIT TO EACH CATEGORY IN THIS CODE. LIKE FOR FOOD IT IS LET'S SAY 2500. FOR BIKE : 1000 FOR GROCERIES : 3500 AND SO ON. IF MONEY IS SPENT FOR FOOD BEYOND 2500, IT WILL BE COUNTED AS ' EXCESS MONEY SPENT', EXAMPLE) IF MY SPENDING ON FOOD IS 3000, THE EXCESS MONEY SPENT ON FOOD WILL BE 3000-2500 = 500 IF MY SPENDING ON BIKE IS 3000, IT WILL DISPLAY : EXCESS MONEY SPENT = 3000-100 = 2000 SIMILARLY FOR OTHER CATEGORIES. AT THE END , THE EXCESS MONEY SPENT ON EACH CATEGORY WILL BE ADDED AND THE USER WILL BE NOTIFIED ABOUT HIS OBERALL EXCESSIVE SPENDINGS HERE IS MY CODE, CAN SOMEONE PLEASE GIVE ME A HAND ON HOW TO DO THIS. https://code.sololearn.com/WKHhdZ4952ky/?ref=app

26th Jan 2022, 8:23 AM
Kakaashi
Kakaashi - avatar
1 Respuesta
+ 1
Add one more field and track/display expence per each category also. So user will see both per category if he select from dropdown menu and total expence. Like in menu i select to see only for "bike", than i see list of my expences for this category,in expences is see my expances for bike but also total, you can set this div to display:none and only display whan user need it. I think this is what you asking for.
27th Jan 2022, 12:48 AM
PanicS
PanicS - avatar