-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add use_rent_override_receivable_type to ServiceUnit
- Loading branch information
1 parent
2b11c78
commit 0431adf
Showing
6 changed files
with
51 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
leasing/migrations/0081_serviceunit_use_rent_override_receivable_type.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Generated by Django 4.2.14 on 2024-11-20 11:01 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("leasing", "0080_alter_contact_options"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="serviceunit", | ||
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.", | ||
verbose_name="Use the override receivable type from rent in automatic invoices?", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,5 @@ class Meta: | |
"id", | ||
"name", | ||
# "description", | ||
"use_rent_override_receivable_type", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters