This repository has been archived by the owner on Jun 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from johanngoltz/dev/michael
Dev/michael
- Loading branch information
Showing
25 changed files
with
372 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
export let paramData = { | ||
revenue: { displayName: 'Umsatzerlöse', showOnCalculation: true }, | ||
additionalIncome: { displayName: 'Sonstige Erlöse', showOnCalculation: true }, | ||
costOfMaterial: { displayName: 'Materialkosten', showOnCalculation: true }, | ||
costOfStaff: { displayName: 'Personalkosten', showOnCalculation: true }, | ||
additionalCosts: { displayName: 'Sonstige Kosten', showOnCalculation: true }, | ||
investments: { displayName: 'Investitionen', showOnCalculation: true }, | ||
divestments: { displayName: 'Desinvestitionen', showOnCalculation: true }, | ||
freeCashFlows: { displayName: 'Free Cash Flow', showOnCalculation: false }, | ||
liabilities: { displayName: 'Fremdkapital', shiftDeterministic: true }, | ||
export abstract class AccountingDataParams { | ||
revenue: { displayName: 'Umsatzerlöse', showOnCalculation: true }; | ||
additionalIncome: { displayName: 'Sonstige Erlöse', showOnCalculation: true }; | ||
costOfMaterial: { displayName: 'Materialkosten', showOnCalculation: true }; | ||
costOfStaff: { displayName: 'Personalkosten', showOnCalculation: true }; | ||
additionalCosts: { displayName: 'Sonstige Kosten', showOnCalculation: true }; | ||
investments: { displayName: 'Investitionen', showOnCalculation: true }; | ||
divestments: { displayName: 'Desinvestitionen', showOnCalculation: true }; | ||
freeCashFlows: { displayName: 'Free Cash Flow', showOnCalculation: false }; | ||
liabilities: { displayName: 'Fremdkapital', showOnCalculation: undefined, shiftDeterministic: true }; | ||
} | ||
|
||
export const environmentParams = { | ||
equityInterestRate: {}, | ||
interestOnLiabilitiesRate: {}, | ||
businessTaxRate: {}, | ||
corporateTaxRate: {}, | ||
solidaryTaxRate: {}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<mat-nav-list> | ||
<h3 matSubheader>Dateiformat wählen</h3> | ||
<!--<a [href]="csvBlobUrl" download="scenario.csv" mat-list-item> | ||
<div class="title" matLine>.csv (Comma seperated value)</div> | ||
</a>--> | ||
<a [href]="jsonBlobUrl" download="scenario.json" mat-list-item> | ||
<div class="title" matLine>.json (JavaScript Object notation)</div> | ||
<div class="description" matLine>kann später wieder importiert werden.</div> | ||
</a> | ||
</mat-nav-list> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { ExportScenarioComponent } from './export-scenario.component'; | ||
import { MaterialModule } from '../material.module'; | ||
import { MatBottomSheetRef, MAT_BOTTOM_SHEET_DATA } from '@angular/material'; | ||
import { Scenario } from '../api/scenario'; | ||
|
||
describe('ExportScenarioComponent', () => { | ||
let component: ExportScenarioComponent; | ||
let fixture: ComponentFixture<ExportScenarioComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ExportScenarioComponent], | ||
imports: [MaterialModule], | ||
providers: [ | ||
{ provide: MatBottomSheetRef, useValue: { dismiss() { } } }, | ||
{ | ||
provide: MAT_BOTTOM_SHEET_DATA, | ||
useValue: { | ||
scenario: | ||
{ | ||
name: 'Eins', | ||
description: 'Eine Beschreibung', | ||
} as Scenario, | ||
}, | ||
}, | ||
], | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(ExportScenarioComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
Oops, something went wrong.