Commit aec8e63b authored by Cédric Houbart's avatar Cédric Houbart
Browse files

Updated db installation scripts for default pos, cash and location

parent 9fcdab58
This diff is collapsed.
-- France default data
INSERT INTO CATEGORIES(ID, NAME) VALUES ('000', 'Categorie standard');
INSERT INTO CATEGORIES(ID, NAME) VALUES ('0', 'Formules');
INSERT INTO CATEGORIES(ID, NAME) VALUES ('-1', 'Pré-paiement');
INSERT INTO LOCATIONS(ID, NAME,ADDRESS) VALUES('0', 'Principal', NULL);
UPDATE CATEGORIES SET NAME = 'Categorie standard' WHERE ID = '000';
UPDATE CATEGORIES SET NAME = 'Formules' WHERE ID = '0';
UPDATE CATEGORIES SET NAME = 'Pré-paiement' WHERE ID = '-1';
INSERT INTO CURRENCIES(ID, NAME, SYMBOL, DECIMALSEP, THOUSANDSSEP, RATE, FORMAT, MAIN) VALUES (1, 'Euro', '€', ',', ' ', 1.0, '#,##0.00 $', 1);
UPDATE CURRENCIES SET NAME = 'Euro', SYMBOL = '€', DECIMALSEP = ',', THOUSANDSSEP = '.', FORMAT = '#,##0.00 $' WHERE ID = 1;
-- Taxes
INSERT INTO TAXCATEGORIES(ID, NAME) VALUES ('000', 'Sans TVA');
......
-- France default data
INSERT INTO CATEGORIES(ID, NAME) VALUES ('000', 'Categorie standard');
INSERT INTO CATEGORIES(ID, NAME) VALUES ('0', 'Formules');
INSERT INTO CATEGORIES(ID, NAME) VALUES ('-1', 'Pré-paiement');
INSERT INTO LOCATIONS(ID, NAME,ADDRESS) VALUES('0', 'Principal', NULL);
UPDATE CATEGORIES SET NAME = 'Categorie standard' WHERE ID = '000';
UPDATE CATEGORIES SET NAME = 'Formules' WHERE ID = '0';
UPDATE CATEGORIES SET NAME = 'Pré-paiement' WHERE ID = '-1';
INSERT INTO CURRENCIES(ID, NAME, SYMBOL, DECIMALSEP, THOUSANDSSEP, RATE, FORMAT, MAIN) VALUES (1, 'Euro', '€', ',', ' ', 1.0, '#,##0.00 $', 1);
UPDATE CURRENCIES SET NAME = 'Euro', SYMBOL = '€', DECIMALSEP = ',', THOUSANDSSEP = '.', FORMAT = '#,##0.00 $' WHERE ID = 1;
-- Taxes
INSERT INTO TAXCATEGORIES(ID, NAME) VALUES ('000', 'Sans TVA');
......
-- France default data
INSERT INTO CATEGORIES(ID, NAME) VALUES ('000', 'Categorie standard');
INSERT INTO CATEGORIES(ID, NAME) VALUES ('0', 'Formules');
INSERT INTO CATEGORIES(ID, NAME) VALUES ('-1', 'Pré-paiement');
INSERT INTO LOCATIONS(ID, NAME,ADDRESS) VALUES('0', 'Principal', NULL);
UPDATE CATEGORIES SET NAME = 'Categorie standard' WHERE ID = '000';
UPDATE CATEGORIES SET NAME = 'Formules' WHERE ID = '0';
UPDATE CATEGORIES SET NAME = 'Pré-paiement' WHERE ID = '-1';
INSERT INTO CURRENCIES(ID, NAME, SYMBOL, DECIMALSEP, THOUSANDSSEP, RATE, FORMAT, MAIN) VALUES (1, 'Euro', '€', ',', ' ', 1.0, '#,##0.00 $', 1);
UPDATE CURRENCIES SET NAME = 'Euro', SYMBOL = '€', DECIMALSEP = ',', THOUSANDSSEP = '.', FORMAT = '#,##0.00 $' WHERE ID = 1;
-- Taxes
INSERT INTO TAXCATEGORIES(ID, NAME) VALUES ('000', 'Sans TVA');
......
-- France default data
-- United Kingdoms default data
INSERT INTO CATEGORIES(ID, NAME) VALUES ('000', 'Standard category');
INSERT INTO CATEGORIES(ID, NAME) VALUES ('0', 'Compositions');
INSERT INTO CATEGORIES(ID, NAME) VALUES ('-1', 'Pre-payment');
INSERT INTO LOCATIONS(ID, NAME,ADDRESS) VALUES('0', 'Main', NULL);
INSERT INTO CURRENCIES(ID, NAME, SYMBOL, DECIMALSEP, THOUSANDSSEP, RATE, FORMAT, MAIN) VALUES (1, 'Pound', '£', '.' , NULL, 1.0, '$#0.00', 1);
UPDATE CURRENCIES SET NAME = 'Pound', SYMBOL = '£', DECIMALSEP = '.', THOUSANDSSEP = NULL, FORMAT = '$#0.00' WHERE ID = 1;
-- Taxes
INSERT INTO TAXCATEGORIES(ID, NAME) VALUES ('000', 'Zero VAT');
......
This diff is collapsed.
-- France default data
INSERT INTO CATEGORIES(ID, NAME) VALUES ('000', 'Categorie standard');
INSERT INTO CATEGORIES(ID, NAME) VALUES ('0', 'Formules');
INSERT INTO CATEGORIES(ID, NAME) VALUES ('-1', 'Pré-paiement');
INSERT INTO LOCATIONS(ID, NAME,ADDRESS) VALUES('0', 'Principal', NULL);
UPDATE CATEGORIES SET NAME = 'Categorie standard' WHERE ID = '000';
UPDATE CATEGORIES SET NAME = 'Formules' WHERE ID = '0';
UPDATE CATEGORIES SET NAME = 'Pré-paiement' WHERE ID = '-1';
INSERT INTO CURRENCIES(ID, NAME, SYMBOL, DECIMALSEP, THOUSANDSSEP, RATE, FORMAT, MAIN) VALUES (1, 'Euro', '€', ',', ' ', 1.0, '#,##0.00 $', True);
UPDATE CURRENCIES SET NAME = 'Euro', SYMBOL = '€', DECIMALSEP = ',', THOUSANDSSEP = '.', FORMAT = '#,##0.00 $' WHERE ID = 1;
-- Taxes
INSERT INTO TAXCATEGORIES(ID, NAME) VALUES ('000', 'Sans TVA');
......
-- France default data
INSERT INTO CATEGORIES(ID, NAME) VALUES ('000', 'Categorie standard');
INSERT INTO CATEGORIES(ID, NAME) VALUES ('0', 'Formules');
INSERT INTO CATEGORIES(ID, NAME) VALUES ('-1', 'Pré-paiement');
INSERT INTO LOCATIONS(ID, NAME,ADDRESS) VALUES('0', 'Principal', NULL);
UPDATE CATEGORIES SET NAME = 'Categorie standard' WHERE ID = '000';
UPDATE CATEGORIES SET NAME = 'Formules' WHERE ID = '0';
UPDATE CATEGORIES SET NAME = 'Pré-paiement' WHERE ID = '-1';
INSERT INTO CURRENCIES(ID, NAME, SYMBOL, DECIMALSEP, THOUSANDSSEP, RATE, FORMAT, MAIN) VALUES (1, 'Euro', '€', ',', ' ', 1.0, '#,##0.00 $', True);
UPDATE CURRENCIES SET NAME = 'Euro', SYMBOL = '€', DECIMALSEP = ',', THOUSANDSSEP = '.', FORMAT = '#,##0.00 $' WHERE ID = 1;
-- Taxes
INSERT INTO TAXCATEGORIES(ID, NAME) VALUES ('000', 'Sans TVA');
......
-- France default data
INSERT INTO CATEGORIES(ID, NAME) VALUES ('000', 'Categorie standard');
INSERT INTO CATEGORIES(ID, NAME) VALUES ('0', 'Formules');
INSERT INTO CATEGORIES(ID, NAME) VALUES ('-1', 'Pré-paiement');
INSERT INTO LOCATIONS(ID, NAME,ADDRESS) VALUES('0', 'Principal', NULL);
UPDATE CATEGORIES SET NAME = 'Categorie standard' WHERE ID = '000';
UPDATE CATEGORIES SET NAME = 'Formules' WHERE ID = '0';
UPDATE CATEGORIES SET NAME = 'Pré-paiement' WHERE ID = '-1';
INSERT INTO CURRENCIES(ID, NAME, SYMBOL, DECIMALSEP, THOUSANDSSEP, RATE, FORMAT, MAIN) VALUES (1, 'Euro', '€', ',', ' ', 1.0, '#,##0.00 $', 1);
UPDATE CURRENCIES SET NAME = 'Euro', SYMBOL = '€', DECIMALSEP = ',', THOUSANDSSEP = '.', FORMAT = '#,##0.00 $' WHERE ID = 1;
-- Taxes
INSERT INTO TAXCATEGORIES(ID, NAME) VALUES ('000', 'Sans TVA');
......
-- France default data
INSERT INTO CATEGORIES(ID, NAME) VALUES ('000', 'Standard category');
INSERT INTO CATEGORIES(ID, NAME) VALUES ('0', 'Compositions');
INSERT INTO CATEGORIES(ID, NAME) VALUES ('-1', 'Pre-payment');
INSERT INTO LOCATIONS(ID, NAME,ADDRESS) VALUES('0', 'Main', NULL);
INSERT INTO CURRENCIES(ID, NAME, SYMBOL, DECIMALSEP, THOUSANDSSEP, RATE, FORMAT, MAIN) VALUES (1, 'Pound', '£', '.' , NULL, 1.0, '$#0.00', TRUE);
UPDATE CURRENCIES SET NAME = 'Pound', SYMBOL = '£', DECIMALSEP = '.', THOUSANDSSEP = NULL, FORMAT = '$#0.00' WHERE ID = 1;
-- Taxes
INSERT INTO TAXCATEGORIES(ID, NAME) VALUES ('000', 'Zero VAT');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment