2016-08-24 20:09:23 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2019-10-05 22:32:54 +00:00
|
|
|
import django.db.models.deletion
|
2024-06-24 11:07:36 +00:00
|
|
|
from django.db import migrations, models
|
2016-08-24 20:09:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
2018-10-04 19:29:19 +00:00
|
|
|
("club", "0001_initial"),
|
|
|
|
("accounting", "0001_initial"),
|
|
|
|
("core", "0001_initial"),
|
2016-08-24 20:09:23 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.AddField(
|
2018-10-04 19:29:19 +00:00
|
|
|
model_name="operation",
|
|
|
|
name="invoice",
|
|
|
|
field=models.ForeignKey(
|
|
|
|
null=True,
|
|
|
|
related_name="operations",
|
|
|
|
verbose_name="invoice",
|
|
|
|
to="core.SithFile",
|
|
|
|
blank=True,
|
2019-10-05 22:32:54 +00:00
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
2018-10-04 19:29:19 +00:00
|
|
|
),
|
2016-08-24 20:09:23 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
2018-10-04 19:29:19 +00:00
|
|
|
model_name="operation",
|
|
|
|
name="journal",
|
|
|
|
field=models.ForeignKey(
|
|
|
|
verbose_name="journal",
|
|
|
|
to="accounting.GeneralJournal",
|
|
|
|
related_name="operations",
|
2019-10-05 22:32:54 +00:00
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
2018-10-04 19:29:19 +00:00
|
|
|
),
|
2016-08-24 20:09:23 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
2018-10-04 19:29:19 +00:00
|
|
|
model_name="operation",
|
|
|
|
name="linked_operation",
|
|
|
|
field=models.OneToOneField(
|
2019-10-05 22:38:25 +00:00
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
2018-10-04 19:29:19 +00:00
|
|
|
blank=True,
|
|
|
|
to="accounting.Operation",
|
|
|
|
null=True,
|
|
|
|
related_name="operation_linked_to",
|
|
|
|
verbose_name="linked operation",
|
|
|
|
default=None,
|
|
|
|
),
|
2016-08-24 20:09:23 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
2018-10-04 19:29:19 +00:00
|
|
|
model_name="operation",
|
|
|
|
name="simpleaccounting_type",
|
|
|
|
field=models.ForeignKey(
|
|
|
|
null=True,
|
|
|
|
related_name="operations",
|
|
|
|
verbose_name="simple type",
|
|
|
|
to="accounting.SimplifiedAccountingType",
|
|
|
|
blank=True,
|
2019-10-05 22:32:54 +00:00
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
2018-10-04 19:29:19 +00:00
|
|
|
),
|
2016-08-24 20:09:23 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
2018-10-04 19:29:19 +00:00
|
|
|
model_name="generaljournal",
|
|
|
|
name="club_account",
|
|
|
|
field=models.ForeignKey(
|
|
|
|
verbose_name="club account",
|
|
|
|
to="accounting.ClubAccount",
|
|
|
|
related_name="journals",
|
2019-10-05 22:32:54 +00:00
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
2018-10-04 19:29:19 +00:00
|
|
|
),
|
2016-08-24 20:09:23 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
2018-10-04 19:29:19 +00:00
|
|
|
model_name="clubaccount",
|
|
|
|
name="bank_account",
|
|
|
|
field=models.ForeignKey(
|
|
|
|
verbose_name="bank account",
|
|
|
|
to="accounting.BankAccount",
|
|
|
|
related_name="club_accounts",
|
2019-10-05 22:32:54 +00:00
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
2018-10-04 19:29:19 +00:00
|
|
|
),
|
2016-08-24 20:09:23 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
2018-10-04 19:29:19 +00:00
|
|
|
model_name="clubaccount",
|
|
|
|
name="club",
|
|
|
|
field=models.ForeignKey(
|
2019-10-05 22:32:54 +00:00
|
|
|
verbose_name="club",
|
|
|
|
to="club.Club",
|
|
|
|
related_name="club_account",
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
2018-10-04 19:29:19 +00:00
|
|
|
),
|
2016-08-24 20:09:23 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
2018-10-04 19:29:19 +00:00
|
|
|
model_name="bankaccount",
|
|
|
|
name="club",
|
|
|
|
field=models.ForeignKey(
|
2019-10-05 22:32:54 +00:00
|
|
|
verbose_name="club",
|
|
|
|
to="club.Club",
|
|
|
|
related_name="bank_accounts",
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
2018-10-04 19:29:19 +00:00
|
|
|
),
|
2016-08-24 20:09:23 +00:00
|
|
|
),
|
|
|
|
migrations.AlterUniqueTogether(
|
2018-10-04 19:29:19 +00:00
|
|
|
name="operation", unique_together=set([("number", "journal")])
|
2016-08-24 20:09:23 +00:00
|
|
|
),
|
|
|
|
]
|