add a comments field to PosReport
This commit is contained in:
parent
ec1146a5dd
commit
9ecd59c40f
|
@ -2033,7 +2033,7 @@ class PosReportCreateView(PosViewMixin, CreateView):
|
||||||
"""Use this view to create new PosReports."""
|
"""Use this view to create new PosReports."""
|
||||||
|
|
||||||
model = PosReport
|
model = PosReport
|
||||||
fields = ["date", "bank_responsible", "pos_responsible"]
|
fields = ["date", "bank_responsible", "pos_responsible", "comments"]
|
||||||
template_name = "posreport_form.html"
|
template_name = "posreport_form.html"
|
||||||
|
|
||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
|
@ -2070,7 +2070,7 @@ class PosReportUpdateView(PosViewMixin, UpdateView):
|
||||||
"""Use this view to update PosReports."""
|
"""Use this view to update PosReports."""
|
||||||
|
|
||||||
model = PosReport
|
model = PosReport
|
||||||
fields = ["date", "bank_responsible", "pos_responsible"]
|
fields = ["date", "bank_responsible", "pos_responsible", "comments"]
|
||||||
template_name = "posreport_form.html"
|
template_name = "posreport_form.html"
|
||||||
pk_url_kwarg = "posreport_uuid"
|
pk_url_kwarg = "posreport_uuid"
|
||||||
|
|
||||||
|
|
20
src/economy/migrations/0014_posreport_comments.py
Normal file
20
src/economy/migrations/0014_posreport_comments.py
Normal file
|
@ -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"
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]
|
|
@ -548,6 +548,10 @@ class PosReport(CampRelatedModel, UUIDModel):
|
||||||
help_text="The JSON exported from the external POS system",
|
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 start of day
|
||||||
|
|
||||||
bank_count_dkk_start = models.PositiveIntegerField(
|
bank_count_dkk_start = models.PositiveIntegerField(
|
||||||
|
|
Loading…
Reference in a new issue