diff --git a/src/backoffice/views.py b/src/backoffice/views.py index 47604822..f100f54c 100644 --- a/src/backoffice/views.py +++ b/src/backoffice/views.py @@ -2033,7 +2033,7 @@ class PosReportCreateView(PosViewMixin, CreateView): """Use this view to create new PosReports.""" model = PosReport - fields = ["date", "bank_responsible", "pos_responsible"] + fields = ["date", "bank_responsible", "pos_responsible", "comments"] template_name = "posreport_form.html" def get_context_data(self, **kwargs): @@ -2070,7 +2070,7 @@ class PosReportUpdateView(PosViewMixin, UpdateView): """Use this view to update PosReports.""" model = PosReport - fields = ["date", "bank_responsible", "pos_responsible"] + fields = ["date", "bank_responsible", "pos_responsible", "comments"] template_name = "posreport_form.html" pk_url_kwarg = "posreport_uuid" diff --git a/src/economy/migrations/0014_posreport_comments.py b/src/economy/migrations/0014_posreport_comments.py new file mode 100644 index 00000000..77223773 --- /dev/null +++ b/src/economy/migrations/0014_posreport_comments.py @@ -0,0 +1,20 @@ +# Generated by Django 3.1 on 2020-08-13 16:54 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("economy", "0013_auto_20200811_1015"), + ] + + operations = [ + migrations.AddField( + model_name="posreport", + name="comments", + field=models.TextField( + blank=True, help_text="Any comments about this PosReport" + ), + ), + ] diff --git a/src/economy/models.py b/src/economy/models.py index 0aa6ec48..1ab983f3 100644 --- a/src/economy/models.py +++ b/src/economy/models.py @@ -548,6 +548,10 @@ class PosReport(CampRelatedModel, UUIDModel): help_text="The JSON exported from the external POS system", ) + comments = models.TextField( + blank=True, help_text="Any comments about this PosReport", + ) + # bank count start of day bank_count_dkk_start = models.PositiveIntegerField(