Skip to content

BUG: Replace _tu grouping #690

@MImmesberger

Description

@MImmesberger

Bug description

The grouping _tu should be replaced by the correct grouping (_sn, _bg, _fg, or _hh).

To get rid of the _tu groupings, we need the following new groups:

  • _spouses should group individuals with their partners based on p_id_ehepartner. A married indicator would be useful as well.
  • _eg (Einstandsgemeinschaft) should group individuals based on the already existing p_id_einstandspartner

This affects the following taxes and transfers

eink_st_y_tu

  • Grouping should be replaced by _sn
  • This is also true for all variables relevant for eink_st_y_sn calculation
  • Also, parameters change to _sn: vorsorgeaufw_y_tu, sonderausgaben_betreuung_y_tu

soli_st_y_tu

  • Same as eink_st_y_tu

abgelt_st_y_tu

  • Same as eink_st_y_tu

Kinderbonus

  • kinderbonus_m_tu should be processed by the aggregate by p_id functions, not via a grouping

Lohnsteuer

  • anz_kinder_mit_kindergeld_tu changes to number of Kinderfreibetrag claims on the individual level

Freibeträge

  • In general, groupings change to _sn
  • alleinerz_tu should change to alleinerz_sn.
  • alleinerz_freib_y_tu after 2015 should use the amount of Kindergeld claims as an input, not anz_kinder_tu
  • eink_st_sonderausgaben_y_tu uses anz_erwachsene_tu as an input. Should cange to anz_erwachsene_sn: Couples who file taxes together (same sn) get two times the transfer of singles.

Vorsorgeaufwand

  • Same as eink_st_y_tu
  • gemeinsam_veranlagt_tu can go because anz_erwachsene_sn should yield the same result

zu_verst_eink

  • Same as eink_st_y_tu

Arbeitslosengeld

  • Switch anz_kinder_tu to eligibility for Kinderfreibetrag (§32 EStG)

Elterngeld

  • Net income calculation should be based on eink_st_y_sn, not eink_st_y_tu

Erziehungsgeld

Grundrente

  • gemeinsam_veranlagt_tu can go; should instead be an indicator for being married (e.g married)
  • _grundr_zuschlag_eink_vor_freibetrag_m_tu should not be aggregated on _tu level but on _ehe

Grundsicherung im Alter

  • grunds_im_alter_eink_m and its inputs should be on _sn level but when used as an input on _eg level
  • In general, the correct grouping is _eg, not _hh
  • Correct grouping of grunds_im_alter_vermög_freib_hh and its inputs is _fg. When used as an input, use _fg as well.

Kindergeld

  • Remove aggregation dict at top of file.
  • Kindergeld should be created via the grouping by p_id function

Unterhaltsvorschuss

  • Switch to alleinerz_sn.
  • The parental income check in unterhaltsvors_m should be on the single parent level only (no aggregation). Use aggregation by p_id mechanic here.
  • Nearly all _tu are replaced with no aggregation at all because only income of the single parent is considered

Wohngeld

  • Correct grouping in general: _hh
  • wohngeld_abzüge_st_sozialv_m and its inputs should be on the _sn level, but aggregated to the _hh level when its used as an input.
  • Whenever anz_kinder_bis_10_tu is used, it should be number of Kindergeld claims on the individual level.
  • Correctly specify the Wohngeld Vorrang check: It is possible that for the same household some individuals receive Wohngeld and some receive ALG2.

ALG II

  • _arbeitsl_geld_2_alleinerz_mehrbedarf_m_bg, arbeitsl_geld_2_kindersatz_m_bg_bis_2010, arbeitsl_geld_2_kindersatz_m_bg_ab_2011, arbeitsl_geld_2_regelsatz_m_bg_bis_2010, arbeitsl_geld_2_regelsatz_m_bg_ab_2011, arbeitsl_geld_2_vor_vorrang_m_bg inputs should be on the _bg level as well

Kinderzuschlag

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions