From 87b01e8fddcd800fd25b77c538b3987be277702d Mon Sep 17 00:00:00 2001 From: mpeltriaux Date: Tue, 11 Oct 2022 16:47:16 +0200 Subject: [PATCH] Fixes account deletion with deductions * adds a warning on removing an eco account if there are still deductions * this way a user needs to get rid of these deductions first --- compensation/forms/eco_account.py | 14 +++ compensation/views/eco_account/eco_account.py | 5 +- locale/de/LC_MESSAGES/django.mo | Bin 45400 -> 45578 bytes locale/de/LC_MESSAGES/django.po | 109 ++++++++++-------- 4 files changed, 78 insertions(+), 50 deletions(-) diff --git a/compensation/forms/eco_account.py b/compensation/forms/eco_account.py index 6bc12618..f37098f9 100644 --- a/compensation/forms/eco_account.py +++ b/compensation/forms/eco_account.py @@ -14,6 +14,7 @@ from compensation.forms.mixins import CompensationResponsibleFormMixin, PikCompe from compensation.models import EcoAccount from intervention.models import Handler, Responsibility, Legal from konova.forms import SimpleGeomForm +from konova.forms.modals import RemoveModalForm from user.models import User, UserActionLogEntry @@ -210,3 +211,16 @@ class EditEcoAccountForm(NewEcoAccountForm): # Add the log entry to the main objects log list self.instance.log.add(action) return self.instance + + +class RemoveEcoAccountModalForm(RemoveModalForm): + + def is_valid(self): + super_valid = super().is_valid() + has_deductions = self.instance.deductions.exists() + if has_deductions: + self.add_error( + "confirm", + _("The account can not be removed, since there are still deductions.") + ) + return super_valid and not has_deductions diff --git a/compensation/views/eco_account/eco_account.py b/compensation/views/eco_account/eco_account.py index 1d259b95..1070dfe3 100644 --- a/compensation/views/eco_account/eco_account.py +++ b/compensation/views/eco_account/eco_account.py @@ -13,13 +13,12 @@ from django.shortcuts import get_object_or_404, redirect, render from django.urls import reverse from django.utils.translation import gettext_lazy as _ -from compensation.forms.eco_account import EditEcoAccountForm, NewEcoAccountForm +from compensation.forms.eco_account import EditEcoAccountForm, NewEcoAccountForm, RemoveEcoAccountModalForm from compensation.models import EcoAccount from compensation.tables.eco_account import EcoAccountTable from konova.contexts import BaseContext from konova.decorators import shared_access_required, default_group_required, any_group_check, login_required_modal from konova.forms import SimpleGeomForm -from konova.forms.modals import RemoveModalForm from konova.settings import ETS_GROUP, DEFAULT_GROUP, ZB_GROUP from konova.sub_settings.context_settings import TAB_TITLE_IDENTIFIER from konova.utils.message_templates import CANCEL_ACC_RECORDED_OR_DEDUCTED, RECORDED_BLOCKS_EDIT, FORM_INVALID, \ @@ -260,7 +259,7 @@ def remove_view(request: HttpRequest, id: str): messages.info(request, CANCEL_ACC_RECORDED_OR_DEDUCTED) return redirect("compensation:acc:detail", id=id) - form = RemoveModalForm(request.POST or None, instance=acc, request=request) + form = RemoveEcoAccountModalForm(request.POST or None, instance=acc, request=request) return form.process_request( request=request, msg_success=_("Eco-account removed"), diff --git a/locale/de/LC_MESSAGES/django.mo b/locale/de/LC_MESSAGES/django.mo index 2c859d23da2b162fb6f1feede66394d6c5a486b5..9f50fc49e0435c72b367e57dc12b50691d6027e7 100644 GIT binary patch delta 12604 zcmZA72Y62B|Htto5kbsINRW7hBt`}@5J6(klu*=Y5wRsilGf@|tJJ8iEv2<iC#yyX7Z4P^l4xk^v9y)BT(hFQ4KV*`7Wq|W?(c9 z#xQ&nwPJhG7f)a$p2cAN8?_aI$)=ym$*jL-kU&9UY>j#_9d#DEqgG-VY9M1#Tksm{ zxuvK>wGB0+(-??XP%H2dHSm%R&B{cgwj=@7Pg+CPUmbLzKzp8vYB(Ru<20;^$E zdu{#ar~!Y6YWOCq;lELPU97PgSXpdKz7lf2ogp|KSD>DYO)&#?HzuJ5I@*H1sFCHO zI&z~{;&s%>*P`}*tIh95?dd_RfG1Ha^Al>z?%MpnsIBo$HSLBV193Z1BsB75RKqP$ zOW5Ar;Jkq9ARE=-7}QElwe<^8d%fD$??bKVr>KG7K<&9#6LWSdpaxP4i|PGuK|&pL zLN)XPMq)lj;ZoGzp1^1D5^9BFo0=_3LakI|)XdXRE7}#+?m*Opa!~_+)jD70^zSSu zp*`M#n&Bs?JvxW#=o)H;Zlku~5vrpC&CH4wMGdetQssoBPW>R%%*SIZT!b3HRn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$Txv_AzMNarH%>m~ymZY#a9bv{E6%DYkCi0Es} z@7a2vlV5JrC8@WM{1c)CWiM>qSLjNhV1%tGO52--NdHcH45naS;#We~B_hq8;>QYQ z>xkpzC)qO5lGthU6Rn-G3U%+;Jh;!FQ;Nbe#AQmVE9@yMY=yW zAyyDq$j`\n" "Language-Team: LANGUAGE \n" @@ -446,37 +446,41 @@ msgstr "Neue Kompensation" msgid "Edit compensation" msgstr "Bearbeite Kompensation" -#: compensation/forms/eco_account.py:29 compensation/utils/quality.py:95 +#: compensation/forms/eco_account.py:30 compensation/utils/quality.py:95 msgid "Available Surface" msgstr "Verfügbare Fläche" -#: compensation/forms/eco_account.py:32 +#: compensation/forms/eco_account.py:33 msgid "The amount that can be used for deductions" msgstr "Die für Abbuchungen zur Verfügung stehende Menge" -#: compensation/forms/eco_account.py:41 +#: compensation/forms/eco_account.py:42 #: compensation/templates/compensation/detail/eco_account/view.html:67 #: compensation/utils/quality.py:83 msgid "Agreement date" msgstr "Vereinbarungsdatum" -#: compensation/forms/eco_account.py:43 +#: compensation/forms/eco_account.py:44 msgid "When did the parties agree on this?" msgstr "Wann wurde dieses Ökokonto offiziell vereinbart?" -#: compensation/forms/eco_account.py:69 +#: compensation/forms/eco_account.py:70 #: compensation/views/eco_account/eco_account.py:94 msgid "New Eco-Account" msgstr "Neues Ökokonto" -#: compensation/forms/eco_account.py:78 +#: compensation/forms/eco_account.py:79 msgid "Eco-Account XY; Location ABC" msgstr "Ökokonto XY; Flur ABC" -#: compensation/forms/eco_account.py:140 +#: compensation/forms/eco_account.py:141 msgid "Edit Eco-Account" msgstr "Ökokonto bearbeiten" +#: compensation/forms/eco_account.py:224 +msgid "The account can not be removed, since there are still deductions." +msgstr "Das Ökokonto kann nicht entfernt werden, da hierzu noch Abbuchungen vorliegen." + #: compensation/forms/mixins.py:37 #: compensation/templates/compensation/detail/eco_account/view.html:63 #: compensation/templates/compensation/report/eco_account/report.html:20 @@ -734,14 +738,14 @@ msgstr "" msgid "Pieces" msgstr "Stück" -#: compensation/models/eco_account.py:56 +#: compensation/models/eco_account.py:62 msgid "" "Deductable surface can not be larger than existing surfaces in after states" msgstr "" "Die abbuchbare Fläche darf die Gesamtfläche der Zielzustände nicht " "überschreiten" -#: compensation/models/eco_account.py:63 +#: compensation/models/eco_account.py:69 msgid "" "Deductable surface can not be smaller than the sum of already existing " "deductions. Please contact the responsible users for the deductions!" @@ -781,19 +785,19 @@ msgid "Not recorded yet" msgstr "Noch nicht verzeichnet" #: compensation/tables/compensation.py:166 -#: compensation/tables/eco_account.py:150 ema/tables.py:133 +#: compensation/tables/eco_account.py:153 ema/tables.py:133 #: intervention/tables.py:164 msgid "Recorded on {} by {}" msgstr "Am {} von {} verzeichnet worden" #: compensation/tables/compensation.py:186 -#: compensation/tables/eco_account.py:172 ema/tables.py:154 +#: compensation/tables/eco_account.py:175 ema/tables.py:154 #: intervention/tables.py:185 msgid "Full access granted" msgstr "Für Sie freigegeben - Datensatz kann bearbeitet werden" #: compensation/tables/compensation.py:186 -#: compensation/tables/eco_account.py:172 ema/tables.py:154 +#: compensation/tables/eco_account.py:175 ema/tables.py:154 #: intervention/tables.py:185 msgid "Access not granted" msgstr "Nicht freigegeben - Datensatz nur lesbar" @@ -808,7 +812,7 @@ msgstr "Verfügbar" msgid "Eco Accounts" msgstr "Ökokonten" -#: compensation/tables/eco_account.py:147 +#: compensation/tables/eco_account.py:150 msgid "Not recorded yet. Can not be used for deductions, yet." msgstr "" "Noch nicht verzeichnet. Kann noch nicht für Abbuchungen genutzt werden." @@ -876,6 +880,34 @@ msgstr "Keine Zusatzmerkmale" msgid "Remove action" msgstr "Maßnahme entfernen" +#: compensation/templates/compensation/detail/compensation/includes/actions.html:79 +#: compensation/templates/compensation/detail/compensation/includes/states-after.html:73 +#: compensation/templates/compensation/detail/compensation/includes/states-before.html:73 +#: compensation/templates/compensation/detail/eco_account/includes/actions.html:78 +#: compensation/templates/compensation/detail/eco_account/includes/states-after.html:73 +#: compensation/templates/compensation/detail/eco_account/includes/states-before.html:73 +#: compensation/templates/compensation/detail/eco_account/view.html:58 +#: compensation/templates/compensation/detail/eco_account/view.html:62 +#: compensation/templates/compensation/detail/eco_account/view.html:66 +#: compensation/templates/compensation/detail/eco_account/view.html:70 +#: ema/templates/ema/detail/includes/actions.html:76 +#: ema/templates/ema/detail/includes/states-after.html:71 +#: ema/templates/ema/detail/includes/states-before.html:71 +#: ema/templates/ema/detail/view.html:48 ema/templates/ema/detail/view.html:52 +#: ema/templates/ema/detail/view.html:56 +#: intervention/templates/intervention/detail/view.html:30 +#: intervention/templates/intervention/detail/view.html:34 +#: intervention/templates/intervention/detail/view.html:38 +#: intervention/templates/intervention/detail/view.html:47 +#: intervention/templates/intervention/detail/view.html:51 +#: intervention/templates/intervention/detail/view.html:55 +#: intervention/templates/intervention/detail/view.html:59 +#: intervention/templates/intervention/detail/view.html:63 +#: intervention/templates/intervention/detail/view.html:100 +#: intervention/templates/intervention/detail/view.html:104 +msgid "Missing" +msgstr "Fehlend" + #: compensation/templates/compensation/detail/compensation/includes/controls.html:5 #: compensation/templates/compensation/detail/eco_account/includes/controls.html:5 #: ema/templates/ema/detail/includes/controls.html:5 @@ -1186,7 +1218,7 @@ msgid "Recorded on" msgstr "Verzeichnet am" #: compensation/templates/compensation/detail/eco_account/includes/deductions.html:65 -#: intervention/forms/modals/deduction.py:173 +#: intervention/forms/modals/deduction.py:177 #: intervention/templates/intervention/detail/includes/deductions.html:60 msgid "Edit Deduction" msgstr "Abbuchung bearbeiten" @@ -1200,25 +1232,6 @@ msgstr "Abbuchung entfernen" msgid "No surface deductable" msgstr "Keine Flächenmenge für Abbuchungen eingegeben. Bitte bearbeiten." -#: compensation/templates/compensation/detail/eco_account/view.html:58 -#: compensation/templates/compensation/detail/eco_account/view.html:62 -#: compensation/templates/compensation/detail/eco_account/view.html:66 -#: compensation/templates/compensation/detail/eco_account/view.html:70 -#: ema/templates/ema/detail/view.html:48 ema/templates/ema/detail/view.html:52 -#: ema/templates/ema/detail/view.html:56 -#: intervention/templates/intervention/detail/view.html:30 -#: intervention/templates/intervention/detail/view.html:34 -#: intervention/templates/intervention/detail/view.html:38 -#: intervention/templates/intervention/detail/view.html:47 -#: intervention/templates/intervention/detail/view.html:51 -#: intervention/templates/intervention/detail/view.html:55 -#: intervention/templates/intervention/detail/view.html:59 -#: intervention/templates/intervention/detail/view.html:63 -#: intervention/templates/intervention/detail/view.html:100 -#: intervention/templates/intervention/detail/view.html:104 -msgid "Missing" -msgstr "Fehlend" - #: compensation/templates/compensation/detail/eco_account/view.html:71 #: ema/templates/ema/detail/view.html:57 msgid "Action handler" @@ -1297,7 +1310,7 @@ msgstr "Ökokonto {} hinzugefügt" msgid "Eco-Account {} edited" msgstr "Ökokonto {} bearbeitet" -#: compensation/views/eco_account/eco_account.py:263 +#: compensation/views/eco_account/eco_account.py:265 msgid "Eco-account removed" msgstr "Ökokonto entfernt" @@ -1341,7 +1354,7 @@ msgstr "EMA {} hinzugefügt" msgid "EMA {} edited" msgstr "EMA {} bearbeitet" -#: ema/views/ema.py:234 +#: ema/views/ema.py:235 msgid "EMA removed" msgstr "EMA entfernt" @@ -1639,19 +1652,19 @@ msgstr "Eingriff {} hinzugefügt" msgid "Intervention {} edited" msgstr "Eingriff {} bearbeitet" -#: intervention/views/intervention.py:249 +#: intervention/views/intervention.py:250 msgid "{} removed" msgstr "{} entfernt" -#: konova/decorators.py:33 +#: konova/decorators.py:30 msgid "You need to be staff to perform this action!" msgstr "Hierfür müssen Sie Mitarbeiter sein!" -#: konova/decorators.py:48 +#: konova/decorators.py:45 msgid "You need to be administrator to perform this action!" msgstr "Hierfür müssen Sie Administrator sein!" -#: konova/decorators.py:66 +#: konova/decorators.py:63 msgid "" "+++ Attention: You are not part of any group. You won't be able to create, " "edit or do anything. Please contact an administrator. +++" @@ -2663,7 +2676,9 @@ msgstr "Keine Geometrie vorhanden" #: templates/modal/modal_session_timed_out.html:3 msgid "Your session has timed out. Please reload the page to login." -msgstr "Ihre Sitzung ist aufgrund von Inaktivität abgelaufen. Laden Sie die Seite erneut, um sich wieder einzuloggen." +msgstr "" +"Ihre Sitzung ist aufgrund von Inaktivität abgelaufen. Laden Sie die Seite " +"erneut, um sich wieder einzuloggen." #: templates/navbars/navbar.html:4 msgid "Kompensationsverzeichnis Service Portal" @@ -2902,7 +2917,7 @@ msgid "Manage teams" msgstr "" #: user/templates/user/index.html:61 user/templates/user/team/index.html:19 -#: user/views.py:169 +#: user/views.py:171 msgid "Teams" msgstr "" @@ -2974,23 +2989,23 @@ msgstr "Neuer Token generiert. Administratoren sind informiert." msgid "User API token" msgstr "API Nutzer Token" -#: user/views.py:180 +#: user/views.py:183 msgid "New team added" msgstr "Neues Team hinzugefügt" -#: user/views.py:194 +#: user/views.py:198 msgid "Team edited" msgstr "Team bearbeitet" -#: user/views.py:208 +#: user/views.py:213 msgid "Team removed" msgstr "Team gelöscht" -#: user/views.py:222 +#: user/views.py:228 msgid "You are not a member of this team" msgstr "Sie sind kein Mitglied dieses Teams" -#: user/views.py:229 +#: user/views.py:235 msgid "Left Team" msgstr "Team verlassen"