Browse Source

fixup! [FIX] tax_shelter_declaration: enable exclusion to deal with overlapping declarations

pull/127/head
Manuel Claeys Bouuaert 4 years ago
parent
commit
b7279658bb
  1. 1
      easy_my_coop_taxshelter_report/models/tax_shelter_declaration.py

1
easy_my_coop_taxshelter_report/models/tax_shelter_declaration.py

@ -61,6 +61,7 @@ class TaxShelterDeclaration(models.Model):
"as non eligible")
def _excluded_from_declaration(self, entry):
# entry is a subscription.register object
if entry.date >= self.date_from and entry.date <= self.date_to:
declarations = self
else:

Loading…
Cancel
Save