Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Status changes for order closing #49

Merged
merged 15 commits into from
Mar 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
coverage==4.3.4
Django==1.10.5
django-debug-toolbar==1.6
Django==1.10.6
django-debug-toolbar==1.7
docutils==0.13.1
sqlparse==0.2.2
sqlparse==0.2.3
freezegun==0.3.8
django-formtools==2.0
10 changes: 10 additions & 0 deletions src/feedback/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,16 @@ class Meta:
fields = ('anschrift', 'fachgebiet')


CLOSE_ORDER_CHOICES = (
('ja', 'Ja'),
('nein', 'Nein')
)


class CloseOrderForm(forms.Form):
auswahl = forms.ChoiceField(choices=CLOSE_ORDER_CHOICES)


class CreateBarcodeScannEventForm(forms.ModelForm):
"""Handelt die erste haelfte von Barcode scanns"""
scanner_token = forms.CharField()
Expand Down
30 changes: 30 additions & 0 deletions src/feedback/migrations/0035_auto_20170313_1743.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-13 17:43
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('feedback', '0034_auto_20170207_1854'),
]

operations = [
migrations.AlterField(
model_name='barcodeallowedstate',
name='allow_state',
field=models.IntegerField(choices=[(100, 'Angelegt'), (200, 'Bestellung ge\xf6ffnet'), (300, 'Keine Evaluation'), (310, 'Keine Evaluation final'), (500, 'Bestellung liegt vor'), (510, 'Bestellung wird verarbeitet'), (600, 'Gedruckt'), (700, 'Versandt'), (800, 'B\xf6gen eingegangen'), (900, 'B\xf6gen gescannt'), (1000, 'Ergebnisse versandt')], null=True, unique=True),
),
migrations.AlterField(
model_name='log',
name='status',
field=models.IntegerField(choices=[(100, 'Angelegt'), (200, 'Bestellung ge\xf6ffnet'), (300, 'Keine Evaluation'), (310, 'Keine Evaluation final'), (500, 'Bestellung liegt vor'), (510, 'Bestellung wird verarbeitet'), (600, 'Gedruckt'), (700, 'Versandt'), (800, 'B\xf6gen eingegangen'), (900, 'B\xf6gen gescannt'), (1000, 'Ergebnisse versandt')], default=100),
),
migrations.AlterField(
model_name='veranstaltung',
name='status',
field=models.IntegerField(choices=[(100, 'Angelegt'), (200, 'Bestellung ge\xf6ffnet'), (300, 'Keine Evaluation'), (310, 'Keine Evaluation final'), (500, 'Bestellung liegt vor'), (510, 'Bestellung wird verarbeitet'), (600, 'Gedruckt'), (700, 'Versandt'), (800, 'B\xf6gen eingegangen'), (900, 'B\xf6gen gescannt'), (1000, 'Ergebnisse versandt')], default=100),
),
]
4 changes: 4 additions & 0 deletions src/feedback/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,9 @@ class Veranstaltung(models.Model):
STATUS_ANGELEGT = 100
STATUS_BESTELLUNG_GEOEFFNET = 200
STATUS_KEINE_EVALUATION = 300
STATUS_KEINE_EVALUATION_FINAL = 310
STATUS_BESTELLUNG_LIEGT_VOR = 500
STATUS_BESTELLUNG_WIRD_VERARBEITET = 510
STATUS_GEDRUCKT = 600
STATUS_VERSANDT = 700
STATUS_BOEGEN_EINGEGANGEN = 800
Expand All @@ -329,7 +331,9 @@ class Veranstaltung(models.Model):
(STATUS_ANGELEGT, 'Angelegt'),
(STATUS_BESTELLUNG_GEOEFFNET, 'Bestellung geöffnet'),
(STATUS_KEINE_EVALUATION, 'Keine Evaluation'),
(STATUS_KEINE_EVALUATION_FINAL, 'Keine Evaluation final'),
(STATUS_BESTELLUNG_LIEGT_VOR, 'Bestellung liegt vor'),
(STATUS_BESTELLUNG_WIRD_VERARBEITET, 'Bestellung wird verarbeitet'),
(STATUS_GEDRUCKT, 'Gedruckt'),
(STATUS_VERSANDT, 'Versandt'),
(STATUS_BOEGEN_EINGEGANGEN, 'Bögen eingegangen'),
Expand Down
Loading