Added categories and Filter widget
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user