diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-10-31 03:30:39 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-10-31 03:30:39 +0000 |
commit | c0e83f8de881755f3b5e9b624c1c17ae2d4649ab (patch) | |
tree | ed788a6c04e35faf8a6b26e8afe16096efa61608 /sql/Default-chart.sql | |
parent | e2bbcb8d35f48c73d989c3d01bc5a028df8aac32 (diff) |
Defaults table revision. Most COA's and System->defaults are known to be broken.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@413 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'sql/Default-chart.sql')
-rwxr-xr-x | sql/Default-chart.sql | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/sql/Default-chart.sql b/sql/Default-chart.sql index 3d222463..c0f103b6 100755 --- a/sql/Default-chart.sql +++ b/sql/Default-chart.sql @@ -73,5 +73,17 @@ insert into tax (chart_id,rate) values ((select id from chart where accno = '231 insert into tax (chart_id,rate) values ((select id from chart where accno = '2320'),0.14); insert into tax (chart_id,rate) values ((select id from chart where accno = '2330'),0.3); -- -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'), curr = 'USD:CAD:EUR', 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 = '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 ('curr', 'USD:CAD:EUR'); +INSERT INTO defaults (setting_key, value) +VALUES ('weightunit', 'kg'); |