Skip to content

Commit

Permalink
Reset changes in service unit model, to avoid migration
Browse files Browse the repository at this point in the history
  • Loading branch information
juho-kettunen-nc committed Nov 20, 2024
1 parent 9e4c041 commit 017c73a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.2.14 on 2024-11-20 11:01
# Generated by Django 4.2.14 on 2024-11-20 12:46

from django.db import migrations, models

Expand All @@ -15,14 +15,7 @@ class Migration(migrations.Migration):
name="use_rent_override_receivable_type",
field=models.BooleanField(
default=False,
help_text="Use the override receivable type from rent in "
"automatic invoices, if it is present. When creating a rent, some "
"service units (such as AKV and KuVa) want to select a receivable "
"type to be used in future automatic invoices. This helps avoid "
"some technical difficulties in invoice XML generation. "
"Generation logic would otherwise be unaware of the desired "
"receivable type, if it is different from the service unit's "
"default receivable type, or the leasetype's receivable type.",
help_text="Use the override receivable type from rent in automatic invoices, if it is present. When creating a rent, some service units (such as AKV and KuVa) want to select a receivable type to be used in future automatic invoices. This helps avoid some technical difficulties in invoice XML generation. Generation logic would otherwise be unaware of the desired receivable type, if it is different from the service unit's default receivable type, or the leasetype's receivable type.",
verbose_name="Use the override receivable type from rent in automatic invoices?",
),
),
Expand Down
17 changes: 9 additions & 8 deletions leasing/models/service_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,17 @@ class ServiceUnit(TimeStampedSafeDeleteModel):
)
use_rent_override_receivable_type = models.BooleanField(
verbose_name=_(
"Use the override receivabletype from rent in automatic invoices?"
"Use the override receivable type from rent in automatic invoices?"
),
help_text=_(
"Use the override receivable type from rent in automatic invoices, if "
"it is present. When creating a rent, some service units (such as AKV "
"and KuVa) want to select a receivable type to be used in future "
"automatic invoices. This helps avoid some technical difficulties in "
"invoice XML generation. Generation logic would otherwise be unaware "
"of the desired receivable type, if it is different from the service "
"unit's default receivable type, or the leasetype's receivable type."
"Use the override receivable type from rent in "
"automatic invoices, if it is present. When creating a rent, some "
"service units (such as AKV and KuVa) want to select a receivable "
"type to be used in future automatic invoices. This helps avoid "
"some technical difficulties in invoice XML generation. "
"Generation logic would otherwise be unaware of the desired "
"receivable type, if it is different from the service unit's "
"default receivable type, or the leasetype's receivable type."
),
default=False,
)
Expand Down

0 comments on commit 017c73a

Please sign in to comment.