Added categories and Filter widget

This commit is contained in:
Florian "flowdy" Heß
2017-01-29 15:57:34 +01:00
parent 6f19437901
commit d7db9a2eb1
23 changed files with 167 additions and 40 deletions

View File

@@ -4,6 +4,7 @@ CREATE VIEW History AS
-- internal transfers with account as source
SELECT DATE(timestamp) AS date,
d.purpose AS purpose,
d.category AS category,
d.debtor AS account,
t.credId AS credId,
t.amount AS debit,
@@ -17,6 +18,7 @@ CREATE VIEW History AS
UNION
SELECT DATE(timestamp) AS date,
d.purpose AS purpose,
d.category AS category,
c.account AS account,
d.targetCredit AS credId,
NULL AS debit,

View File

@@ -2,6 +2,7 @@ DROP VIEW IF EXISTS ReconstructedBankStatement;
CREATE VIEW ReconstructedBankStatement AS
SELECT c.date AS date,
c.purpose AS purpose,
c.category AS category,
account,
c.value AS credit,
NULL AS debit
@@ -12,6 +13,7 @@ CREATE VIEW ReconstructedBankStatement AS
UNION
SELECT date,
purpose,
category AS category,
debtor AS account,
NULL AS credit,
value AS debit