# 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"],
            },
        ),
    ]

[((408, 499), 'django.db.models.UUIDField', 'models.UUIDField', ([], {'default': 'uuid.uuid4', 'editable': '(False)', 'primary_key': '(True)', 'serialize': '(False)'}), '(default=uuid.uuid4, editable=False, primary_key=True,\n    serialize=False)\n', (424, 499), False, 'from django.db import migrations, models\n'), ((663, 702), 'django.db.models.DateTimeField', 'models.DateTimeField', ([], {'auto_now_add': '(True)'}), '(auto_now_add=True)\n', (683, 702), False, 'from django.db import migrations, models\n'), ((733, 768), 'django.db.models.DateTimeField', 'models.DateTimeField', ([], {'auto_now': '(True)'}), '(auto_now=True)\n', (753, 768), False, 'from django.db import migrations, models\n'), ((847, 953), 'django.db.models.DateTimeField', 'models.DateTimeField', ([], {'help_text': '"""The date and time this movement was added to the account statement."""'}), "(help_text=\n    'The date and time this movement was added to the account statement.')\n", (867, 953), False, 'from django.db import migrations, models\n'), ((1089, 1256), 'django.db.models.DateTimeField', '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)'}), "(blank=True, help_text=\n    'The date and time this payment was made. Can be empty if this transaction is not a customer payment.'\n    , null=True)\n", (1109, 1256), False, 'from django.db import migrations, models\n'), ((1441, 1598), 'django.db.models.IntegerField', 'models.IntegerField', ([], {'blank': '(True)', 'help_text': '"""The reference for this payment. Can be empty if this transaction is not a customer payment."""', 'null': '(True)'}), "(blank=True, help_text=\n    'The reference for this payment. Can be empty if this transaction is not a customer payment.'\n    , null=True)\n", (1460, 1598), False, 'from django.db import migrations, models\n'), ((1777, 1863), 'django.db.models.CharField', 'models.CharField', ([], {'help_text': '"""The description of this transaction."""', 'max_length': '(100)'}), "(help_text='The description of this transaction.',\n    max_length=100)\n", (1793, 1863), False, 'from django.db import migrations, models\n'), ((1994, 2095), 'django.db.models.DecimalField', 'models.DecimalField', ([], {'decimal_places': '(2)', 'help_text': '"""The amount of this transaction"""', 'max_digits': '(12)'}), "(decimal_places=2, help_text=\n    'The amount of this transaction', max_digits=12)\n", (2013, 2095), False, 'from django.db import migrations, models\n'), ((2275, 2400), 'django.db.models.DecimalField', 'models.DecimalField', ([], {'decimal_places': '(2)', 'help_text': '"""Our balance in Zettles systems after this transaction."""', 'max_digits': '(12)'}), "(decimal_places=2, help_text=\n    'Our balance in Zettles systems after this transaction.', max_digits=12)\n", (2294, 2400), False, 'from django.db import migrations, models\n'), ((2829, 2920), 'django.db.models.UUIDField', 'models.UUIDField', ([], {'default': 'uuid.uuid4', 'editable': '(False)', 'primary_key': '(True)', 'serialize': '(False)'}), '(default=uuid.uuid4, editable=False, primary_key=True,\n    serialize=False)\n', (2845, 2920), False, 'from django.db import migrations, models\n'), ((3084, 3123), 'django.db.models.DateTimeField', 'models.DateTimeField', ([], {'auto_now_add': '(True)'}), '(auto_now_add=True)\n', (3104, 3123), False, 'from django.db import migrations, models\n'), ((3154, 3189), 'django.db.models.DateTimeField', 'models.DateTimeField', ([], {'auto_now': '(True)'}), '(auto_now=True)\n', (3174, 3189), False, 'from django.db import migrations, models\n'), ((3268, 3364), 'django.db.models.DateTimeField', 'models.DateTimeField', ([], {'help_text': '"""The date and time this receipt was created in Zettles end"""'}), "(help_text=\n    'The date and time this receipt was created in Zettles end')\n", (3288, 3364), False, 'from django.db import migrations, models\n'), ((3502, 3561), 'django.db.models.IntegerField', 'models.IntegerField', ([], {'help_text': '"""The Zettle receipt number."""'}), "(help_text='The Zettle receipt number.')\n", (3521, 3561), False, 'from django.db import migrations, models\n'), ((3647, 3759), 'django.db.models.DecimalField', 'models.DecimalField', ([], {'decimal_places': '(2)', 'help_text': '"""The part of the total amount which is VAT"""', 'max_digits': '(12)'}), "(decimal_places=2, help_text=\n    'The part of the total amount which is VAT', max_digits=12)\n", (3666, 3759), False, 'from django.db import migrations, models\n'), ((3937, 4042), 'django.db.models.DecimalField', 'models.DecimalField', ([], {'decimal_places': '(2)', 'help_text': '"""The total amount the customer paid"""', 'max_digits': '(12)'}), "(decimal_places=2, help_text=\n    'The total amount the customer paid', max_digits=12)\n", (3956, 4042), False, 'from django.db import migrations, models\n'), ((4218, 4352), 'django.db.models.DecimalField', 'models.DecimalField', ([], {'decimal_places': '(2)', 'help_text': '"""The payment fee BornHack has to pay to receive this payment"""', 'max_digits': '(12)'}), "(decimal_places=2, help_text=\n    'The payment fee BornHack has to pay to receive this payment',\n    max_digits=12)\n", (4237, 4352), False, 'from django.db import migrations, models\n'), ((4524, 4680), 'django.db.models.DecimalField', 'models.DecimalField', ([], {'decimal_places': '(2)', 'help_text': '"""The part of the payment which goes to BornHack after fees have been substracted."""', 'max_digits': '(12)'}), "(decimal_places=2, help_text=\n    'The part of the payment which goes to BornHack after fees have been substracted.'\n    , max_digits=12)\n", (4543, 4680), False, 'from django.db import migrations, models\n'), ((4862, 4926), 'django.db.models.CharField', 'models.CharField', ([], {'help_text': '"""The payment method"""', 'max_length': '(100)'}), "(help_text='The payment method', max_length=100)\n", (4878, 4926), False, 'from django.db import migrations, models\n'), ((5020, 5159), 'django.db.models.CharField', 'models.CharField', ([], {'blank': '(True)', 'help_text': '"""The card issuer. Can be empty if this was not a card payment."""', 'max_length': '(100)', 'null': '(True)'}), "(blank=True, help_text=\n    'The card issuer. Can be empty if this was not a card payment.',\n    max_length=100, null=True)\n", (5036, 5159), False, 'from django.db import migrations, models\n'), ((5357, 5460), 'django.db.models.CharField', 'models.CharField', ([], {'help_text': '"""The Zettle account which was used to make this sale."""', 'max_length': '(100)'}), "(help_text=\n    'The Zettle account which was used to make this sale.', max_length=100)\n", (5373, 5460), False, 'from django.db import migrations, models\n'), ((5620, 5706), 'django.db.models.CharField', 'models.CharField', ([], {'help_text': '"""The description of this transaction."""', 'max_length': '(255)'}), "(help_text='The description of this transaction.',\n    max_length=255)\n", (5636, 5706), False, 'from django.db import migrations, models\n'), ((5798, 5855), 'django.db.models.CharField', 'models.CharField', ([], {'help_text': '"""Always POS?"""', 'max_length': '(100)'}), "(help_text='Always POS?', max_length=100)\n", (5814, 5855), False, 'from django.db import migrations, models\n')]