Compare commits

..

No commits in common. "accccb93c2940d95ad41a188808717efbc76653c" and "4c08756eef992d86ddfcb26773108b430d8404f9" have entirely different histories.

View File

@ -490,11 +490,7 @@ class Compensation(AbstractCompensation, CEFMixin, CoherenceMixin, PikMixin):
if self.is_recorded:
retval = COMPENSATION_LANIS_LAYER_NAME_RECORDED
else:
try:
is_old_entry = self.intervention.legal.binding_date < LKOMPVZVO_PUBLISH_DATE
except TypeError:
is_old_entry = True
is_old_entry = self.intervention.legal.binding_date < LKOMPVZVO_PUBLISH_DATE
if is_old_entry:
retval = COMPENSATION_LANIS_LAYER_NAME_UNRECORDED_OLD_ENTRY
else: