summaryrefslogtreecommitdiff
path: root/sql/Spain-ISO-chart.sql
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-10-31 04:23:28 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-10-31 04:23:28 +0000
commit2230a9b561c625d2365c70b23985609bfa05a51b (patch)
treea25a5499478cfd046e7c990faafe562582b5a926 /sql/Spain-ISO-chart.sql
parentc9112193ee0b36390570e8eaae05357bb1ab43cf (diff)
Finished converting CoA's...
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@418 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'sql/Spain-ISO-chart.sql')
-rwxr-xr-xsql/Spain-ISO-chart.sql14
1 files changed, 13 insertions, 1 deletions
diff --git a/sql/Spain-ISO-chart.sql b/sql/Spain-ISO-chart.sql
index 6b29c478..ac8a20a7 100755
--- a/sql/Spain-ISO-chart.sql
+++ b/sql/Spain-ISO-chart.sql
@@ -128,5 +128,17 @@ INSERT INTO "tax" ("chart_id", "rate") VALUES ((SELECT id FROM chart WHERE accno
--
-- update defaults
--
-update defaults set inventory_accno_id = (select id from chart where accno = '300000000'), income_accno_id = (select id from chart where accno = '700000000'), expense_accno_id = (select id from chart where accno = '600000000'), fxgain_accno_id = (select id from chart where accno = '768000000'), fxloss_accno_id = (select id from chart where accno = '668000000'), curr = 'EUR', weightunit = 'Kg';
+INSERT INTO defaults (setting_key, value) VALUES ('inventory_accno_id', (select id from chart where accno = '300000000'));
+
+ INSERT INTO defaults (setting_key, value) VALUES ('inventory_accno_id', (select id from chart where accno = '700000000'));
+
+ INSERT INTO defaults (setting_key, value) VALUES ('expense_accno_id', (select id from chart where accno = '600000000'));
+
+ INSERT INTO defaults (setting_key, value) VALUES ('fxgain_accno_id', (select id from chart where accno = '768000000'));
+
+ INSERT INTO defaults (setting_key, value) VALUES ('fxloss_accno_id', (select id from chart where accno = '668000000'));
+
+ INSERT INTO defaults (setting_key, value) VALUES ('curr', 'EUR');
+
+ INSERT INTO defaults (setting_key, value) VALUES ('weightunit', 'Kg');
--