Skip to content

Commit

Permalink
Fin de l'aide exceptionnelle
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit-cty committed Jul 4, 2024
1 parent 2c2ffa9 commit 9ff4a44
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ def formula(menage, period, parameters):
prix_gazole_b10_ht = prix_gazole_b10_ht_avant_remise - (aide_exceptionnelle_gazole_essence_hl / 100)
return prix_gazole_b10_ht

def formula_2023(menage, period):
return menage('prix_gazole_b10_ht_avant_remise', period)


class prix_essence_sp95_e10_ht_avant_remise(Variable):
value_type = float
Expand Down Expand Up @@ -282,6 +285,9 @@ def formula(menage, period, parameters):
prix_essence_sp95_e10_hors_remise_ttc = prix_essence_sp95_e10_ht_avant_remise - (aide_exceptionnelle_gazole_essence_hl / 100)
return prix_essence_sp95_e10_hors_remise_ttc

def formula_2023(menage, period):
return menage('prix_essence_sp95_e10_ht_avant_remise', period)


class prix_essence_sp95_ht_avant_remise(Variable):
value_type = float
Expand Down Expand Up @@ -411,6 +417,9 @@ def formula(menage, period, parameters):
prix_essence_sp95_hors_remise_ttc = prix_essence_sp95_ht_avant_remise - (aide_exceptionnelle_gazole_essence_hl / 100)
return prix_essence_sp95_hors_remise_ttc

def formula_2023(menage, period):
return menage('prix_essence_sp95_ht_avant_remise', period)


class prix_essence_sp98_ht_avant_remise(Variable):
value_type = float
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ def formula(menage, period, parameters):
taux_plein_tva = parameters(period).imposition_indirecte.tva.taux_de_tva.taux_normal
prix_gazole_b7_hors_remise_ttc = prix_gazole_b7_ttc + (aide_exceptionnelle_gazole_essence_hl / 100) * (1 + taux_plein_tva)
return prix_gazole_b7_hors_remise_ttc

def formula_2023(menage, period):
return menage('prix_gazole_b7_ttc', period)


class prix_gazole_b10_ttc(Variable): # ATTENTION: pas de prix disponible pour gazole B10, on utilise prix du gazole B7
Expand Down Expand Up @@ -69,6 +72,9 @@ def formula(menage, period, parameters):
taux_plein_tva = parameters(period).imposition_indirecte.tva.taux_de_tva.taux_normal
prix_gazole_b10_hors_remise_ttc = prix_gazole_b10_ttc + (aide_exceptionnelle_gazole_essence_hl / 100) * (1 + taux_plein_tva)
return prix_gazole_b10_hors_remise_ttc

def formula_2023(menage, period):
return menage('prix_gazole_b10_ttc', period)


class prix_essence_sp95_e10_ttc(Variable):
Expand Down Expand Up @@ -102,6 +108,9 @@ def formula(menage, period, parameters):
taux_plein_tva = parameters(period).imposition_indirecte.tva.taux_de_tva.taux_normal
prix_essence_sp95_e10_ttc = prix_essence_sp95_e10_ttc + (aide_exceptionnelle_gazole_essence_hl / 100) * (1 + taux_plein_tva)
return prix_essence_sp95_e10_ttc

def formula_2023(menage, period):
return menage('prix_essence_sp95_e10_ttc', period)


class prix_essence_sp95_ttc(Variable):
Expand Down Expand Up @@ -135,6 +144,9 @@ def formula(menage, period, parameters):
taux_plein_tva = parameters(period).imposition_indirecte.tva.taux_de_tva.taux_normal
prix_essence_sp95_ttc = prix_essence_sp95_ttc + (aide_exceptionnelle_gazole_essence_hl / 100) * (1 + taux_plein_tva)
return prix_essence_sp95_ttc

def formula_2023(menage, period):
return menage('prix_essence_sp95_ttc', period)


class prix_essence_sp98_ttc(Variable):
Expand Down Expand Up @@ -168,6 +180,9 @@ def formula(menage, period, parameters):
taux_plein_tva = parameters(period).imposition_indirecte.tva.taux_de_tva.taux_normal
prix_essence_sp98_ttc = prix_essence_sp98_ttc + (aide_exceptionnelle_gazole_essence_hl / 100) * (1 + taux_plein_tva)
return prix_essence_sp98_ttc

