#149 Send on changes

* changes trigger for sending data to EGON: on each new payment, edited payment or deleted payment action, the data will be sent to EGON instead only once on "recording"
This commit is contained in:
2022-04-25 11:16:51 +02:00
parent 5a8765f638
commit eb975cd3c5
3 changed files with 29 additions and 16 deletions

View File

@@ -128,6 +128,7 @@ class EditPaymentModalForm(NewPaymentForm):
payment.comment = self.cleaned_data.get("comment", None)
payment.save()
self.instance.mark_as_edited(self.user, self.request, edit_comment=PAYMENT_EDITED)
self.instance.send_data_to_egon()
return payment