added support for Quarterly (seasonal) and Quarterly (fixed), also updated live DB to match

This commit is contained in:
2025-08-31 11:07:08 +10:00
parent f67ca61cc7
commit 07f2a321ec

5
db.py
View File

@@ -133,8 +133,9 @@ def init_db():
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)''',
(4762.29, 10, 24000, 620, 2412, 45824.68, 83738.74, 80000, 424875.26, 4.75, 2.4, 10000, 50000, 10000, 76.85, 1000, 750, 1111, 4.52, 163.32, '2025-06-01', '2025-09-01', '2025-02-20', 4, 0, 0))
cur.execute( "INSERT INTO bill_freq values ( 1, 'Annual', 1 )" )
cur.execute( "INSERT INTO bill_freq values ( 2, 'Quarterly', 4 )" )
cur.execute( "INSERT INTO bill_freq values ( 3, 'Monthly', 12 )" )
cur.execute( "INSERT INTO bill_freq values ( 2, 'Quarterly (seasonal)', 4 )" )
cur.execute( "INSERT INTO bill_freq values ( 3, 'Quarterly (fixed)', 4 )" )
cur.execute( "INSERT INTO bill_freq values ( 4, 'Monthly', 12 )" )
# start with no specific Tab/bill_type to show, and dont show_estimated
cur.execute( "INSERT INTO bill_ui values ( 1, null, 0 )" )
conn.commit()