Pattern processing, pt. 1
This commit is contained in:
@@ -11,24 +11,29 @@ INSERT INTO Category (id, name, account_id, position) VALUES
|
||||
|
||||
INSERT INTO Account_User (account_id, user_id) VALUES (1, 1), (1, 2), (1, 3), (2, 1);
|
||||
|
||||
INSERT INTO Pattern (id, account_id, position, type_pattern, date_pattern, text_pattern, amount_pattern, target_category_id, target_description) VALUES
|
||||
(NULL, 1, 1, '', '', '*.LIDL*.', '', 1, 'Lidl'),
|
||||
(NULL, 1, 1, null, null, '*.Buchungstext: none*.', -40.0, 4, '(in Rücklage)'),
|
||||
(NULL, 1, 1, 'Kontoübertrag', null, 'Auftraggeber: Tilman Liero Kto/IBAN: DE44200411330649163305*.', null, 4, '(Entnahme aus Rücklagen)');
|
||||
|
||||
INSERT INTO Transaction (id, amount, account_id, category_id, date, description, creditor_id) VALUES
|
||||
(NULL, 1280.81, 1, 2, '2016-04-01 14:14:14', 'Gehalt', null),
|
||||
(NULL, -2.21, 1, 1, '2016-04-10', 'Brot', null),
|
||||
(NULL, -3.41, 1, 1, '2016-04-12', 'Gemüse', null),
|
||||
(NULL, -7.81, 1, 3, '2016-04-19', 'Kantine', null),
|
||||
(NULL, -4.81, 1, 3, '2016-04-18', 'Currywurst (Auslage Adam)', 1),
|
||||
(NULL, -4.50, 1, 3, '2016-04-19', 'Currywurst', null),
|
||||
(NULL, -4.50, 1, 3, '2016-04-20', 'Currywurst', null),
|
||||
(NULL, -4.09, 1, 3, '2016-04-18', 'Currywurst-Frühstück', null),
|
||||
(NULL, -4.90, 1, 3, '2016-04-18', 'Currywurst (Auslage Betty)', 2),
|
||||
(NULL, -8.90, 1, 3, '2016-04-18', 'Curry beim Inder (Auslage Adam)', 1),
|
||||
|
||||
(NULL, -20, 1, 4, '2016-04-12 18:20:15', 'Entnahme Betty', 2),
|
||||
(NULL, -10, 1, 4, '2016-04-14 10:03:00', 'Entnahme Adam', 1),
|
||||
|
||||
(NULL, 1340.22, 2, 5, '2016-04-02', 'Gehalt Adam', null),
|
||||
(NULL, -4.50, 2, 6, '2016-04-20', 'WebPack', null),
|
||||
(NULL, -12.90, 2, 6, '2016-04-16', 'Host Europe', null);
|
||||
(NULL, 1280.81, 1, 2, '2016-04-01 14:14:14', 'Gehalt', null),
|
||||
(NULL, -2.21, 1, 1, '2016-04-10', 'Brot', null),
|
||||
(NULL, -3.41, 1, 1, '2016-04-12', 'Gemüse', null),
|
||||
(NULL, -7.81, 1, 3, '2016-04-19', 'Kantine', null),
|
||||
(NULL, -4.81, 1, 3, '2016-04-18', 'Currywurst (Auslage Adam)', 1),
|
||||
(NULL, -4.50, 1, 3, '2016-04-19', 'Currywurst', null),
|
||||
(NULL, -4.50, 1, 3, '2016-04-20', 'Currywurst', null),
|
||||
(NULL, -4.09, 1, 3, '2016-04-18', 'Currywurst-Frühstück', null),
|
||||
(NULL, -4.90, 1, 3, '2016-04-18', 'Currywurst (Auslage Betty)', 2),
|
||||
(NULL, -8.90, 1, 3, '2016-04-18', 'Curry beim Inder (Auslage Adam)', 1),
|
||||
|
||||
(NULL, -20, 1, 4, '2016-04-12 18:20:15', 'Entnahme Betty', 2),
|
||||
(NULL, -10, 1, 4, '2016-04-14 10:03:00', 'Entnahme Adam', 1),
|
||||
|
||||
(NULL, 1340.22, 2, 5, '2016-04-02', 'Gehalt Adam', null),
|
||||
(NULL, -4.50, 2, 6, '2016-04-20', 'WebPack', null),
|
||||
(NULL, -12.90, 2, 6, '2016-04-16', 'Host Europe', null);
|
||||
|
||||
|
||||
-- add as many transactions as needed
|
||||
|
||||
Reference in New Issue
Block a user