epic-ts
[kivitendo-erp.git] / sql / mebil.sql
1 -- Table of mebil extensions
2 -- for module 
3 -- Lx office
4 DROP TABLE IF EXISTS mebil_mapping;
5 CREATE TABLE mebil_mapping (
6         id                      SERIAL PRIMARY KEY,
7         ordering        INTEGER NOT NULL,
8         typ                     CHAR NOT NULL,
9         fromacc         VARCHAR(200) NOT NULL,
10         toacc           VARCHAR(200) NOT NULL
11 );
12 INSERT INTO mebil_mapping (ordering,typ,fromacc,toacc)
13 VALUES
14         (10,'S','0483','bs.ass.fixAss.tan.machinery.gwgsammelposten'),
15         (10,'S','0484','bs.ass.fixAss.tan.machinery.gwgsammelposten'),
16         (20,'X','bs.ass.fixAss.tan.machinery.gwgsammelposten','bs.ass.fixAss.tan.machinery'),
17         (21,'X','bs.ass.fixAss.tan.machinery','bs.ass.fixAss.tan'),
18         (22,'X','bs.ass.fixAss.tan','bs.ass.fixAss'),
19         (50,'X','bs.ass.fixAss','bs.ass'),
20
21    (10,'S','1200','bs.ass.currAss.cashEquiv.bank'),
22    (20,'X','bs.ass.currAss.cashEquiv.bank','bs.ass.currAss.cashEquiv'),
23    (21,'X','bs.ass.currAss.cashEquiv.bank','bs.ass.currAss'),
24
25         (10,'S','3980','bs.ass.currAss.inventory.finishedAndMerch.merchandise.new'),
26         (20,'X','bs.ass.currAss.inventory.finishedAndMerch.merchandise.new','bs.ass.currAss.inventory.finishedAndMerch.merchandise'),
27         (21,'X','bs.ass.currAss.inventory.finishedAndMerch.merchandise','bs.ass.currAss.inventory.finishedAndMerch'),
28         (22,'X','bs.ass.currAss.inventory.finishedAndMerch','bs.ass.currAss.inventory'),
29         (23,'X','bs.ass.currAss.inventory','bs.ass.currAss'),
30
31         (10,'S','1400','bs.ass.currAss.receiv.trade'),
32         (20,'X','bs.ass.currAss.receiv.trade','bs.ass.currAss.receiv'),
33
34         (10,'S','1575','bs.ass.currAss.receiv.other.vat'),
35         (10,'S','1576','bs.ass.currAss.receiv.other.vat'),
36         (10,'S','1579','bs.ass.currAss.receiv.other.vat'),
37         (10,'S','1780','bs.ass.currAss.receiv.other.vat'),
38         (20,'X','bs.ass.currAss.receiv.other.vat','bs.ass.currAss.receiv.other'),
39         (21,'X','bs.ass.currAss.receiv.other','bs.ass.currAss.receiv'),
40         (30,'X','bs.ass.currAss.receiv','bs.ass.currAss'),
41
42         (50,'X','bs.ass.currAss','bs.ass'),
43         
44         (10,'H','0800','bs.eqLiab.equity.subscribed.corp'),
45         (20,'X',       'bs.eqLiab.equity.subscribed.corp','bs.eqLiab.equity.subscribed'),
46         (40,'X',       'bs.eqLiab.equity.subscribed',     'bs.eqLiab.equity'),
47         (10,'H','0810','bs.eqLiab.equity.capRes'),
48         (20,'X',       'bs.eqLiab.equity.capRes',         'bs.eqLiab.equity'),
49         (50,'X',       'bs.eqLiab.equity',                'bs.eqLiab'),
50         (10,'H','0970','bs.eqLiab.accruals.other.upTo1year'),
51         (20,'X',       'bs.eqLiab.accruals.other.upTo1year','bs.eqLiab.accruals.other'),
52         (21,'X',       'bs.eqLiab.accruals.other','bs.eqLiab.accruals'),
53         (50,'X',       'bs.eqLiab.accruals','bs.eqLiab'),
54         (10,'H','1775','bs.eqLiab.liab.other.theroffTax.vat'),
55         (10,'H','1776','bs.eqLiab.liab.other.theroffTax.vat'),
56         (20,'X',       'bs.eqLiab.liab.other.theroffTax.vat','bs.eqLiab.liab.other.theroffTax'),
57         (10,'H','1651','bs.eqLiab.liab.other.theroffTax.operatingTaxes'),
58         (10,'H','1652','bs.eqLiab.liab.other.theroffTax.operatingTaxes'),
59         (10,'H','1653','bs.eqLiab.liab.other.theroffTax.operatingTaxes'),
60         (20,'X',       'bs.eqLiab.liab.other.theroffTax.operatingTaxes','bs.eqLiab.liab.other.theroffTax'),
61         (21,'X',       'bs.eqLiab.liab.other.theroffTax','bs.eqLiab.liab.other'),
62         (10,'H','1606','bs.eqLiab.liab.other.profitPartLoans'),
63         (20,'X',       'bs.eqLiab.liab.other.profitPartLoans','bs.eqLiab.liab.other'),
64         (22,'X',       'bs.eqLiab.liab.other','bs.eqLiab.liab'),
65         (50,'X',       'bs.eqLiab.liab','bs.eqLiab'),
66         
67         (10,'S','4121','is.netIncome.regular.operatingTC.staff.salaries.managerPartner'),
68         (20,'X'       ,'is.netIncome.regular.operatingTC.staff.salaries.managerPartner','is.netIncome.regular.operatingTC.staff.salaries'),
69         (21,'X'       ,'is.netIncome.regular.operatingTC.staff.salaries','ismi.netIncome.staff'),
70         (50,'Y'       ,'ismi.netIncome.staff','ismi.netIncome'),
71         (10,'S','3960','is.netIncome.regular.operatingTC.grossTradingProfit.materialServices.material.purchased.generalRateVAT'),
72         (20,'X',       'is.netIncome.regular.operatingTC.grossTradingProfit.materialServices.material.purchased.generalRateVAT','is.netIncome.regular.operatingTC.grossTradingProfit.materialServices.material.purchased'),
73         (21,'X',       'is.netIncome.regular.operatingTC.grossTradingProfit.materialServices.material.purchased','is.netIncome.regular.operatingTC.grossTradingProfit.materialServices.material'),
74         (22,'X',       'is.netIncome.regular.operatingTC.grossTradingProfit.materialServices.material','ismi.netIncome.materialServices'),
75         (50,'Y',       'ismi.netIncome.materialServices','ismi.netIncome')
76         
77         ;