extend accounting model
This commit is contained in:
parent
1323976521
commit
0a36d3904e
20
billard/migrations/0017_accounting_reporter_uuid.py
Normal file
20
billard/migrations/0017_accounting_reporter_uuid.py
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Generated by Django 1.10.5 on 2017-02-27 07:57
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('billard', '0016_auto_20170225_1822'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='accounting',
|
||||||
|
name='reporter_uuid',
|
||||||
|
field=models.UUIDField(blank=True, null=True, verbose_name='Reporter UUID'),
|
||||||
|
),
|
||||||
|
]
|
@ -104,6 +104,7 @@ class Accounting(models.Model):
|
|||||||
time_to = models.DateTimeField(blank=True, null=True, verbose_name="Ende")
|
time_to = models.DateTimeField(blank=True, null=True, verbose_name="Ende")
|
||||||
prize = models.DecimalField(max_digits=5, decimal_places=2, blank=True, null=True, verbose_name="Preis")
|
prize = models.DecimalField(max_digits=5, decimal_places=2, blank=True, null=True, verbose_name="Preis")
|
||||||
billed = models.BooleanField(default=False, verbose_name="Abgerechnet")
|
billed = models.BooleanField(default=False, verbose_name="Abgerechnet")
|
||||||
|
reporter_uuid = models.UUIDField(blank=True, null=True, verbose_name='Reporter UUID')
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return '{}: {} -> {}, {}, {}'.format(self.desk, self.time_from, self.time_to, self.prize, self.billed)
|
return '{}: {} -> {}, {}, {}'.format(self.desk, self.time_from, self.time_to, self.prize, self.billed)
|
||||||
|
Loading…
Reference in New Issue
Block a user