@@ -120,6 +120,8 @@ export class MainComponent implements OnInit {
120120 private averageTaxRateString : String = '' ;
121121 private socialCotisationsString : String = '' ;
122122 private specialSocialCotisationString : String = '' ;
123+ private groupInsurancePersonalContributionString : String = '' ;
124+ private companyCarPersonalContributionString : String = '' ;
123125 private professionalWithholdingTaxString : String = '' ;
124126
125127 formatAmount = this . formattingService . formatAmount ;
@@ -190,9 +192,11 @@ export class MainComponent implements OnInit {
190192 netIncome : this . translocoService . selectTranslate ( 'net_income' ) . pipe ( take ( 1 ) ) ,
191193 relativeNetIncrease : this . translocoService . selectTranslate ( 'relative_net_increase' ) . pipe ( take ( 1 ) ) ,
192194 averageTaxRate : this . translocoService . selectTranslate ( 'average_tax_rate' ) . pipe ( take ( 1 ) ) ,
193- socialCotisationsString : this . translocoService . selectTranslate ( 'personal_social_contributions' ) . pipe ( take ( 1 ) ) ,
194- specialSocialCotisationString : this . translocoService . selectTranslate ( 'special_social_cotisations' ) . pipe ( take ( 1 ) ) ,
195- professionalWithholdingTaxString : this . translocoService . selectTranslate ( 'professional_withholding_tax' ) . pipe ( take ( 1 ) ) ,
195+ socialCotisations : this . translocoService . selectTranslate ( 'personal_social_contributions' ) . pipe ( take ( 1 ) ) ,
196+ specialSocialCotisation : this . translocoService . selectTranslate ( 'special_social_cotisations' ) . pipe ( take ( 1 ) ) ,
197+ professionalWithholdingTax : this . translocoService . selectTranslate ( 'professional_withholding_tax' ) . pipe ( take ( 1 ) ) ,
198+ groupInsurancePersonalContribution : this . translocoService . selectTranslate ( 'group_insurance_personal_contribution' ) . pipe ( take ( 1 ) ) ,
199+ companyCarPersonalContribution : this . translocoService . selectTranslate ( 'other_net_income' ) . pipe ( take ( 1 ) ) ,
196200 } ) . subscribe ( translations => {
197201 this . grossSalaryString = translations . grossSalary ;
198202 this . doubleHolidayPayString = translations . doubleHolidayPay ;
@@ -202,9 +206,11 @@ export class MainComponent implements OnInit {
202206 this . netIncomeString = translations . netIncome ;
203207 this . relativeNetIncreaseString = translations . relativeNetIncrease ;
204208 this . averageTaxRateString = translations . averageTaxRate ;
205- this . socialCotisationsString = translations . socialCotisationsString ;
206- this . specialSocialCotisationString = translations . specialSocialCotisationString ;
207- this . professionalWithholdingTaxString = translations . professionalWithholdingTaxString ;
209+ this . socialCotisationsString = translations . socialCotisations ;
210+ this . specialSocialCotisationString = translations . specialSocialCotisation ;
211+ this . professionalWithholdingTaxString = translations . professionalWithholdingTax ;
212+ this . groupInsurancePersonalContributionString = translations . groupInsurancePersonalContribution ;
213+ this . companyCarPersonalContributionString = translations . companyCarPersonalContribution ;
208214
209215 this . updateChartData ( ) ;
210216 this . loading = false ; ;
@@ -309,6 +315,14 @@ export class MainComponent implements OnInit {
309315 this . sankeyData . push ( { source : this . grossSalaryString , target : this . specialSocialCotisationString , value : this . result . specialSocialCotisations } ) ;
310316 }
311317
318+ if ( this . result . groupInsurancePersonalContribution ) {
319+ this . sankeyData . push ( { source : this . grossSalaryString , target : this . groupInsurancePersonalContributionString , value : this . result . groupInsurancePersonalContribution } ) ;
320+ }
321+
322+ if ( this . result . companyCarPersonalContribution ) {
323+ this . sankeyData . push ( { source : this . grossSalaryString , target : this . companyCarPersonalContributionString , value : this . result . groupInsurancePersonalContribution } ) ;
324+ }
325+
312326 if ( this . result . otherNetIncome ) {
313327 this . sankeyData . push ( { source : this . otherNetIncomeString , target : this . netIncomeString , value : this . result . otherNetIncome } ) ;
314328 }
0 commit comments