2016-08-11 06:49:39 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
import django.db.models.deletion
|
2018-10-06 12:35:49 +02:00
|
|
|
from django.db import migrations, models
|
2016-08-11 06:49:39 +02:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
2018-10-06 12:35:49 +02:00
|
|
|
dependencies = [("kfet", "0026_auto_20160809_0810")]
|
2016-08-11 06:49:39 +02:00
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2018-10-06 12:35:49 +02:00
|
|
|
name="CheckoutStatement",
|
2016-08-11 06:49:39 +02:00
|
|
|
fields=[
|
2018-10-06 12:35:49 +02:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.AutoField(
|
|
|
|
verbose_name="ID",
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
auto_created=True,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("balance_old", models.DecimalField(decimal_places=2, max_digits=6)),
|
|
|
|
("balance_new", models.DecimalField(decimal_places=2, max_digits=6)),
|
|
|
|
("amount_taken", models.DecimalField(decimal_places=2, max_digits=6)),
|
|
|
|
("amount_error", models.DecimalField(decimal_places=2, max_digits=6)),
|
|
|
|
("at", models.DateTimeField(auto_now_add=True)),
|
|
|
|
(
|
|
|
|
"by",
|
|
|
|
models.ForeignKey(
|
|
|
|
to="kfet.Account",
|
|
|
|
on_delete=django.db.models.deletion.PROTECT,
|
|
|
|
related_name="+",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"checkout",
|
|
|
|
models.ForeignKey(
|
|
|
|
to="kfet.Checkout",
|
|
|
|
on_delete=django.db.models.deletion.PROTECT,
|
|
|
|
related_name="statements",
|
|
|
|
),
|
|
|
|
),
|
2016-08-11 06:49:39 +02:00
|
|
|
],
|
|
|
|
),
|
2018-10-06 12:35:49 +02:00
|
|
|
migrations.RemoveField(model_name="statement", name="by"),
|
|
|
|
migrations.RemoveField(model_name="statement", name="checkout"),
|
|
|
|
migrations.DeleteModel(name="Statement"),
|
2016-08-11 06:49:39 +02:00
|
|
|
]
|