add a button to recalc bills by removing all esimated bills and rebuild them

This commit is contained in:
2025-10-17 21:22:07 +11:00
parent bf66e9fa7c
commit 227e95cab7
3 changed files with 22 additions and 2 deletions

9
db.py
View File

@@ -395,3 +395,12 @@ def save_ui(data):
conn.commit()
conn.close()
return
def delete_estimated_bills():
conn = connect_db(False)
cur = conn.cursor()
cur.execute( "delete from bill_data where estimated=1" )
conn.commit()
conn.close()
return