Skip to content
Snippets Groups Projects
Commit c03c4b09 authored by Dorine Lambinet's avatar Dorine Lambinet
Browse files

Merge branch 'fix-ui-panneau-revalo-et-label-reference-v2' into 'master'

Changements oubliés branche V1

See merge request !298
parents 7e128a62 497be68d
No related branches found
No related tags found
1 merge request!298Changements oubliés branche V1
Pipeline #19441 passed
......@@ -54,32 +54,55 @@
</script>
<button
class="flex w-full items-center rounded-md border-2 border-white bg-white px-2 py-1 pr-4 text-sm text-le-gris-dispositif-dark shadow-md transition-all duration-500 ease-out-back hover:border-2 hover:border-le-gris-dispositif"
class=" flex w-full items-center rounded-md border-2 border-white bg-white px-2 py-0.5 pr-4 text-sm text-le-gris-dispositif-dark shadow-md transition-all duration-500 ease-out-back hover:border-2 hover:border-le-gris-dispositif"
onclick={bubble("click")}
>
<iconify-icon class="mr-2 align-[-0.2rem] text-2xl" icon="ri-question-line"
<iconify-icon class="mr-2 align-[-0.2rem] text-xl" icon="ri-question-line"
></iconify-icon>
<p class="text-left font-bold tracking-wider">
{#if !parameterName?.startsWith("impot_revenu")}
Revalorisation {yearPLF}
<br />{/if}
<span class="text-sm font-normal tracking-wide">
<p class="text-left leading-4 tracking-wider">
{#if parameterName?.startsWith("impot_revenu.bareme_ir_depuis_1945.bareme")}
Indexation d'usage du barème de l'IR par le PLF de
Indexation d'usage du barème de l'IR, par le PLF, de {billInflatorValueFormatted}.
{:else if parameterName?.startsWith("impot_revenu.calcul_impot_revenu.plaf_qf.decote")}
Indexation d'usage des plafonds de la décote par le PLF de
Indexation d'usage des plafonds de la décote, par le PLF, de {billInflatorValueFormatted}.
{:else if parameterName?.startsWith("impot_revenu.calcul_impot_revenu.plaf_qf.plafond_avantages_procures_par_demi_part")}
Indexation d'usage des plafonds du quotient familial par le PLF de
Indexation d'usage des plafonds du quotient familial, par le PLF, de {billInflatorValueFormatted}.
{:else if parameterName?.startsWith("impot_revenu.calcul_revenus_imposables.abat_rni.enfant_marie.montant")}
Indexation d'usage de l'abattement par le PLF de
Indexation d'usage de l'abattement, par le PLF, de {billInflatorValueFormatted}.
{:else if parameterName?.startsWith("impot_revenu")}
Revalorisation, suite à l'indexation d'usage du barème de l'IR par le
PLF, de
Revalorisation de {billInflatorValueFormatted}, suite à l'indexation
d'usage du barème de l'IR par le PLF.
{:else}
Indexation sur l'inflation à
Indexation sur l'inflation à {billInflatorValueFormatted}.
{/if}
{billInflatorValueFormatted}.
</span>
</p>
</button>
<!--
<button
class="mt-4 flex w-full items-center rounded-md border-2 border-white bg-white px-2 py-0.5 pr-4 text-sm text-le-gris-dispositif-dark shadow-md transition-all duration-500 ease-out-back hover:border-2 hover:border-le-gris-dispositif"
onclick={bubble("click")}
>
<iconify-icon class="mr-2 align-[-0.2rem] text-xl" icon="ri-file-text-line"
></iconify-icon>
<p class="text-left leading-4 tracking-wider">
<span class="font-bold">Prévisions {yearPLF}&nbsp;:</span>
{#if parameterName?.startsWith("impot_revenu.bareme_ir_depuis_1945.bareme")}
Indexation d'usage du barème de l'IR par le PLF, de {billInflatorValueFormatted}.
{:else if parameterName?.startsWith("impot_revenu.calcul_impot_revenu.plaf_qf.decote")}
Indexation d'usage des plafonds de la décote par le PLF, de {billInflatorValueFormatted}.
{:else if parameterName?.startsWith("impot_revenu.calcul_impot_revenu.plaf_qf.plafond_avantages_procures_par_demi_part")}
Indexation d'usage des plafonds du quotient familial par le PLF, de {billInflatorValueFormatted}.
{:else if parameterName?.startsWith("impot_revenu.calcul_revenus_imposables.abat_rni.enfant_marie.montant")}
Indexation d'usage de l'abattement par le PLF, de {billInflatorValueFormatted}.
{:else if parameterName?.startsWith("impot_revenu")}
Revalorisation de {billInflatorValueFormatted}, suite à l'indexation
d'usage du barème de l'IR par le PLF.
{:else}
Indexation sur l'inflation à {billInflatorValueFormatted}.
{/if}
</p>
</button>
-->
......@@ -73,12 +73,12 @@
{#if parameterName?.startsWith("impot_revenu.bareme_ir_depuis_1945.bareme")}
Indexation d'usage <br />du barème de l'impôt par le PLF
{:else if parameterName?.startsWith("impot_revenu.calcul_reductions_impots.dons.dons_coluche.plafond") || parameterName?.startsWith("impot_revenu.calcul_revenus_imposables.abat_rni.personne_agee_ou_invalide") || parameterName?.startsWith("impot_revenu.calcul_revenus_imposables.charges_deductibles.accueil_personne_agee.plafond") || parameterName?.startsWith("impot_revenu.calcul_revenus_imposables.rpns.micro.microentreprise.regime_micro_bnc.marchandises.plafond") || parameterName?.startsWith("impot_revenu.calcul_revenus_imposables.deductions.abatpen.min") || parameterName?.startsWith("impot_revenu.calcul_revenus_imposables.deductions.abatpen.max") || parameterName?.startsWith("impot_revenu.calcul_revenus_imposables.deductions.abatpro.min") || parameterName?.startsWith("impot_revenu.calcul_revenus_imposables.deductions.abatpro.max") || parameterName?.startsWith("impot_revenu.calcul_revenus_imposables.rpns.micro.microentreprise.regime_micro_ba.plafond_recettes") || parameterName?.startsWith("impot_revenu.calcul_revenus_imposables.rpns.micro.microentreprise.regime_micro_bnc.services.plafond") || parameterName?.startsWith("impot_revenu.calcul_revenus_imposables.charges_deductibles.pensions_alimentaires.plafond")}
Revalorisation prévue pour {yearPLF}
Revalorisation attendue pour {yearPLF}
<br /><span class="font-normal"
>si le barème de l'impôt est indexé sur l'inflation</span
>
{:else}
Revalorisation prévue pour {yearPLF}
Revalorisation attendue pour {yearPLF}
{/if}<br />
<!-- <div class="text-sm">{billParameter.name}</div>-->
</Dialog.Title>
......
......@@ -294,23 +294,7 @@
/>
</div>
<div class="flex justify-between bg-gray-100 py-2 pl-2 pr-4">
{#if hasInflator}
<InflationLawButton
{inflatorByReformName}
on:click={() => (isInflationLawInfoModalOpen = true)}
parameterName={billParameter.name}
/>
<InflationLawInfoModal
bind:isOpen={isInflationLawInfoModalOpen}
{billParameter}
{inflatorByReformName}
{lawParameter}
{revaluationParameter}
parameterName={billParameter.name}
/>
{/if}
<div class="flex justify-end bg-gray-100 py-2 pl-2 pr-4">
<a
class="lx-link-simple ml-2 flex items-center text-sm text-gray-600"
rel="noreferrer"
......@@ -415,5 +399,24 @@
/>
{/if}
{/if}
{#if hasInflator}
<p class="mt-4 pb-1 text-xs">
Barème attendu en {yearPLF}&nbsp;:
</p>
<InflationLawButton
{inflatorByReformName}
on:click={() => (isInflationLawInfoModalOpen = true)}
parameterName={billParameter.name}
/>
<InflationLawInfoModal
bind:isOpen={isInflationLawInfoModalOpen}
{billParameter}
{inflatorByReformName}
{lawParameter}
{revaluationParameter}
parameterName={billParameter.name}
/>
{/if}
</div>
</section>
......@@ -328,23 +328,6 @@
{/if}
</div>
{/if}
{#if hasInflator}
<InflationLawButton
{inflatorByReformName}
on:click={() => (isLawInfoModalOpen = true)}
parameterName={billParameter.name}
/>
<InflationLawInfoModal
bind:isOpen={isLawInfoModalOpen}
{billParameter}
{inflatorByReformName}
{lawParameter}
{revaluationParameter}
parameterName={billParameter.name}
/>
{/if}
</div>
<!--Spécial PLF 2025 : Alerte paramètre modifié par le PLF mais pas modifié par LexImpact -->
{#if billActive && billParameter.name?.startsWith("prelevements_sociaux.reductions_cotisations_sociales.allegement_general.ensemble_des_entreprises.plafond")}
......@@ -461,6 +444,25 @@
/>
{/if}
{/if}
{#if hasInflator}
<p class="mt-4 pb-1 text-xs">
Valeur attendue en {yearPLF}&nbsp;:
</p>
<InflationLawButton
{inflatorByReformName}
on:click={() => (isLawInfoModalOpen = true)}
parameterName={billParameter.name}
/>
<InflationLawInfoModal
bind:isOpen={isLawInfoModalOpen}
{billParameter}
{inflatorByReformName}
{lawParameter}
{revaluationParameter}
parameterName={billParameter.name}
/>
{/if}
</div>
</section>
{/if}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment