diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-10-31 04:04:09 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-10-31 04:04:09 +0000 |
commit | d08818151cb1cb4041599b977c66489eb6bc4e4f (patch) | |
tree | 61378a7063ec7e9a4abeea949bee814a29fa5090 | |
parent | c0e83f8de881755f3b5e9b624c1c17ae2d4649ab (diff) |
Converted Australian and Austrian CoA's
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@414 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-x | sql/Australia_General_0000-chart.sql | 14 | ||||
-rwxr-xr-x | sql/Australia_General_00000-chart.sql | 15 | ||||
-rwxr-xr-x | sql/Austria-chart.sql | 13 |
3 files changed, 38 insertions, 4 deletions
diff --git a/sql/Australia_General_0000-chart.sql b/sql/Australia_General_0000-chart.sql index 806370d4..f9a25262 100755 --- a/sql/Australia_General_0000-chart.sql +++ b/sql/Australia_General_0000-chart.sql @@ -109,5 +109,17 @@ INSERT INTO chart (accno, description, charttype, category, link, gifi_accno) VA INSERT INTO tax (chart_id, rate, taxnumber) VALUES ((SELECT id FROM chart WHERE accno = '1230'), 0.1, ''); INSERT INTO tax (chart_id, rate, taxnumber) VALUES ((SELECT id FROM chart WHERE accno = '2290'), 0.1, ''); -- -UPDATE defaults SET inventory_accno_id = (SELECT id FROM chart WHERE accno = '1520'), income_accno_id = (SELECT id FROM chart WHERE accno = '4020'), expense_accno_id = (SELECT id FROM chart WHERE accno = '5020'), fxgain_accno_id = (SELECT id FROM chart WHERE accno = '4450'), fxloss_accno_id = (SELECT id FROM chart WHERE accno = '5810'), curr = 'AUD', weightunit = 'kg'; + SET inventory_accno_id = (SELECT id FROM chart WHERE accno = '1520')); + + INSERT INTO defaults (setting_key, value) VALUES ('inventory_accno_id', (SELECT id FROM chart WHERE accno = '4020')); + + INSERT INTO defaults (setting_key, value) VALUES ('expense_accno_id', (SELECT id FROM chart WHERE accno = '5020')); + + INSERT INTO defaults (setting_key, value) VALUES ('fxgain_accno_id', (SELECT id FROM chart WHERE accno = '4450')); + + INSERT INTO defaults (setting_key, value) VALUES ('fxloss_accno_id', (SELECT id FROM chart WHERE accno = '5810')); + + INSERT INTO defaults (setting_key, value) VALUES ('curr', 'AUD'); + + INSERT INTO defaults (setting_key, value) VALUES ('weightunit', 'kg'); -- diff --git a/sql/Australia_General_00000-chart.sql b/sql/Australia_General_00000-chart.sql index 62b570a3..0c0a2c2b 100755 --- a/sql/Australia_General_00000-chart.sql +++ b/sql/Australia_General_00000-chart.sql @@ -74,6 +74,17 @@ insert into chart (accno,description,charttype,gifi_accno,category,link) values insert into tax (chart_id,rate) values ((select id from chart where accno = '16001'),0.1); insert into tax (chart_id,rate) values ((select id from chart where accno = '21002'),0.1); -- -update defaults -set inventory_accno_id = (select id from chart where accno = '15001'), income_accno_id = (select id from chart where accno = '40001'), expense_accno_id = (select id from chart where accno = '50001'), fxgain_accno_id = (select id from chart where accno = '42002'), fxloss_accno_id = (select id from chart where accno = '58002'), curr = 'AUD:USD:EUR', weightunit = 'kg'; +INSERT INTO defaults (setting_key, value) VALUES ('inventory_accno_id', (select id from chart where accno = '15001')); + + INSERT INTO defaults (setting_key, value) VALUES ('inventory_accno_id', (select id from chart where accno = '40001')); + + INSERT INTO defaults (setting_key, value) VALUES ('expense_accno_id', (select id from chart where accno = '50001')); + + INSERT INTO defaults (setting_key, value) VALUES ('fxgain_accno_id', (select id from chart where accno = '42002')); + + INSERT INTO defaults (setting_key, value) VALUES ('fxloss_accno_id', (select id from chart where accno = '58002')); + + INSERT INTO defaults (setting_key, value) VALUES ('curr', 'AUD:USD:EUR'); + + INSERT INTO defaults (setting_key, value) VALUES ('weightunit', 'kg'); diff --git a/sql/Austria-chart.sql b/sql/Austria-chart.sql index 47a11f72..d52d3170 100755 --- a/sql/Austria-chart.sql +++ b/sql/Austria-chart.sql @@ -139,5 +139,16 @@ insert into tax (chart_id,rate) values ((select id from chart where accno = '353 insert into tax (chart_id,rate) values ((select id from chart where accno = '3531'),0.10); insert into tax (chart_id,rate) values ((select id from chart where accno = '3532'),0.20); -- -update defaults set inventory_accno_id = (select id from chart where accno = '1520'), income_accno_id = (select id from chart where accno = '4020'), expense_accno_id = (select id from chart where accno = '7610'), fxgain_accno_id = (select id from chart where accno = '4640'), fxloss_accno_id = (select id from chart where accno = '8050'), curr = 'EUR:USD', weightunit = 'kg'; +INSERT INTO defaults (setting_key, value) VALUES ('inventory_accno_id', (select id from chart where accno = '1520')); +INSERT INTO defaults (setting_key, value) VALUES ('income_accno_id', (select id from chart where accno = '4020')); + + INSERT INTO defaults (setting_key, value) VALUES ('expense_accno_id', (select id from chart where accno = '7610')); + + INSERT INTO defaults (setting_key, value) VALUES ('fxgain_accno_id', (select id from chart where accno = '4640')); + + INSERT INTO defaults (setting_key, value) VALUES ('fxloss_accno_id', (select id from chart where accno = '8050')); + + INSERT INTO defaults (setting_key, value) VALUES ('curr', 'EUR:USD'); + + INSERT INTO defaults (setting_key, value) VALUES ('weightunit', 'kg'); -- |