1 line
1.3 MiB
JSON
1 line
1.3 MiB
JSON
|
{"apiVersion": 1, "country_package_version": "4.1.3", "method": "/api/1/variables/", "url": "http://api.openfisca.fr/api/1/variables/", "variables": [{"@type": "Float", "default": 0, "entity": "familles", "label": "Allocations logements", "line_number": 379, "module": "mesures", "name": "aides_logement", "url": "http://vosdroits.service-public.fr/particuliers/N20360.xhtml", "formula": {"@type": "SimpleFormula", "comments": null, "doc": "Prestations logement", "line_number": 385, "module": "mesures", "source": "def function(self, simulation, period):\n '''\n Prestations logement\n '''\n period = period.this_year\n apl = simulation.calculate_add('apl', period)\n als = simulation.calculate_add('als', period)\n alf = simulation.calculate_add('alf', period)\n crds_logement = simulation.calculate_add('crds_logement', period)\n\n return period, apl + als + alf + crds_logement\n", "input_variables": ["alf", "crds_logement", "als", "apl"]}}, {"@type": "Float", "default": 0, "entity": "menages", "line_number": 562, "module": "mesures", "name": "check_crds", "formula": {"@type": "SimpleFormula", "comments": null, "doc": null, "line_number": 567, "module": "mesures", "source": "def function(self, simulation, period):\n period = period.this_year\n crds_cap_bar_declarant1_holder = simulation.compute('crds_cap_bar_declarant1', period)\n crds_pv_mo_holder = simulation.compute('crds_pv_mo', period)\n crds_fon_holder = simulation.compute('crds_fon', period)\n\n crds_cap_bar = self.sum_by_entity(crds_cap_bar_declarant1_holder)\n crds_pv_mo = self.cast_from_entity_to_role(crds_pv_mo_holder, role = CHEF)\n crds_pv_mo = self.sum_by_entity(crds_pv_mo)\n crds_fon = self.cast_from_entity_to_role(crds_fon_holder, role = CHEF)\n crds_fon = self.sum_by_entity(crds_fon)\n\n return period, crds_cap_bar + crds_pv_mo + crds_fon\n", "input_variables": ["crds_cap_bar_declarant1", "crds_fon", "crds_pv_mo"]}}, {"@type": "Float", "default": 0, "entity": "menages", "line_number": 542, "module": "mesures", "name": "check_csg", "formula": {"@type": "SimpleFormula", "comments": null, "doc": null, "line_number": 547, "module": "mesures", "source": "def function(self, simulation, period):\n period = period.this_year\n csg_cap_bar_declarant1_holder = simulation.compute('csg_cap_bar_declarant1', period)\n csg_pv_mo_holder = simulation.compute('csg_pv_mo', period)\n csg_fon_holder = simulation.compute('csg_fon', period)\n\n csg_cap_bar = self.sum_by_entity(csg_cap_bar_declarant1_holder)\n csg_pv_mo = self.cast_from_entity_to_role(csg_pv_mo_holder, role = CHEF)\n csg_pv_mo = self.sum_by_entity(csg_pv_mo)\n csg_fon = self.cast_from_entity_to_role(csg_fon_holder, role = CHEF)\n csg_fon = self.sum_by_entity(csg_fon)\n\n return period, csg_cap_bar + csg_pv_mo + csg_fon\n", "input_variables": ["csg_fon", "csg_pv_mo", "csg_cap_bar_declarant1"]}}, {"@type": "Float", "default": 0, "entity": "menages", "line_number": 522, "module": "mesures", "name": "check_csk", "formula": {"@type": "SimpleFormula", "comments": null, "doc": null, "line_number": 527, "module": "mesures", "source": "def function(self, simulation, period):\n period = period.this_year\n prelsoc_cap_bar_declarant1_holder = simulation.compute('prelsoc_cap_bar_declarant1', period)\n prelsoc_pv_mo_holder = simulation.compute('prelsoc_pv_mo', period)\n prelsoc_fon_holder = simulation.compute('prelsoc_fon', period)\n\n prelsoc_cap_bar = self.sum_by_entity(prelsoc_cap_bar_declarant1_holder)\n prelsoc_pv_mo = self.cast_from_entity_to_role(prelsoc_pv_mo_holder, role = CHEF)\n prelsoc_pv_mo = self.sum_by_entity(prelsoc_pv_mo)\n prelsoc_fon = self.cast_from_entity_to_role(prelsoc_fon_holder, role = CHEF)\n prelsoc_fon = self.sum_by_entity(prelsoc_fon)\n\n return period, prelsoc_cap_bar + prelsoc_pv_mo + prelsoc_fon\n", "input_variables": ["prelsoc_pv_mo", "prelsoc_fon", "prelsoc_cap_bar_declarant1"]}}, {"@type": "Float", "default": 0, "entity": "individus", "label": "Cotisations sociales sur les revenus du
|