def formula_2023(menage, period):
return menage('prix_essence_sp98_ttc', period)


class prix_essence_super_plombe_ttc(Variable): # ATTENTION: pas prix par région disponible, on garde les prix TTC général de l'IPP. (INSEE)
Expand Down Expand Up @@ -215,6 +230,9 @@ def formula(menage, period, parameters):
taux_plein_tva = parameters(period).imposition_indirecte.tva.taux_de_tva.taux_normal
prix_essence_e85_hors_remise_ttc = prix_essence_e85_ttc + (aide_exceptionnelle_gazole_essence_hl / 100) * (1 + taux_plein_tva)
return prix_essence_e85_hors_remise_ttc

def formula_2023(menage, period):
return menage('prix_essence_e85_ttc', period)


class prix_gpl_carburant_ttc(Variable):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ def formula(menage, period, parameters):
taux_plein_tva = parameters(period).imposition_indirecte.tva.taux_de_tva.taux_normal
prix_gazole_b7_hors_remise_ttc = prix_gazole_b7_ttc + (aide_exceptionnelle_gazole_essence_hl / 100) * (1 + taux_plein_tva)
return prix_gazole_b7_hors_remise_ttc

def formula_2023(menage, period):
return menage('prix_gazole_b7_ttc_sortie', period)


class prix_gazole_b10_ttc_sortie(Variable):
Expand Down Expand Up @@ -153,6 +156,9 @@ def formula(menage, period, parameters):
taux_plein_tva = parameters(period).imposition_indirecte.tva.taux_de_tva.taux_normal
prix_gazole_b10_hors_remise_ttc = prix_gazole_b10_ttc + (aide_exceptionnelle_gazole_essence_hl / 100) * (1 + taux_plein_tva)
return prix_gazole_b10_hors_remise_ttc

def formula_2023(menage, period):
return menage('prix_gazole_b10_ttc_sortie', period)


class prix_essence_sp95_e10_ttc_sortie(Variable):
Expand Down Expand Up @@ -283,6 +289,9 @@ def formula(menage, period, parameters):
taux_plein_tva = parameters(period).imposition_indirecte.tva.taux_de_tva.taux_normal
prix_essence_sp95_e10_ttc = prix_essence_sp95_e10_ttc + (aide_exceptionnelle_gazole_essence_hl / 100) * (1 + taux_plein_tva)
return prix_essence_sp95_e10_ttc

def formula_2023(menage, period):
return menage('prix_essence_sp95_e10_ttc_sortie', period)


class prix_essence_sp95_ttc_sortie(Variable):
Expand Down Expand Up @@ -413,6 +422,9 @@ def formula(menage, period, parameters):
taux_plein_tva = parameters(period).imposition_indirecte.tva.taux_de_tva.taux_normal
prix_essence_sp95_ttc = prix_essence_sp95_ttc + (aide_exceptionnelle_gazole_essence_hl / 100) * (1 + taux_plein_tva)
return prix_essence_sp95_ttc

def formula_2023(menage, period):
return menage('prix_essence_sp95_ttc_sortie', period)


class prix_essence_sp98_ttc_sortie(Variable):
Expand Down Expand Up @@ -543,6 +555,9 @@ def formula(menage, period, parameters):
taux_plein_tva = parameters(period).imposition_indirecte.tva.taux_de_tva.taux_normal
prix_essence_sp98_ttc = prix_essence_sp98_ttc + (aide_exceptionnelle_gazole_essence_hl / 100) * (1 + taux_plein_tva)
return prix_essence_sp98_ttc

def formula_2023(menage, period):
return menage('prix_essence_sp98_ttc_sortie', period)


class prix_essence_super_plombe_ttc_sortie(Variable):
Expand Down Expand Up @@ -605,6 +620,9 @@ def formula(menage, period, parameters):
taux_plein_tva = parameters(period).imposition_indirecte.tva.taux_de_tva.taux_normal
prix_essence_e85_hors_remise_ttc = prix_essence_e85_ttc + (aide_exceptionnelle_gazole_essence_hl / 100) * (1 + taux_plein_tva)
return prix_essence_e85_hors_remise_ttc

def formula_2023(menage, period):
return menage('prix_essence_e85_ttc_sortie', period)


class prix_gpl_carburant_ttc_sortie(Variable):
Expand Down

0 comments on commit 9ff4a44

Please sign in to comment.