# Generated by Django 3.2.7 on 2021-09-13 03:52

import uuid

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("economy", "0026_alter_clearhaussettlement_options"),
    ]

    operations = [
        migrations.CreateModel(
            name="ZettleBalance",
            fields=[
                (
                    "uuid",
                    models.UUIDField(
                        default=uuid.uuid4,
                        editable=False,
                        primary_key=True,
                        serialize=False,
                    ),
                ),
                ("created", models.DateTimeField(auto_now_add=True)),
                ("updated", models.DateTimeField(auto_now=True)),
                (
                    "statement_time",
                    models.DateTimeField(
                        help_text="The date and time this movement was added to the account statement."
                    ),
                ),
                (
                    "payment_time",
                    models.DateTimeField(
                        blank=True,
                        help_text="The date and time this payment was made. Can be empty if this transaction is not a customer payment.",
                        null=True,
                    ),
                ),
                (
                    "payment_reference",
                    models.IntegerField(
                        blank=True,
                        help_text="The reference for this payment. Can be empty if this transaction is not a customer payment.",
                        null=True,
                    ),
                ),
                (
                    "description",
                    models.CharField(
                        help_text="The description of this transaction.", max_length=100
                    ),
                ),
                (
                    "amount",
                    models.DecimalField(
                        decimal_places=2,
                        help_text="The amount of this transaction",
                        max_digits=12,
                    ),
                ),
                (
                    "balance",
                    models.DecimalField(
                        decimal_places=2,
                        help_text="Our balance in Zettles systems after this transaction.",
                        max_digits=12,
                    ),
                ),
            ],
            options={
                "ordering": ["-statement_time"],
                "get_latest_by": ["statement_time"],
            },
        ),
        migrations.CreateModel(
            name="ZettleReceipt",
            fields=[
                (
                    "uuid",
                    models.UUIDField(
                        default=uuid.uuid4,
                        editable=False,
                        primary_key=True,
                        serialize=False,
                    ),
                ),
                ("created", models.DateTimeField(auto_now_add=True)),
                ("updated", models.DateTimeField(auto_now=True)),
                (
                    "zettle_created",
                    models.DateTimeField(
                        help_text="The date and time this receipt was created in Zettles end"
                    ),
                ),
                (
                    "receipt_number",
                    models.IntegerField(help_text="The Zettle receipt number."),
                ),
                (
                    "vat",
                    models.DecimalField(
                        decimal_places=2,
                        help_text="The part of the total amount which is VAT",
                        max_digits=12,
                    ),
                ),
                (
                    "total",
                    models.DecimalField(
                        decimal_places=2,
                        help_text="The total amount the customer paid",
                        max_digits=12,
                    ),
                ),
                (
                    "fee",
                    models.DecimalField(
                        decimal_places=2,
                        help_text="The payment fee BornHack has to pay to receive this payment",
                        max_digits=12,
                    ),
                ),
                (
                    "net",
                    models.DecimalField(
                        decimal_places=2,
                        help_text="The part of the payment which goes to BornHack after fees have been substracted.",
                        max_digits=12,
                    ),
                ),
                (
                    "payment_method",
                    models.CharField(help_text="The payment method", max_length=100),
                ),
                (
                    "card_issuer",
                    models.CharField(
                        blank=True,
                        help_text="The card issuer. Can be empty if this was not a card payment.",
                        max_length=100,
                        null=True,
                    ),
                ),
                (
                    "staff",
                    models.CharField(
                        help_text="The Zettle account which was used to make this sale.",
                        max_length=100,
                    ),
                ),
                (
                    "description",
                    models.CharField(
                        help_text="The description of this transaction.", max_length=255
                    ),
                ),
                ("sold_via", models.CharField(help_text="Always POS?", max_length=100)),
            ],
            options={
                "ordering": ["-zettle_created"],
                "get_latest_by": ["zettle_created"],
            },
        ),
    ]

[((20, 20, 25, 21), 'django.db.models.UUIDField', 'models.UUIDField', (), '', False, 'from django.db import migrations, models\n'), ((27, 28, 27, 67), 'django.db.models.DateTimeField', 'models.DateTimeField', (), '', False, 'from django.db import migrations, models\n'), ((28, 28, 28, 63), 'django.db.models.DateTimeField', 'models.DateTimeField', (), '', False, 'from django.db import migrations, models\n'), ((31, 20, 33, 21), 'django.db.models.DateTimeField', 'models.DateTimeField', (), '', False, 'from django.db import migrations, models\n'), ((37, 20, 41, 21), 'django.db.models.DateTimeField', 'models.DateTimeField', (), '', False, 'from django.db import migrations, models\n'), ((45, 20, 49, 21), 'django.db.models.IntegerField', 'models.IntegerField', (), '', False, 'from django.db import migrations, models\n'), ((53, 20, 55, 21), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import migrations, models\n'), ((59, 20, 63, 21), 'django.db.models.DecimalField', 'models.DecimalField', (), '', False, 'from django.db import migrations, models\n'), ((67, 20, 71, 21), 'django.db.models.DecimalField', 'models.DecimalField', (), '', False, 'from django.db import migrations, models\n'), ((84, 20, 89, 21), 'django.db.models.UUIDField', 'models.UUIDField', (), '', False, 'from django.db import migrations, models\n'), ((91, 28, 91, 67), 'django.db.models.DateTimeField', 'models.DateTimeField', (), '', False, 'from django.db import migrations, models\n'), ((92, 28, 92, 63), 'django.db.models.DateTimeField', 'models.DateTimeField', (), '', False, 'from django.db import migrations, models\n'), ((95, 20, 97, 21), 'django.db.models.DateTimeField', 'models.DateTimeField', (), '', False, 'from django.db import migrations, models\n'), ((101, 20, 101, 79), 'django.db.models.IntegerField', 'models.IntegerField', (), '', False, 'from django.db import migrations, models\n'), ((105, 20, 109, 21), 'django.db.models.DecimalField', 'models.DecimalField', (), '', False, 'from django.db import migrations, models\n'), ((113, 20, 117, 21), 'django.db.models.DecimalField', 'models.DecimalField', (), '', False, 'from django.db import migrations, models\n'), ((121, 20, 125, 21), 'django.db.models.DecimalField', 'models.DecimalField', (), '', False, 'from django.db import migrations, models\n'), ((129, 20, 133, 21), 'django.db.models.DecimalField', 'models.DecimalField', (), '', False, 'from django.db import migrations, models\n'), ((137, 20, 137, 84), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import migrations, models\n'), ((141, 20, 146, 21), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import migrations, models\n'), ((150, 20, 153, 21), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import migrations, models\n'), ((157, 20, 159, 21), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import migrations, models\n'), ((161, 29, 161, 86), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import migrations, models\n')]