Added Barcode for cash payment. Barcode is '_cash_'.

This commit is contained in:
Stevko 2014-05-11 02:38:53 +02:00 committed by Petr Baudis
parent 65741c31f0
commit 6ed53b92aa
3 changed files with 18 additions and 3 deletions

View file

@ -52,6 +52,9 @@ CREATE TABLE barcodes (
account INTEGER NOT NULL,
FOREIGN KEY (account) REFERENCES accounts (id)
);
-- Barcode for cash
-- XXX Silently assume there is only one.
INSERT INTO barcodes (barcode, account) VALUES ('_cash_', (SELECT id FROM accounts WHERE acctype = 'cash'));
CREATE SEQUENCE transactions_id_seq START WITH 1 INCREMENT BY 1;