From 5a911436e0a27f29ed601310114c44e9487e74c6 Mon Sep 17 00:00:00 2001 From: Artur Date: Tue, 5 Nov 2024 19:44:48 +0100 Subject: [PATCH] New version of depreciations --- .../asset-calculator.component.html | 227 +++++++++--------- 1 file changed, 118 insertions(+), 109 deletions(-) diff --git a/src/app/asset-calculator/asset-calculator.component.html b/src/app/asset-calculator/asset-calculator.component.html index 46e9ce0..ad7f152 100644 --- a/src/app/asset-calculator/asset-calculator.component.html +++ b/src/app/asset-calculator/asset-calculator.component.html @@ -1,121 +1,123 @@ -
+
-
Kalkulator amortyzacyjny
+
Kalkulator amortyzacyjny
-
-
-
-
- -
-
- - - @if(assetsDepreciationFormGroup.get('initialValueSet')?.invalid && assetsDepreciationFormGroup.get('initialValueSet')?.touched){ -
Wartość niepoprawna!. Podaj kwotę w zł np 3000.05 (czyli 3000 zł i 5 gr)
- }@else{ - } - -
-
+
+
+
Środek trwały
+ +
+
+ +
+
+ + + @if(assetsDepreciationFormGroup.get('initialValueSet')?.invalid && assetsDepreciationFormGroup.get('initialValueSet')?.touched){ +
Wartość niepoprawna!. Podaj kwotę w zł np 3000.05 (czyli 3000 zł i 5 gr)
+ }@else{ + } + +
+
-
-
- -
-
- -
-
- -
-
- -
-
- -
-
- - +
+
+ +
+
+ +
+
+ +
-
+
+
+ +
+
+ + +
-
-
-
-
- -
-
- @if( TypeDepreciation.digressive === assetsDepreciationFormGroup.get( 'typeDepreciation' )?.value ) { -
-
- +
+
+
- +
- } - - - - -
-
- + @if( TypeDepreciation.digressive === assetsDepreciationFormGroup.get( 'typeDepreciation' )?.value ) { +
+
+ +
+
+ +
+
+ } + +
+ +
+ +
+ @if( lifeFormArray.controls.length > 0 ){ -
-
-
Zmiany wartości
+
+
+
Zmiany wartości
+
+
+ + + + + + + + + + + @for( changeGroup of lifeFormArray.controls; track $index ) { + + + + + + } + +
LpMiesiącZmiana
{{$index+1}} +
+
-
- + } + + +
+

Plan amortyzacji

+
+
+
- - - - - - - - @for( changeGroup of lifeFormArray.controls; track $index ) { - - - - - - } - -
LpMiesiącZmiana
{{$index+1}} -
-
-
- } -
-
-
Plan amortyzacji
-
-
- - - - - + + + @@ -123,23 +125,30 @@ @for (position of amortizations.positions; track $index) { - - + + @if( 12 == position.when.month || $index == amortizations.positions.length-1){ - - - - + + + + + + + + + + + } }
LpRok
LpRok Miesiąc Kwota odpisu Lączny odpis
{{$index+1}}
{{$index+1}} {{ position.when.year }} {{ position.when.month }} {{ position.calculatedDepreciation | number:'1.2-2' }} {{ position.sum | number:'1.2-2' }}
- -
-
Łącznie w roku {{position.when.year}} odpis : {{ position.sumThisYear| number:'1.2-2' }}
-
-
+ +
+
Łącznie w roku {{position.when.year}} odpis : {{ position.sumThisYear| number:'1.2-2' }}
+
+
LpRokMiesiącKwota odpisuLączny odpis