Skip to content

Commit

Permalink
Merge pull request #49 from yduman/user-story-46
Browse files Browse the repository at this point in the history
Status changes for order closing
  • Loading branch information
ckleemann committed Mar 20, 2017
2 parents 0936948 + 7b6c0d6 commit 924f9a2
Show file tree
Hide file tree
Showing 10 changed files with 700 additions and 503 deletions.
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

0 comments on commit 924f9a2

Please sign in to comment.