put back ioniq 6 future bills, but use bill data to set values - assumption at present is they are yearly bills, could do better, but good enough for now. This commit also changes selects to return bill_type not bill_type_id and removed some debugs for bill amt in calc loop

This commit is contained in:
2025-09-05 12:20:08 +10:00
parent ebac4aaf66
commit c5cfc00793
4 changed files with 34 additions and 22 deletions

View File

@@ -26,7 +26,8 @@ def index():
finance_data = get_finance_data()
get_comp_set_options(finance_data)
bill_data = get_bill_data("order_by_date_only")
depletion_date, savings_per_fortnight, final_savings = calculate_savings_depletion(finance_data, bill_data)
bill_types = get_bill_types()
depletion_date, savings_per_fortnight, final_savings = calculate_savings_depletion(finance_data, bill_data, bill_types)
BUDGET=get_budget_data(finance_data)
if depletion_date: