[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[2646] trunk/sql/coa/dk
- Subject: SF.net SVN: ledger-smb:[2646] trunk/sql/coa/dk
- From: ..hidden..
- Date: Fri, 12 Jun 2009 02:03:49 +0000
Revision: 2646
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2646&view=rev
Author: einhverfr
Date: 2009-06-12 02:03:48 +0000 (Fri, 12 Jun 2009)
Log Message:
-----------
Danish chart conversions
Added Paths:
-----------
trunk/sql/coa/dk/chart/General.sql
Removed Paths:
-------------
trunk/sql/coa/dk/General.sql
Deleted: trunk/sql/coa/dk/General.sql
===================================================================
--- trunk/sql/coa/dk/General.sql 2009-06-12 02:02:55 UTC (rev 2645)
+++ trunk/sql/coa/dk/General.sql 2009-06-12 02:03:48 UTC (rev 2646)
@@ -1,89 +0,0 @@
-begin;
--- Default chart of accounts
--- sample only
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('1000','KORTFRISTEDE AKTIVER','H','','A','');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('1061','Bank','A','','A','AR_paid:AP_paid');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('1065','Kasse','A','','A','AR_paid:AP_paid');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('1200','Indbetalinger','A','','A','AR');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('1205','HensÃttelser til formodet gÃld','A','','A','');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('1210','Moms indgÃende','A','','A','AR_tax:AP_tax:IC_taxpart:IC_taxservice');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('1500','LAGER-AKTIVER','H','','A','');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('1520','Lager / udstyr','A','','A','IC');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('1530','Lager / programmel','A','','A','IC');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('1540','Lager / tillÃgssalg','A','','A','IC');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('1550','Lager / arrangementer','A','','A','IC');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('1800','AKTIVER','H','','A','');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('1820','Kontorinventar og -udstyr','A','','A','AP_amount');
-insert into chart (accno,description,charttype,gifi_accno,category,link,contra) values ('1825','Samlede afskrivninger, inventar, udstyr','A','','A','','1');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('1840','KÃretÃjer','A','','A','AP_amount');
-insert into chart (accno,description,charttype,gifi_accno,category,link,contra) values ('1845','Samlede afskrivninger, kÃretÃjer','A','','A','','1');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('2000','KORTFRISTET GÃLD','H','','L','');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('2100','Udbetalinger','A','','L','AP');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('2160','Selskabsskat','A','','L','');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('2190','Afgifter','A','','L','');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('2311','Moms udgÃende','A','','L','AR_tax:AP_tax:IC_taxpart:IC_taxservice');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('2600','LANGFRISTET GÃLD','H','','L','');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('2620','BanklÃn','A','','L','');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('3300','AKTIEKAPITAL','H','','Q','');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('3350','Almindelige aktier','A','','Q','');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('3500','EGENKAPITAL','H','','Q','');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('3510','Egenkapital primo','A','','Q','');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('3600','Ãrets resultat','A','','Q','');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('4000','SALGSINDTÃGT','H','','I','');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('4020','Salg / udstyr','A','','I','AR_amount:IC_sale');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('4030','Salg / programmel','A','','I','AR_amount:IC_sale');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('4040','Salg / tillÃgssalg','A','','I','AR_amount:IC_sale');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('4050','Salg / arrangementer','A','','I','AR_amount:IC_sale');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('4300','KONSULENTINDTÃGT','H','','I','');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('4320','Konsulentbistand','A','','I','AR_amount:IC_income');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('4330','Programmering','A','','I','AR_amount:IC_income');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('4400','ANDEN INDTÃGT','H','','I','');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('4440','Renter','A','','I','');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('4450','Foreign Exchange Gain','A','','I','');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('5000','SALGSOMKOSTNINGER','H','','E','');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('5020','Omkostninger / udstyr','A','','E','AP_amount:IC_cogs');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('5010','Anskaffelser under 8.000','A','','E','AP_amount:IC_cogs:IC_expense');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('5011','Anskaffelser over 8.000','A','','E','AP_amount:IC_cogs:IC_expense');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('5030','Omkostninger / programmel','A','','E','AP_amount:IC_cogs');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('5040','Omkostninger / tillÃgssalg','A','','E','AP_amount:IC_cogs');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('5050','Omkostninger / arrangementer','A','','E','AP_amount:IC_cogs');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('5100','Fragt, post','A','','E','AP_amount:IC_expense');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('5400','LÃNUDGIFTER','H','','E','');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('5410','LÃnninger og honorarer','A','','E','');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('5420','ATP','A','','E','');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('5470','Personalegoder','A','','E','');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('5600','GENERELLE & ADMINISTRATIVE UDGIFTER','H','','E','');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('5610','BogfÃring, revision, advokat','A','','E','AP_amount');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('5615','Marketing','A','','E','AP_amount');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('5620','DÃrlige skyldnere','A','','E','');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('5660','Afdrag pà lÃn','A','','E','');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('5680','A-skat','A','','E','');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('5685','Forsikringer','A','','E','AP_amount');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('5690','Renter og bankgebyrer','A','','E','');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('5700','Kontorudgifter','A','','E','AP_amount');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('5760','Husleje','A','','E','AP_amount');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('5765','Vedligeholdelse og reparation','A','','E','AP_amount');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('5780','Telefon','A','','E','AP_amount');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('5785','Rejser & reprÃsentation','A','','E','');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('5790','El, vand, varme','A','','E','AP_amount');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('5800','Licenser','A','','E','AP_amount');
-insert into chart (accno,description,charttype,gifi_accno,category,link) values ('5810','Foreign Exchange Loss','A','','E','');
---
-insert into tax (chart_id,rate) values ((select id from chart where accno = '1210'),0.25);
-insert into tax (chart_id,rate) values ((select id from chart where accno = '2311'),0.25);
---
-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', 'DKK');
-
- INSERT INTO defaults (setting_key, value) VALUES ('weightunit', 'kg');
---
-commit;
Copied: trunk/sql/coa/dk/chart/General.sql (from rev 2638, trunk/sql/coa/dk/General.sql)
===================================================================
--- trunk/sql/coa/dk/chart/General.sql (rev 0)
+++ trunk/sql/coa/dk/chart/General.sql 2009-06-12 02:03:48 UTC (rev 2646)
@@ -0,0 +1,89 @@
+begin;
+-- Default chart of accounts
+-- sample only
+SELECT account_heading_save(NULL,'1000','KORTFRISTEDE AKTIVER', NULL));
+SELECT account_save(NULL,'1061','Bank','A','', NULL, false,string_to_array('AR_paid:AP_paid', ':'));
+SELECT account_save(NULL,'1065','Kasse','A','', NULL, false,string_to_array('AR_paid:AP_paid', ':'));
+SELECT account_save(NULL,'1200','Indbetalinger','A','', NULL, false,string_to_array('AR', ':'));
+SELECT account_save(NULL,'1205','HensÃttelser til formodet gÃld','A','', NULL, false,string_to_array('', ':'));
+SELECT account_save(NULL,'1210','Moms indgÃende','A','', NULL, false,string_to_array('AR_tax:AP_tax:IC_taxpart:IC_taxservice', ':'));
+SELECT account_heading_save(NULL,'1500','LAGER-AKTIVER', NULL));
+SELECT account_save(NULL,'1520','Lager / udstyr','A','', NULL, false,string_to_array('IC', ':'));
+SELECT account_save(NULL,'1530','Lager / programmel','A','', NULL, false,string_to_array('IC', ':'));
+SELECT account_save(NULL,'1540','Lager / tillÃgssalg','A','', NULL, false,string_to_array('IC', ':'));
+SELECT account_save(NULL,'1550','Lager / arrangementer','A','', NULL, false,string_to_array('IC', ':'));
+SELECT account_heading_save(NULL,'1800','AKTIVER', NULL));
+SELECT account_save(NULL,'1820','Kontorinventar og -udstyr','A','', NULL, false,string_to_array('AP_amount', ':'));
+insert into chart (accno,description,charttype,gifi_accno,category,link,contra) values ('1825','Samlede afskrivninger, inventar, udstyr','A','','A','','1');
+SELECT account_save(NULL,'1840','KÃretÃjer','A','', NULL, false,string_to_array('AP_amount', ':'));
+insert into chart (accno,description,charttype,gifi_accno,category,link,contra) values ('1845','Samlede afskrivninger, kÃretÃjer','A','','A','','1');
+SELECT account_heading_save(NULL,'2000','KORTFRISTET GÃLD', NULL));
+SELECT account_save(NULL,'2100','Udbetalinger','L','', NULL, false,string_to_array('AP', ':'));
+SELECT account_save(NULL,'2160','Selskabsskat','L','', NULL, false,string_to_array('', ':'));
+SELECT account_save(NULL,'2190','Afgifter','L','', NULL, false,string_to_array('', ':'));
+SELECT account_save(NULL,'2311','Moms udgÃende','L','', NULL, false,string_to_array('AR_tax:AP_tax:IC_taxpart:IC_taxservice', ':'));
+SELECT account_heading_save(NULL,'2600','LANGFRISTET GÃLD', NULL));
+SELECT account_save(NULL,'2620','BanklÃn','L','', NULL, false,string_to_array('', ':'));
+SELECT account_heading_save(NULL,'3300','AKTIEKAPITAL', NULL));
+SELECT account_save(NULL,'3350','Almindelige aktier','Q','', NULL, false,string_to_array('', ':'));
+SELECT account_heading_save(NULL,'3500','EGENKAPITAL', NULL));
+SELECT account_save(NULL,'3510','Egenkapital primo','Q','', NULL, false,string_to_array('', ':'));
+SELECT account_save(NULL,'3600','Ãrets resultat','Q','', NULL, false,string_to_array('', ':'));
+SELECT account_heading_save(NULL,'4000','SALGSINDTÃGT', NULL));
+SELECT account_save(NULL,'4020','Salg / udstyr','I','', NULL, false,string_to_array('AR_amount:IC_sale', ':'));
+SELECT account_save(NULL,'4030','Salg / programmel','I','', NULL, false,string_to_array('AR_amount:IC_sale', ':'));
+SELECT account_save(NULL,'4040','Salg / tillÃgssalg','I','', NULL, false,string_to_array('AR_amount:IC_sale', ':'));
+SELECT account_save(NULL,'4050','Salg / arrangementer','I','', NULL, false,string_to_array('AR_amount:IC_sale', ':'));
+SELECT account_heading_save(NULL,'4300','KONSULENTINDTÃGT', NULL));
+SELECT account_save(NULL,'4320','Konsulentbistand','I','', NULL, false,string_to_array('AR_amount:IC_income', ':'));
+SELECT account_save(NULL,'4330','Programmering','I','', NULL, false,string_to_array('AR_amount:IC_income', ':'));
+SELECT account_heading_save(NULL,'4400','ANDEN INDTÃGT', NULL));
+SELECT account_save(NULL,'4440','Renter','I','', NULL, false,string_to_array('', ':'));
+SELECT account_save(NULL,'4450','Foreign Exchange Gain','I','', NULL, false,string_to_array('', ':'));
+SELECT account_heading_save(NULL,'5000','SALGSOMKOSTNINGER', NULL));
+SELECT account_save(NULL,'5020','Omkostninger / udstyr','E','', NULL, false,string_to_array('AP_amount:IC_cogs', ':'));
+SELECT account_save(NULL,'5010','Anskaffelser under 8.000','E','', NULL, false,string_to_array('AP_amount:IC_cogs:IC_expense', ':'));
+SELECT account_save(NULL,'5011','Anskaffelser over 8.000','E','', NULL, false,string_to_array('AP_amount:IC_cogs:IC_expense', ':'));
+SELECT account_save(NULL,'5030','Omkostninger / programmel','E','', NULL, false,string_to_array('AP_amount:IC_cogs', ':'));
+SELECT account_save(NULL,'5040','Omkostninger / tillÃgssalg','E','', NULL, false,string_to_array('AP_amount:IC_cogs', ':'));
+SELECT account_save(NULL,'5050','Omkostninger / arrangementer','E','', NULL, false,string_to_array('AP_amount:IC_cogs', ':'));
+SELECT account_save(NULL,'5100','Fragt, post','E','', NULL, false,string_to_array('AP_amount:IC_expense', ':'));
+SELECT account_heading_save(NULL,'5400','LÃNUDGIFTER', NULL));
+SELECT account_save(NULL,'5410','LÃnninger og honorarer','E','', NULL, false,string_to_array('', ':'));
+SELECT account_save(NULL,'5420','ATP','E','', NULL, false,string_to_array('', ':'));
+SELECT account_save(NULL,'5470','Personalegoder','E','', NULL, false,string_to_array('', ':'));
+SELECT account_heading_save(NULL,'5600','GENERELLE & ADMINISTRATIVE UDGIFTER', NULL));
+SELECT account_save(NULL,'5610','BogfÃring, revision, advokat','E','', NULL, false,string_to_array('AP_amount', ':'));
+SELECT account_save(NULL,'5615','Marketing','E','', NULL, false,string_to_array('AP_amount', ':'));
+SELECT account_save(NULL,'5620','DÃrlige skyldnere','E','', NULL, false,string_to_array('', ':'));
+SELECT account_save(NULL,'5660','Afdrag pà lÃn','E','', NULL, false,string_to_array('', ':'));
+SELECT account_save(NULL,'5680','A-skat','E','', NULL, false,string_to_array('', ':'));
+SELECT account_save(NULL,'5685','Forsikringer','E','', NULL, false,string_to_array('AP_amount', ':'));
+SELECT account_save(NULL,'5690','Renter og bankgebyrer','E','', NULL, false,string_to_array('', ':'));
+SELECT account_save(NULL,'5700','Kontorudgifter','E','', NULL, false,string_to_array('AP_amount', ':'));
+SELECT account_save(NULL,'5760','Husleje','E','', NULL, false,string_to_array('AP_amount', ':'));
+SELECT account_save(NULL,'5765','Vedligeholdelse og reparation','E','', NULL, false,string_to_array('AP_amount', ':'));
+SELECT account_save(NULL,'5780','Telefon','E','', NULL, false,string_to_array('AP_amount', ':'));
+SELECT account_save(NULL,'5785','Rejser & reprÃsentation','E','', NULL, false,string_to_array('', ':'));
+SELECT account_save(NULL,'5790','El, vand, varme','E','', NULL, false,string_to_array('AP_amount', ':'));
+SELECT account_save(NULL,'5800','Licenser','E','', NULL, false,string_to_array('AP_amount', ':'));
+SELECT account_save(NULL,'5810','Foreign Exchange Loss','E','', NULL, false,string_to_array('', ':'));
+--
+insert into tax (chart_id,rate) values ((select id from chart where accno = '1210'),0.25);
+insert into tax (chart_id,rate) values ((select id from chart where accno = '2311'),0.25);
+--
+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', 'DKK');
+
+ INSERT INTO defaults (setting_key, value) VALUES ('weightunit', 'kg');
+--
+commit;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.