From b7279658bbf01c83293a30ff85c284a301217dd1 Mon Sep 17 00:00:00 2001 From: Manuel Claeys Bouuaert Date: Mon, 28 Sep 2020 17:51:19 +0200 Subject: [PATCH] fixup! [FIX] tax_shelter_declaration: enable exclusion to deal with overlapping declarations --- easy_my_coop_taxshelter_report/models/tax_shelter_declaration.py | 1 + 1 file changed, 1 insertion(+) diff --git a/easy_my_coop_taxshelter_report/models/tax_shelter_declaration.py b/easy_my_coop_taxshelter_report/models/tax_shelter_declaration.py index 7ff86ac..a12115f 100644 --- a/easy_my_coop_taxshelter_report/models/tax_shelter_declaration.py +++ b/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: