From d310fdd2b323c830c6e7caae82e39a98936352f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Schr=C3=B6pfer?= Date: Sun, 28 Feb 2021 11:04:15 +0100 Subject: [PATCH] #1 all ratings are maped --- cmd/conv/eCalc.json | 3145 ++++++++++++++++++++++++++++++++++ cmd/conv/main.go | 7 +- pkg/ecalc/ecalc.go | 104 +- pkg/loader/conf.go | 30 +- pkg/loader/conf/default.json | 45 +- pkg/loader/loader.go | 46 + 6 files changed, 3312 insertions(+), 65 deletions(-) create mode 100644 cmd/conv/eCalc.json diff --git a/cmd/conv/eCalc.json b/cmd/conv/eCalc.json new file mode 100644 index 0000000..356b30f --- /dev/null +++ b/cmd/conv/eCalc.json @@ -0,0 +1,3145 @@ +{ + "type": "", + "version": "", + "companyFacts": { + "totalPurchaseFromSuppliers": 10000, + "totalStaffCosts": 33333, + "profit": 500, + "financialCosts": 12, + "incomeFromFinancialInvestments": 23, + "additionsToFixedAssets": 55, + "turnover": 0, + "totalAssets": 44, + "financialAssetsAndCashBalance": 66, + "supplyFractions": [ + { + "industryCode": "Cc - Paper and forest products, also printed matter (C16, C17, C18)", + "countryCode": "ALB Albania", + "costs": 0 + }, + { + "industryCode": "D - Electric, Gas, Steam and Refrigeration", + "countryCode": "ATG Antigua and Barbuda", + "costs": 0 + }, + { + "industryCode": "Please choose", + "countryCode": "Please choose", + "costs": 0 + }, + { + "industryCode": "Please choose", + "countryCode": "Please choose", + "costs": 0 + }, + { + "industryCode": "Please choose", + "countryCode": "Please choose", + "costs": 0 + } + ], + "employeesFractions": [ + { + "countryCode": "ALB Albania", + "percentage": 0.01 + }, + { + "countryCode": "Please choose", + "percentage": 0.02 + }, + { + "countryCode": "AUT Austria", + "percentage": 0.03 + } + ], + "industrySectors": [ + { + "industryCode": "Cb - Textile production, clothing, leather and leather products (C13, C14, C15)", + "amountOfTotalTurnover": 0, + "description": "" + }, + { + "industryCode": "Please choose", + "amountOfTotalTurnover": 0, + "description": "" + }, + { + "industryCode": "Please choose", + "amountOfTotalTurnover": 0, + "description": "" + } + ], + "numberOfEmployees": 1234, + "hasCanteen": false, + "isB2B": false, + "averageJourneyToWorkForStaffInKm": 0, + "rating": { + "topics": [ + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "A1", + "name": "Human dignity in the supply chain", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "A1.1", + "name": "Working conditions and social impact in the supply chain", + "estimations": 1, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -177.77777777777797, + "shortName": "A1.2", + "name": "Negative aspect: violation of human dignity in the supply chain", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "A2", + "name": "Solidarity and social justice in the supply chain", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "A2.1", + "name": "Fair business practices towards direct suppliers", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "A2.2", + "name": "Exercising a positive influence on solidarity and social justice in the supply chain", + "estimations": 3, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -177.77777777777797, + "shortName": "A2.3", + "name": "Negative aspect: abuse of market power against suppliers", + "estimations": -10, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "A3", + "name": "Environmental sustainability in the supply chain", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "A3.1", + "name": "Environmental impact throughout the supply chain", + "estimations": 4, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -177.77777777777797, + "shortName": "A3.2", + "name": "Negative aspect: disproportionate environmental impact throughout the supply chain", + "estimations": -15, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "A4", + "name": "Transparency \u0026 co-determination in the supply chain", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "A4.1", + "name": "Transparency towards suppliers and their right to co-determination", + "estimations": 5, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "A4.2", + "name": "Positive influence on transparency and co-determination throughout the supply chain", + "estimations": 6, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 33.3333333333333, + "shortName": "B1", + "name": "Ethical position in relation to financial resources", + "estimations": 0, + "weight": 1.5, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 11.1111111111111, + "shortName": "B1.1", + "name": "Financial independence through equity financing", + "estimations": 7, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 11.1111111111111, + "shortName": "B1.2", + "name": "Common Good-orientated borrowing", + "estimations": 8, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 10, + "maxPoints": 11.1111111111111, + "shortName": "B1.3", + "name": "Ethical position of external financial partners", + "estimations": 9, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "B2", + "name": "Social position in relation to financial resources", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "B2.1", + "name": "Solidarity and Common Good-orientated use of funds", + "estimations": 1, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -88.8888888888889, + "shortName": "B2.2", + "name": "Negative aspect: unfair distribution of funds", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 10, + "maxPoints": 33.3333333333333, + "shortName": "B3", + "name": "Use of funds in relation to social and environmental impacts", + "estimations": 0, + "weight": 1.5, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 16.6666666666667, + "shortName": "B3.1", + "name": "Environmental quality of investments", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 5, + "maxPoints": 16.6666666666667, + "shortName": "B3.2", + "name": "Common Good-orientated investment", + "estimations": 3, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -133.333333333333, + "shortName": "B3.3", + "name": "Negative aspect: reliance on environmentally unsafe resources", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "B4", + "name": "Ownership and co-determination", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "B4.1", + "name": "Common Good-orientated ownership structure", + "estimations": 1, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -88.8888888888889, + "shortName": "B4.2", + "name": "Negative aspect: hostile takeover", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 88.8888888888889, + "shortName": "C1", + "name": "Human dignity in the workplace and working environment", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C1.1", + "name": "Employee-focused organisational culture", + "estimations": 1, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C1.2", + "name": "Health promotion and occupational health and safety", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C1.3", + "name": "Diversity and equal opportunities", + "estimations": 3, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -355.55555555555594, + "shortName": "C1.4", + "name": "Negative aspect: unfit working conditions", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 88.8888888888889, + "shortName": "C2", + "name": "Self-determined working arrangements", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C2.1", + "name": "Pay structure", + "estimations": 1, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C2.2", + "name": "Structuring working time", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C2.3", + "name": "Employment structure and work-life balance", + "estimations": 3, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -355.55555555555594, + "shortName": "C2.4", + "name": "Negative aspect: unfair employment contracts", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 88.8888888888889, + "shortName": "C3", + "name": "Environmentally-friendly behaviour of staff", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C3.1", + "name": "Food during working hours", + "estimations": 1, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C3.2", + "name": "Travel to work", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C3.3", + "name": "Organisational culture, cultivating awareness for an environmentally-friendly approach", + "estimations": 3, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -355.55555555555594, + "shortName": "C3.4", + "name": "Negative aspect: guidance on waste/ environmentally damaging practices", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 88.8888888888889, + "shortName": "C4", + "name": "Co-determination and transparency within the organisation", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C4.1", + "name": "Transparency within the organisation", + "estimations": 1, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C4.2", + "name": "Legitimation of the management", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C4.3", + "name": "Employee co-determination", + "estimations": 3, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -355.55555555555594, + "shortName": "C4.4", + "name": "Negative aspect: obstruction of works councils", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "D1", + "name": "Ethical customer relations", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D1.1", + "name": "Respect for human dignity in communication with customers", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D1.2", + "name": "Barrier-free access", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -177.77777777777797, + "shortName": "D1.3", + "name": "Negative aspect: unethical advertising", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "D2", + "name": "Cooperation and solidarity with other companies", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D2.1", + "name": "Cooperation with other companies", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D2.2", + "name": "Solidarity with other companies", + "estimations": 6, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -177.77777777777797, + "shortName": "D2.3", + "name": "Negative aspect: abuse of market power to the detriment of other companies", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "D3", + "name": "Impact on the environment of the use and disposal of products and services", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D3.1", + "name": "Environmental cost-benefit ration of products and services (efficiency and consistency)", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D3.2", + "name": "Moderate use of products and services (sufficiency)", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -177.77777777777797, + "shortName": "D3.3", + "name": "Negative aspect: wilful disregard of disproportionate environmental impacts", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "D4", + "name": "Customer participation and product transparency", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D4.1", + "name": "Customer participation, joint product development and market research", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D4.2", + "name": "Product transparency", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -177.77777777777797, + "shortName": "D4.2", + "name": "Negative aspect: non-disclosure of hazardous substances", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "E1", + "name": "Purpose of products and services and their effects on society", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E1.1", + "name": "Products and services should cover basic needs and contribute to a good life", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E1.2", + "name": "Social impact of products and services", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -177.77777777777797, + "shortName": "E1.3", + "name": "Negative aspect: unethical and unfit products and services", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "E2", + "name": "Contribution to the community", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E2.1", + "name": "Taxes and social security contributions", + "estimations": 1, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E2.2", + "name": "Voluntary contributions that strengthen society", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -177.77777777777797, + "shortName": "E2.3", + "name": "Negative aspect: inappropriate non-payment of tax", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -177.77777777777797, + "shortName": "E2.4", + "name": "Negative aspect: no anti-corruption policy", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "E3", + "name": "Reduction of environmental impact", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E3.1", + "name": "Absolute impact and management strategy", + "estimations": 3, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E3.2", + "name": "Relative impact", + "estimations": 4, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -177.77777777777797, + "shortName": "E3.3", + "name": "Negative aspect: infringement of environmental regulations and disproportionate environmental pollution", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "E4", + "name": "Social co-determination and transparency", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E4.1", + "name": "Transparency", + "estimations": 5, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E4.2", + "name": "Social participation", + "estimations": 6, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -177.77777777777797, + "shortName": "E4.3", + "name": "Negative aspect: lack of transparency and wilful misinformation", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + } + ] + } + } +} +aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "B4.1", + "name": "Common Good-orientated ownership structure", + "estimations": 1, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -88.8888888888889, + "shortName": "B4.2", + "name": "Negative aspect: hostile takeover", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "B4", + "name": "Ownership and co-determination", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "B4.1", + "name": "Common Good-orientated ownership structure", + "estimations": 1, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -88.8888888888889, + "shortName": "B4.2", + "name": "Negative aspect: hostile takeover", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 88.8888888888889, + "shortName": "C1", + "name": "Human dignity in the workplace and working environment", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null + }, + { + "points": 0, + "maxPoints": 88.8888888888889, + "shortName": "C1", + "name": "Human dignity in the workplace and working environment", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C1.1", + "name": "Employee-focused organisational culture", + "estimations": 1, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 88.8888888888889, + "shortName": "C1", + "name": "Human dignity in the workplace and working environment", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C1.1", + "name": "Employee-focused organisational culture", + "estimations": 1, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C1.2", + "name": "Health promotion and occupational health and safety", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 88.8888888888889, + "shortName": "C1", + "name": "Human dignity in the workplace and working environment", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C1.1", + "name": "Employee-focused organisational culture", + "estimations": 1, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C1.2", + "name": "Health promotion and occupational health and safety", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C1.3", + "name": "Diversity and equal opportunities", + "estimations": 3, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 88.8888888888889, + "shortName": "C1", + "name": "Human dignity in the workplace and working environment", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C1.1", + "name": "Employee-focused organisational culture", + "estimations": 1, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C1.2", + "name": "Health promotion and occupational health and safety", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C1.3", + "name": "Diversity and equal opportunities", + "estimations": 3, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -355.55555555555594, + "shortName": "C1.4", + "name": "Negative aspect: unfit working conditions", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 88.8888888888889, + "shortName": "C1", + "name": "Human dignity in the workplace and working environment", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C1.1", + "name": "Employee-focused organisational culture", + "estimations": 1, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C1.2", + "name": "Health promotion and occupational health and safety", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C1.3", + "name": "Diversity and equal opportunities", + "estimations": 3, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -355.55555555555594, + "shortName": "C1.4", + "name": "Negative aspect: unfit working conditions", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 88.8888888888889, + "shortName": "C2", + "name": "Self-determined working arrangements", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null + }, + { + "points": 0, + "maxPoints": 88.8888888888889, + "shortName": "C2", + "name": "Self-determined working arrangements", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C2.1", + "name": "Pay structure", + "estimations": 1, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 88.8888888888889, + "shortName": "C2", + "name": "Self-determined working arrangements", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C2.1", + "name": "Pay structure", + "estimations": 1, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C2.2", + "name": "Structuring working time", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 88.8888888888889, + "shortName": "C2", + "name": "Self-determined working arrangements", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C2.1", + "name": "Pay structure", + "estimations": 1, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C2.2", + "name": "Structuring working time", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C2.3", + "name": "Employment structure and work-life balance", + "estimations": 3, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 88.8888888888889, + "shortName": "C2", + "name": "Self-determined working arrangements", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C2.1", + "name": "Pay structure", + "estimations": 1, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C2.2", + "name": "Structuring working time", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C2.3", + "name": "Employment structure and work-life balance", + "estimations": 3, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -355.55555555555594, + "shortName": "C2.4", + "name": "Negative aspect: unfair employment contracts", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 88.8888888888889, + "shortName": "C2", + "name": "Self-determined working arrangements", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C2.1", + "name": "Pay structure", + "estimations": 1, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C2.2", + "name": "Structuring working time", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C2.3", + "name": "Employment structure and work-life balance", + "estimations": 3, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -355.55555555555594, + "shortName": "C2.4", + "name": "Negative aspect: unfair employment contracts", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 88.8888888888889, + "shortName": "C3", + "name": "Environmentally-friendly behaviour of staff", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null + }, + { + "points": 0, + "maxPoints": 88.8888888888889, + "shortName": "C3", + "name": "Environmentally-friendly behaviour of staff", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C3.1", + "name": "Food during working hours", + "estimations": 1, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 88.8888888888889, + "shortName": "C3", + "name": "Environmentally-friendly behaviour of staff", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C3.1", + "name": "Food during working hours", + "estimations": 1, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C3.2", + "name": "Travel to work", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 88.8888888888889, + "shortName": "C3", + "name": "Environmentally-friendly behaviour of staff", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C3.1", + "name": "Food during working hours", + "estimations": 1, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C3.2", + "name": "Travel to work", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C3.3", + "name": "Organisational culture, cultivating awareness for an environmentally-friendly approach", + "estimations": 3, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 88.8888888888889, + "shortName": "C3", + "name": "Environmentally-friendly behaviour of staff", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C3.1", + "name": "Food during working hours", + "estimations": 1, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C3.2", + "name": "Travel to work", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C3.3", + "name": "Organisational culture, cultivating awareness for an environmentally-friendly approach", + "estimations": 3, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -355.55555555555594, + "shortName": "C3.4", + "name": "Negative aspect: guidance on waste/ environmentally damaging practices", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 88.8888888888889, + "shortName": "C3", + "name": "Environmentally-friendly behaviour of staff", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C3.1", + "name": "Food during working hours", + "estimations": 1, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C3.2", + "name": "Travel to work", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C3.3", + "name": "Organisational culture, cultivating awareness for an environmentally-friendly approach", + "estimations": 3, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -355.55555555555594, + "shortName": "C3.4", + "name": "Negative aspect: guidance on waste/ environmentally damaging practices", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 88.8888888888889, + "shortName": "C4", + "name": "Co-determination and transparency within the organisation", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null + }, + { + "points": 0, + "maxPoints": 88.8888888888889, + "shortName": "C4", + "name": "Co-determination and transparency within the organisation", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C4.1", + "name": "Transparency within the organisation", + "estimations": 1, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 88.8888888888889, + "shortName": "C4", + "name": "Co-determination and transparency within the organisation", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C4.1", + "name": "Transparency within the organisation", + "estimations": 1, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C4.2", + "name": "Legitimation of the management", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 88.8888888888889, + "shortName": "C4", + "name": "Co-determination and transparency within the organisation", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C4.1", + "name": "Transparency within the organisation", + "estimations": 1, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C4.2", + "name": "Legitimation of the management", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C4.3", + "name": "Employee co-determination", + "estimations": 3, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 88.8888888888889, + "shortName": "C4", + "name": "Co-determination and transparency within the organisation", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C4.1", + "name": "Transparency within the organisation", + "estimations": 1, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C4.2", + "name": "Legitimation of the management", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C4.3", + "name": "Employee co-determination", + "estimations": 3, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -355.55555555555594, + "shortName": "C4.4", + "name": "Negative aspect: obstruction of works councils", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 88.8888888888889, + "shortName": "C4", + "name": "Co-determination and transparency within the organisation", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C4.1", + "name": "Transparency within the organisation", + "estimations": 1, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C4.2", + "name": "Legitimation of the management", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 29.6296296296296, + "shortName": "C4.3", + "name": "Employee co-determination", + "estimations": 3, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -355.55555555555594, + "shortName": "C4.4", + "name": "Negative aspect: obstruction of works councils", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "D1", + "name": "Ethical customer relations", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "D1", + "name": "Ethical customer relations", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D1.1", + "name": "Respect for human dignity in communication with customers", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "D1", + "name": "Ethical customer relations", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D1.1", + "name": "Respect for human dignity in communication with customers", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D1.2", + "name": "Barrier-free access", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "D1", + "name": "Ethical customer relations", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D1.1", + "name": "Respect for human dignity in communication with customers", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D1.2", + "name": "Barrier-free access", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -177.77777777777797, + "shortName": "D1.3", + "name": "Negative aspect: unethical advertising", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "D1", + "name": "Ethical customer relations", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D1.1", + "name": "Respect for human dignity in communication with customers", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D1.2", + "name": "Barrier-free access", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -177.77777777777797, + "shortName": "D1.3", + "name": "Negative aspect: unethical advertising", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "D2", + "name": "Cooperation and solidarity with other companies", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "D2", + "name": "Cooperation and solidarity with other companies", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D2.1", + "name": "Cooperation with other companies", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "D2", + "name": "Cooperation and solidarity with other companies", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D2.1", + "name": "Cooperation with other companies", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D2.2", + "name": "Solidarity with other companies", + "estimations": 6, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "D2", + "name": "Cooperation and solidarity with other companies", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D2.1", + "name": "Cooperation with other companies", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D2.2", + "name": "Solidarity with other companies", + "estimations": 6, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -177.77777777777797, + "shortName": "D2.3", + "name": "Negative aspect: abuse of market power to the detriment of other companies", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "D2", + "name": "Cooperation and solidarity with other companies", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D2.1", + "name": "Cooperation with other companies", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D2.2", + "name": "Solidarity with other companies", + "estimations": 6, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -177.77777777777797, + "shortName": "D2.3", + "name": "Negative aspect: abuse of market power to the detriment of other companies", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "D3", + "name": "Impact on the environment of the use and disposal of products and services", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "D3", + "name": "Impact on the environment of the use and disposal of products and services", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D3.1", + "name": "Environmental cost-benefit ration of products and services (efficiency and consistency)", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "D3", + "name": "Impact on the environment of the use and disposal of products and services", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D3.1", + "name": "Environmental cost-benefit ration of products and services (efficiency and consistency)", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D3.2", + "name": "Moderate use of products and services (sufficiency)", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "D3", + "name": "Impact on the environment of the use and disposal of products and services", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D3.1", + "name": "Environmental cost-benefit ration of products and services (efficiency and consistency)", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D3.2", + "name": "Moderate use of products and services (sufficiency)", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -177.77777777777797, + "shortName": "D3.3", + "name": "Negative aspect: wilful disregard of disproportionate environmental impacts", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "D3", + "name": "Impact on the environment of the use and disposal of products and services", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D3.1", + "name": "Environmental cost-benefit ration of products and services (efficiency and consistency)", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D3.2", + "name": "Moderate use of products and services (sufficiency)", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -177.77777777777797, + "shortName": "D3.3", + "name": "Negative aspect: wilful disregard of disproportionate environmental impacts", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "D4", + "name": "Customer participation and product transparency", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "D4", + "name": "Customer participation and product transparency", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D4.1", + "name": "Customer participation, joint product development and market research", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "D4", + "name": "Customer participation and product transparency", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D4.1", + "name": "Customer participation, joint product development and market research", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D4.2", + "name": "Product transparency", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "D4", + "name": "Customer participation and product transparency", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D4.1", + "name": "Customer participation, joint product development and market research", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D4.2", + "name": "Product transparency", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -177.77777777777797, + "shortName": "D4.2", + "name": "Negative aspect: non-disclosure of hazardous substances", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "D4", + "name": "Customer participation and product transparency", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D4.1", + "name": "Customer participation, joint product development and market research", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "D4.2", + "name": "Product transparency", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -177.77777777777797, + "shortName": "D4.2", + "name": "Negative aspect: non-disclosure of hazardous substances", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "E1", + "name": "Purpose of products and services and their effects on society", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "E1", + "name": "Purpose of products and services and their effects on society", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E1.1", + "name": "Products and services should cover basic needs and contribute to a good life", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "E1", + "name": "Purpose of products and services and their effects on society", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E1.1", + "name": "Products and services should cover basic needs and contribute to a good life", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E1.2", + "name": "Social impact of products and services", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "E1", + "name": "Purpose of products and services and their effects on society", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E1.1", + "name": "Products and services should cover basic needs and contribute to a good life", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E1.2", + "name": "Social impact of products and services", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -177.77777777777797, + "shortName": "E1.3", + "name": "Negative aspect: unethical and unfit products and services", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "E1", + "name": "Purpose of products and services and their effects on society", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E1.1", + "name": "Products and services should cover basic needs and contribute to a good life", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E1.2", + "name": "Social impact of products and services", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -177.77777777777797, + "shortName": "E1.3", + "name": "Negative aspect: unethical and unfit products and services", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "E2", + "name": "Contribution to the community", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "E2", + "name": "Contribution to the community", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E2.1", + "name": "Taxes and social security contributions", + "estimations": 1, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "E2", + "name": "Contribution to the community", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E2.1", + "name": "Taxes and social security contributions", + "estimations": 1, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E2.2", + "name": "Voluntary contributions that strengthen society", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "E2", + "name": "Contribution to the community", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E2.1", + "name": "Taxes and social security contributions", + "estimations": 1, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E2.2", + "name": "Voluntary contributions that strengthen society", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -177.77777777777797, + "shortName": "E2.3", + "name": "Negative aspect: inappropriate non-payment of tax", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "E2", + "name": "Contribution to the community", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E2.1", + "name": "Taxes and social security contributions", + "estimations": 1, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E2.2", + "name": "Voluntary contributions that strengthen society", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -177.77777777777797, + "shortName": "E2.3", + "name": "Negative aspect: inappropriate non-payment of tax", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -177.77777777777797, + "shortName": "E2.4", + "name": "Negative aspect: no anti-corruption policy", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "E2", + "name": "Contribution to the community", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E2.1", + "name": "Taxes and social security contributions", + "estimations": 1, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E2.2", + "name": "Voluntary contributions that strengthen society", + "estimations": 2, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -177.77777777777797, + "shortName": "E2.3", + "name": "Negative aspect: inappropriate non-payment of tax", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -177.77777777777797, + "shortName": "E2.4", + "name": "Negative aspect: no anti-corruption policy", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "E3", + "name": "Reduction of environmental impact", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "E3", + "name": "Reduction of environmental impact", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E3.1", + "name": "Absolute impact and management strategy", + "estimations": 3, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "E3", + "name": "Reduction of environmental impact", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E3.1", + "name": "Absolute impact and management strategy", + "estimations": 3, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E3.2", + "name": "Relative impact", + "estimations": 4, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "E3", + "name": "Reduction of environmental impact", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E3.1", + "name": "Absolute impact and management strategy", + "estimations": 3, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E3.2", + "name": "Relative impact", + "estimations": 4, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -177.77777777777797, + "shortName": "E3.3", + "name": "Negative aspect: infringement of environmental regulations and disproportionate environmental pollution", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "E3", + "name": "Reduction of environmental impact", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E3.1", + "name": "Absolute impact and management strategy", + "estimations": 3, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E3.2", + "name": "Relative impact", + "estimations": 4, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -177.77777777777797, + "shortName": "E3.3", + "name": "Negative aspect: infringement of environmental regulations and disproportionate environmental pollution", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "E4", + "name": "Social co-determination and transparency", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "E4", + "name": "Social co-determination and transparency", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E4.1", + "name": "Transparency", + "estimations": 5, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "E4", + "name": "Social co-determination and transparency", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E4.1", + "name": "Transparency", + "estimations": 5, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E4.2", + "name": "Social participation", + "estimations": 6, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + }, + { + "points": 0, + "maxPoints": 44.4444444444444, + "shortName": "E4", + "name": "Social co-determination and transparency", + "estimations": 0, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": [ + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E4.1", + "name": "Transparency", + "estimations": 5, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": 22.2222222222222, + "shortName": "E4.2", + "name": "Social participation", + "estimations": 6, + "weight": 1, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + }, + { + "points": 0, + "maxPoints": -177.77777777777797, + "shortName": "E4.3", + "name": "Negative aspect: lack of transparency and wilful misinformation", + "estimations": 0, + "weight": 0, + "isWeightSelectedByUser": false, + "aspects": null, + "isPositive": false + } + ] + } + ] + } + } +} diff --git a/cmd/conv/main.go b/cmd/conv/main.go index 6ea6478..c7cdb1b 100644 --- a/cmd/conv/main.go +++ b/cmd/conv/main.go @@ -19,5 +19,10 @@ func main() { } defer xf.Close() eBalance, err := loader.XLSX(xf, nil) - fmt.Printf("%s\n%#v", err, eBalance.CompanyFacts.IndustrySectors) + //fmt.Printf("%s\n%#v", err, eBalance.CompanyFacts.Rating.Topics[1]) + + out, err := os.OpenFile("eCalc.json", os.O_CREATE, 0777) + fmt.Println("createFileErr:", err) + eBalance.EncodeJSON(out) + out.Close() } diff --git a/pkg/ecalc/ecalc.go b/pkg/ecalc/ecalc.go index 612d72d..0a6928d 100644 --- a/pkg/ecalc/ecalc.go +++ b/pkg/ecalc/ecalc.go @@ -1,78 +1,90 @@ package ecalc +import ( + "encoding/json" + "io" +) + type Ecalc struct { ID int `json:"id,omitempty"` - Type string `json:"type,omitempty"` - Version string `json:"version,omitempty"` - CompanyFacts CompanyFacts `json:"companyFacts,omitempty"` + Type string `json:"type"` + Version string `json:"version"` + CompanyFacts CompanyFacts `json:"companyFacts"` +} + +// EncodeJSON writes the JSON of the conf into the Writer +func (e Ecalc) EncodeJSON(w io.Writer) error { + enc := json.NewEncoder(w) + enc.SetIndent("", " ") + return enc.Encode(e) } type CompanyFacts struct { ID int `json:"id,omitempty"` - TotalPurchaseFromSuppliers int `json:"totalPurchaseFromSuppliers,omitempty"` - TotalStaffCosts int `json:"totalStaffCosts,omitempty"` - Profit int `json:"profit,omitempty"` - FinancialCosts int `json:"financialCosts,omitempty"` - IncomeFromFinancialInvestments int `json:"incomeFromFinancialInvestments,omitempty"` - AdditionsToFixedAssets int `json:"additionsToFixedAssets,omitempty"` - Turnover int `json:"turnover,omitempty"` - TotalAssets int `json:"totalAssets,omitempty"` - FinancialAssetsAndCashBalance int `json:"financialAssetsAndCashBalance,omitempty"` - SupplyFractions []SupplyFraction `json:"supplyFractions,omitempty"` - EmployeesFractions []EmployeesFraction `json:"employeesFractions,omitempty"` - IndustrySectors []IndustrySector `json:"industrySectors,omitempty"` - NumberOfEmployees int `json:"numberOfEmployees,omitempty"` - HasCanteen bool `json:"hasCanteen,omitempty"` - IsB2B bool `json:"isB2B,omitempty"` - AverageJourneyToWorkForStaffInKm float64 `json:"averageJourneyToWorkForStaffInKm,omitempty"` - Rating Rating `json:"rating,omitempty"` + TotalPurchaseFromSuppliers int `json:"totalPurchaseFromSuppliers"` + TotalStaffCosts int `json:"totalStaffCosts"` + Profit int `json:"profit"` + FinancialCosts int `json:"financialCosts"` + IncomeFromFinancialInvestments int `json:"incomeFromFinancialInvestments"` + AdditionsToFixedAssets int `json:"additionsToFixedAssets"` + Turnover int `json:"turnover"` + TotalAssets int `json:"totalAssets"` + FinancialAssetsAndCashBalance int `json:"financialAssetsAndCashBalance"` + SupplyFractions []SupplyFraction `json:"supplyFractions"` + EmployeesFractions []EmployeesFraction `json:"employeesFractions"` + IndustrySectors []IndustrySector `json:"industrySectors"` + NumberOfEmployees int `json:"numberOfEmployees"` + HasCanteen bool `json:"hasCanteen"` + IsB2B bool `json:"isB2B"` + AverageJourneyToWorkForStaffInKm float64 `json:"averageJourneyToWorkForStaffInKm"` + Rating Rating `json:"rating"` } type SupplyFraction struct { ID int `json:"id,omitempty"` - IndustryCode string `json:"industryCode,omitempty"` - CountryCode string `json:"countryCode,omitempty"` - Costs int `json:"costs,omitempty"` + IndustryCode string `json:"industryCode"` + CountryCode string `json:"countryCode"` + Costs int `json:"costs"` } type EmployeesFraction struct { ID int `json:"id,omitempty"` - CountryCode string `json:"countryCode,omitempty"` - Percentage float64 `json:"percentage,omitempty"` + CountryCode string `json:"countryCode"` + Percentage float64 `json:"percentage"` } type IndustrySector struct { ID int `json:"id,omitempty"` - IndustryCode string `json:"industryCode,omitempty"` - AmountOfTotalTurnover int `json:"amountOfTotalTurnover,omitempty"` - Description string `json:"description,omitempty"` + IndustryCode string `json:"industryCode"` + AmountOfTotalTurnover int `json:"amountOfTotalTurnover"` + Description string `json:"description"` } type Rating struct { - Topics []Topic `json:"topics,omitempty"` + Topics []Topic `json:"topics"` } type Topic struct { - Points int `json:"points,omitempty"` - MaxPoints float64 `json:"maxPoints,omitempty"` + Points int `json:"points"` + MaxPoints float64 `json:"maxPoints"` ID int `json:"id,omitempty"` - ShortName string `json:"shortName,omitempty"` - Name string `json:"name,omitempty"` - Estimations int `json:"estimations,omitempty"` - Weight float64 `json:"weight,omitempty"` - IsWeightSelectedByUser bool `json:"isWeightSelectedByUser,omitempty"` - Aspects []Aspect `json:"aspects,omitempty"` + ShortName string `json:"shortName"` + Name string `json:"name"` + Estimations int `json:"estimations"` + Weight float64 `json:"weight"` + IsWeightSelectedByUser bool `json:"isWeightSelectedByUser"` + Aspects []Aspect `json:"aspects"` } type Aspect struct { - Points int `json:"points,omitempty"` - MaxPoints float64 `json:"maxPoints,omitempty"` + Points int `json:"points"` + MaxPoints float64 `json:"maxPoints"` ID int `json:"id,omitempty"` - ShortName string `json:"shortName,omitempty"` - Name string `json:"name,omitempty"` - Estimations int `json:"estimations,omitempty"` - Weight float64 `json:"weight,omitempty"` - IsWeightSelectedByUser bool `json:"isWeightSelectedByUser,omitempty"` - Aspects []Aspect `json:"aspects,omitempty"` - IsPositive bool `json:"isPositive,omitempty"` + ShortName string `json:"shortName"` + Name string `json:"name"` + Estimations int `json:"estimations"` + Weight float64 `json:"weight"` + IsWeightSelectedByUser bool `json:"isWeightSelectedByUser"` + Aspects []Aspect `json:"aspects"` + IsPositive bool `json:"isPositive"` } diff --git a/pkg/loader/conf.go b/pkg/loader/conf.go index 5cdeab5..0f83a01 100644 --- a/pkg/loader/conf.go +++ b/pkg/loader/conf.go @@ -81,15 +81,23 @@ type AreaCol struct { // The cols must be defined by the letter of the col // for example "A" for the first col type Rating struct { - Sheet int `json:"sheet"` - StartRow int `json:"start_row"` - EndRow int `json:"end_row"` - PointsCol string `json:"points_col"` - MaxPointsCol string `json:"max_points_col"` - IDCol string `json:"id_col"` - ShortNameCol string `json:"short_name_col"` - NameCol string `json:"name_col"` - EstimationsCol string `json:"estimations_col"` - WeightCol string `json:"weight_col"` - SelectedByUserCol string `json:"selected_by_user_col"` + Sheet int `json:"sheet"` + StartRow int `json:"start_row"` + EndRow int `json:"end_row"` + Cols []RatingCol `json:"cols"` + PointsCol string `json:"points_col"` + MaxPointsCol string `json:"max_points_col"` + IDCol string `json:"id_col"` + ShortNameCol string `json:"short_name_col"` + NameCol string `json:"name_col"` + EstimationsCol string `json:"estimations_col"` + WeightCol string `json:"weight_col"` + SelectedByUserCol string `json:"selected_by_user_col"` +} + +type RatingCol struct { + Col string `json:"col"` + Field string `json:"field"` + Type string `json:"type"` + Default string `json:"default"` } diff --git a/pkg/loader/conf/default.json b/pkg/loader/conf/default.json index 6184fe6..f647536 100644 --- a/pkg/loader/conf/default.json +++ b/pkg/loader/conf/default.json @@ -185,14 +185,45 @@ "sheet": 3, "start_row": 9, "end_row": 93, - "points_col": "I", - "max_points_col": "J", - "id_col": "", "short_name_col": "B", - "name_col": "C", - "estimations_col": "H", - "weight_col": "D", - "selected_by_user_col": "N" + "cols": [ + { + "col": "I", + "field": "Points", + "type": "int", + "default": "" + }, + { + "col": "J", + "field": "MaxPoints", + "type": "float64", + "default": "" + }, + { + "col": "C", + "field": "Name", + "type": "int", + "default": "" + }, + { + "col": "H", + "field": "Estimations", + "type": "int", + "default": "" + }, + { + "col": "D", + "field": "Weight", + "type": "float64", + "default": "" + }, + { + "col": "N", + "field": "IsWeightSelectedByUser", + "type": "bool", + "default": "" + } + ] } } \ No newline at end of file diff --git a/pkg/loader/loader.go b/pkg/loader/loader.go index 4470237..0a35848 100644 --- a/pkg/loader/loader.go +++ b/pkg/loader/loader.go @@ -94,6 +94,52 @@ func XLSX(r io.Reader, conf *Conf) (*ecalc.Ecalc, error) { } } + var topic ecalc.Topic + for r := conf.Rating.StartRow; r <= conf.Rating.EndRow; r++ { + shortName, err := xFile.GetCellValue( + xFile.GetSheetName(conf.Rating.Sheet), + fmt.Sprintf("%s%d", conf.Rating.ShortNameCol, r), + ) + if err != nil { + errs = append(errs, err) + } + if len(shortName) < 2 { + continue + } else if len(shortName) == 2 { + if topic.ShortName != "" { + eBalance.CompanyFacts.Rating.Topics = append(eBalance.CompanyFacts.Rating.Topics, topic) + } + topic = ecalc.Topic{ + ShortName: shortName, + } + for _, c := range conf.Rating.Cols { + cellValue, err := xFile.GetCellValue( + xFile.GetSheetName(conf.Rating.Sheet), + fmt.Sprintf("%s%d", c.Col, r), + ) + if err != nil { + errs = append(errs, err) + } + set.Field(&topic, c.Field, cellValue) + } + } else { + aspect := ecalc.Aspect{ + ShortName: shortName, + } + for _, c := range conf.Rating.Cols { + cellValue, err := xFile.GetCellValue( + xFile.GetSheetName(conf.Rating.Sheet), + fmt.Sprintf("%s%d", c.Col, r), + ) + if err != nil { + errs = append(errs, err) + } + set.Field(&aspect, c.Field, cellValue) + } + topic.Aspects = append(topic.Aspects, aspect) + } + } + eBalance.CompanyFacts.Rating.Topics = append(eBalance.CompanyFacts.Rating.Topics, topic) // TODO: error handling of errs return eBalance, nil }