mirror of
https://github.com/brmlab/brmbar.git
synced 2025-06-08 13:24:01 +02:00
Added Barcode for cash payment. Barcode is '_cash_'.
This commit is contained in:
parent
65741c31f0
commit
6ed53b92aa
3 changed files with 18 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue