diff --git a/financer-server/src/main/resources/database/h2/V19_0_1__period.sql b/financer-server/src/main/resources/database/h2/V19_0_1__period.sql index 8c4a892..6d5a2a8 100644 --- a/financer-server/src/main/resources/database/h2/V19_0_1__period.sql +++ b/financer-server/src/main/resources/database/h2/V19_0_1__period.sql @@ -17,3 +17,6 @@ CREATE TABLE link_transaction_period ( INSERT INTO period (type, start) VALUES ('EXPENSE', NOW()); + +INSERT INTO period (type, start) +SELECT 'EXPENSE_YEAR', DATEADD(SECOND, -1, start) FROM period WHERE type = 'EXPENSE'; \ No newline at end of file diff --git a/financer-server/src/main/resources/database/postgres/V19_0_1__period.sql b/financer-server/src/main/resources/database/postgres/V19_0_1__period.sql index 32b267f..69377ff 100644 --- a/financer-server/src/main/resources/database/postgres/V19_0_1__period.sql +++ b/financer-server/src/main/resources/database/postgres/V19_0_1__period.sql @@ -17,3 +17,6 @@ CREATE TABLE link_transaction_period ( INSERT INTO period (type, start) VALUES ('EXPENSE', NOW()); + +INSERT INTO period (type, start) +SELECT 'EXPENSE_YEAR', DATEADD(SECOND, -1, start) FROM period WHERE type = 'EXPENSE'; \ No newline at end of file diff --git a/financer-web-client/src/main/resources/static/changelog.txt b/financer-web-client/src/main/resources/static/changelog.txt index cbcd379..7fc9d3a 100644 --- a/financer-web-client/src/main/resources/static/changelog.txt +++ b/financer-web-client/src/main/resources/static/changelog.txt @@ -1,5 +1,5 @@ v50 -> v51: -- +- Spinning up a new financer instance now also creates an EXPENSE_YEAR period v49 -> v50: - #29 Added projected cash flow report diff --git a/financer-web-client/src/main/resources/static/css/main.css b/financer-web-client/src/main/resources/static/css/main.css index fef432b..9933f1e 100644 --- a/financer-web-client/src/main/resources/static/css/main.css +++ b/financer-web-client/src/main/resources/static/css/main.css @@ -461,6 +461,10 @@ input[type=submit] { padding-left: 1em; display: block !important; } + + #report-config-projected-cashflow-for-period-transactions-table { + width: 100% !important; + } } .report-config-projected-cashflow-for-period-transactions-table-average-spending {