[Compensation] Conservation office #5

Closed
opened 2021-08-26 12:54:24 +02:00 by mpeltriaux · 2 comments
Owner

Status quo

The compensation holds a conservation office inside responsible attribute.

Enhancement

Compensations inherit information about responsibilities from their related intervention's responsible attribute. Therefore, consider dropping the whole responsible attribute for Compensation model.

# Status quo The compensation holds a conservation office inside `responsible` attribute. # Enhancement Compensations inherit information about responsibilities from their related intervention's `responsible` attribute. Therefore, consider dropping the whole `responsible` attribute for `Compensation` model.
mpeltriaux added the
enhancement
label 2021-08-26 12:54:24 +02:00
mpeltriaux self-assigned this 2021-08-26 12:54:24 +02:00
Author
Owner

responsible has not been dropped. responsible ist part of the AbstractCompensation which is the super class for Compensation and EcoAccount. EcoAccounts need the responsible attribute anyway, since they are not linked to any intervention directly. Refactoring responsible from AbstractCompensation into EcoAccount might backfire in the future, when laws can change and compensations would need the responsible attribute again.

We keep it where it is but do not use it for compensations (for now).
Instead, this branch holds a lot of enhancements regarding the KonovaCodes and their usage in the admin backend.

`responsible` has not been dropped. `responsible` ist part of the `AbstractCompensation` which is the super class for `Compensation` and `EcoAccount`. EcoAccounts need the `responsible` attribute anyway, since they are not linked to any intervention directly. Refactoring `responsible` from `AbstractCompensation` into `EcoAccount` might backfire in the future, when laws can change and compensations would need the `responsible` attribute again. We keep it where it is but do not use it for compensations (for now). Instead, this branch holds a lot of enhancements regarding the KonovaCodes and their usage in the admin backend.
Author
Owner

Merged by #15

# Merged by #15
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: IT-Naturschutz/konova#5
No description provided.