-- Table of mebil extensions
-- for module 
-- Lx office
DROP TABLE IF EXISTS mebil_mapping;
CREATE TABLE mebil_mapping (
	id 			SERIAL PRIMARY KEY,
	ordering 	INTEGER NOT NULL,
	typ			CHAR NOT NULL,
	fromacc 	VARCHAR(200) NOT NULL,
	toacc		VARCHAR(200) NOT NULL
);
INSERT INTO mebil_mapping (ordering,typ,fromacc,toacc)
VALUES
	(10,'S','0483','bs.ass.fixAss.tan.machinery.gwgsammelposten'),
	(10,'S','0484','bs.ass.fixAss.tan.machinery.gwgsammelposten'),
	(20,'X','bs.ass.fixAss.tan.machinery.gwgsammelposten','bs.ass.fixAss.tan.machinery'),
	(21,'X','bs.ass.fixAss.tan.machinery','bs.ass.fixAss.tan'),
	(22,'X','bs.ass.fixAss.tan','bs.ass.fixAss'),
	(50,'X','bs.ass.fixAss','bs.ass'),

   (10,'S','1200','bs.ass.currAss.cashEquiv.bank'),
   (20,'X','bs.ass.currAss.cashEquiv.bank','bs.ass.currAss.cashEquiv'),
   (21,'X','bs.ass.currAss.cashEquiv.bank','bs.ass.currAss'),

	(10,'S','3980','bs.ass.currAss.inventory.finishedAndMerch.merchandise.new'),
	(20,'X','bs.ass.currAss.inventory.finishedAndMerch.merchandise.new','bs.ass.currAss.inventory.finishedAndMerch.merchandise'),
	(21,'X','bs.ass.currAss.inventory.finishedAndMerch.merchandise','bs.ass.currAss.inventory.finishedAndMerch'),
	(22,'X','bs.ass.currAss.inventory.finishedAndMerch','bs.ass.currAss.inventory'),
	(23,'X','bs.ass.currAss.inventory','bs.ass.currAss'),

	(10,'S','1400','bs.ass.currAss.receiv.trade'),
	(20,'X','bs.ass.currAss.receiv.trade','bs.ass.currAss.receiv'),

	(10,'S','1575','bs.ass.currAss.receiv.other.vat'),
	(10,'S','1576','bs.ass.currAss.receiv.other.vat'),
	(10,'S','1579','bs.ass.currAss.receiv.other.vat'),
	(10,'S','1780','bs.ass.currAss.receiv.other.vat'),
	(20,'X','bs.ass.currAss.receiv.other.vat','bs.ass.currAss.receiv.other'),
	(21,'X','bs.ass.currAss.receiv.other','bs.ass.currAss.receiv'),
	(30,'X','bs.ass.currAss.receiv','bs.ass.currAss'),

	(50,'X','bs.ass.currAss','bs.ass'),
	
	(10,'H','0800','bs.eqLiab.equity.subscribed.corp'),
	(20,'X',       'bs.eqLiab.equity.subscribed.corp','bs.eqLiab.equity.subscribed'),
	(40,'X',       'bs.eqLiab.equity.subscribed',     'bs.eqLiab.equity'),
	(10,'H','0810','bs.eqLiab.equity.capRes'),
	(20,'X',       'bs.eqLiab.equity.capRes',         'bs.eqLiab.equity'),
	(50,'X',       'bs.eqLiab.equity',                'bs.eqLiab'),
	(10,'H','0970','bs.eqLiab.accruals.other.upTo1year'),
	(20,'X',       'bs.eqLiab.accruals.other.upTo1year','bs.eqLiab.accruals.other'),
	(21,'X',       'bs.eqLiab.accruals.other','bs.eqLiab.accruals'),
	(50,'X',       'bs.eqLiab.accruals','bs.eqLiab'),
	(10,'H','1775','bs.eqLiab.liab.other.theroffTax.vat'),
	(10,'H','1776','bs.eqLiab.liab.other.theroffTax.vat'),
	(20,'X',       'bs.eqLiab.liab.other.theroffTax.vat','bs.eqLiab.liab.other.theroffTax'),
	(10,'H','1651','bs.eqLiab.liab.other.theroffTax.operatingTaxes'),
	(10,'H','1652','bs.eqLiab.liab.other.theroffTax.operatingTaxes'),
	(10,'H','1653','bs.eqLiab.liab.other.theroffTax.operatingTaxes'),
	(20,'X',       'bs.eqLiab.liab.other.theroffTax.operatingTaxes','bs.eqLiab.liab.other.theroffTax'),
	(21,'X',       'bs.eqLiab.liab.other.theroffTax','bs.eqLiab.liab.other'),
	(10,'H','1606','bs.eqLiab.liab.other.profitPartLoans'),
	(20,'X',       'bs.eqLiab.liab.other.profitPartLoans','bs.eqLiab.liab.other'),
	(22,'X',       'bs.eqLiab.liab.other','bs.eqLiab.liab'),
	(50,'X',       'bs.eqLiab.liab','bs.eqLiab'),
	
	(10,'S','4121','is.netIncome.regular.operatingTC.staff.salaries.managerPartner'),
	(20,'X'       ,'is.netIncome.regular.operatingTC.staff.salaries.managerPartner','is.netIncome.regular.operatingTC.staff.salaries'),
	(21,'X'       ,'is.netIncome.regular.operatingTC.staff.salaries','ismi.netIncome.staff'),
	(50,'Y'       ,'ismi.netIncome.staff','ismi.netIncome'),
	(10,'S','3960','is.netIncome.regular.operatingTC.grossTradingProfit.materialServices.material.purchased.generalRateVAT'),
	(20,'X',       'is.netIncome.regular.operatingTC.grossTradingProfit.materialServices.material.purchased.generalRateVAT','is.netIncome.regular.operatingTC.grossTradingProfit.materialServices.material.purchased'),
	(21,'X',       'is.netIncome.regular.operatingTC.grossTradingProfit.materialServices.material.purchased','is.netIncome.regular.operatingTC.grossTradingProfit.materialServices.material'),
	(22,'X',       'is.netIncome.regular.operatingTC.grossTradingProfit.materialServices.material','ismi.netIncome.materialServices'),
	(50,'Y',       'ismi.netIncome.materialServices','ismi.netIncome'),
	
	(0,'C','de-gaap-ci.bsAss','hbst.transfer.bsAss.name')
	;

