* corrects behaviour of lanis link generation for EIV and KOM
pull/354/head
mpeltriaux 12 months ago
parent 599764ef38
commit 0f173c4802

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

@ -398,7 +398,8 @@ class Intervention(BaseObject,
try:
is_old_entry = self.legal.binding_date < LKOMPVZVO_PUBLISH_DATE
except TypeError:
is_old_entry = True
is_old_entry = False
if is_old_entry:
retval = INTERVENTION_LANIS_LAYER_NAME_UNRECORDED_OLD_ENTRY
else:

Loading…
Cancel
Save