From c9112193ee0b36390570e8eaae05357bb1ab43cf Mon Sep 17 00:00:00 2001 From: einhverfr Date: Tue, 31 Oct 2006 04:10:35 +0000 Subject: Egyptian and French CoA's... git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@417 4979c152-3d1c-0410-bac9-87ea11338e46 --- sql/Egypt-UTF8-chart.sql | 13 ++++++++++++- sql/France-chart.sql | 14 +++++++++++++- 2 files changed, 25 insertions(+), 2 deletions(-) (limited to 'sql') diff --git a/sql/Egypt-UTF8-chart.sql b/sql/Egypt-UTF8-chart.sql index 101e4d98..43c20c9f 100755 --- a/sql/Egypt-UTF8-chart.sql +++ b/sql/Egypt-UTF8-chart.sql @@ -72,7 +72,18 @@ INSERT INTO chart (accno,description,charttype,category,link,gifi_accno) VALUES INSERT INTO chart (accno,description,charttype,category,link,gifi_accno) VALUES ('5790','مرافق','A','E','AP_amount',''); INSERT INTO chart (accno,description,charttype,category,link,gifi_accno) VALUES ('2280','ضرائب مرتبات مستحقة','A','L','',''); -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 = '5010'), fxgain_accno_id = (SELECT id FROM chart WHERE accno = '4450'), fxloss_accno_id = (SELECT id FROM chart WHERE accno = '5810'), weightunit = 'kg', curr = 'USD:CAD:EUR'; + 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 = '5010')); + + 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 ('weightunit', 'kg'); +INSERT INTO defaults (setting_key, value) VALUES ('curr', 'USD:CAD:EUR'; INSERT INTO tax (chart_id,rate,taxnumber) VALUES ((SELECT id FROM chart WHERE accno = '2310'),'0.1',NULL); INSERT INTO tax (chart_id,rate,taxnumber) VALUES ((SELECT id FROM chart WHERE accno = '2320'),'0.14',NULL); diff --git a/sql/France-chart.sql b/sql/France-chart.sql index 24151270..47dd8f80 100755 --- a/sql/France-chart.sql +++ b/sql/France-chart.sql @@ -947,5 +947,17 @@ INSERT INTO tax (chart_id, rate) VALUES ((SELECT id FROM chart WHERE accno = '44 -- -- update defaults -- -update defaults set inventory_accno_id = (select id from chart where accno = '681730'), income_accno_id = (select id from chart where accno = '707000'), expense_accno_id = (select id from chart where accno = '601000'), fxgain_accno_id = (select id from chart where accno = '999000'), fxloss_accno_id = (select id from chart where accno = '999010'), curr = 'EUR', weightunit = 'kg'; +INSERT INTO defaults (setting_key, value) VALUES ('inventory_accno_id', (select id from chart where accno = '681730')); + + INSERT INTO defaults (setting_key, value) VALUES ('inventory_accno_id', (select id from chart where accno = '707000')); + + INSERT INTO defaults (setting_key, value) VALUES ('expense_accno_id', (select id from chart where accno = '601000')); + + INSERT INTO defaults (setting_key, value) VALUES ('fxgain_accno_id', (select id from chart where accno = '999000')); + + INSERT INTO defaults (setting_key, value) VALUES ('fxloss_accno_id', (select id from chart where accno = '999010')); + + INSERT INTO defaults (setting_key, value) VALUES ('curr', 'EUR'); + + INSERT INTO defaults (setting_key, value) VALUES ('weightunit', 'kg'); -- -- cgit v1.2.3