-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add model for application alterations
- Loading branch information
1 parent
7f88cc5
commit 191d031
Showing
6 changed files
with
313 additions
and
15 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
38 changes: 38 additions & 0 deletions
38
backend/benefit/applications/migrations/0059_applicationalteration.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,38 @@ | ||
# Generated by Django 3.2.23 on 2024-02-22 08:04 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('applications', '0058_alter_historicalapplication_history_change_reason'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='ApplicationAlteration', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('created_at', models.DateTimeField(auto_now_add=True, verbose_name='time created')), | ||
('modified_at', models.DateTimeField(auto_now=True, verbose_name='time modified')), | ||
('alteration_type', models.TextField(choices=[('termination', 'Termination'), ('suspension', 'Suspension')], verbose_name='type of alteration')), | ||
('end_date', models.DateField(verbose_name='new benefit end date')), | ||
('resume_date', models.DateField(blank=True, null=True, verbose_name='date when employment resumes after suspended')), | ||
('reason', models.TextField(verbose_name='reason for alteration')), | ||
('handled_at', models.DateField(blank=True, null=True, verbose_name='date when alteration notice was handled')), | ||
('recovery_start_date', models.DateField(blank=True, null=True, verbose_name='the first day the unwarranted benefit will be collected from')), | ||
('recovery_end_date', models.DateField(blank=True, null=True, verbose_name='the last day the unwarranted benefit will be collected from')), | ||
('recovery_amount', models.DecimalField(decimal_places=2, max_digits=8, null=True, verbose_name='amount of unwarranted benefit to be collected')), | ||
('use_alternate_einvoice_provider', models.BooleanField(default=False, verbose_name='whether to use a separate e-invoice address from the one of the applicant organization')), | ||
('einvoice_provider_name', models.TextField(blank=True, verbose_name='name of the e-invoice provider')), | ||
('einvoice_provider_identifier', models.TextField(blank=True, verbose_name='identifier of the e-invoice provider')), | ||
('einvoice_address', models.TextField(blank=True, verbose_name='e-invoice address')), | ||
('application', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='alteration_set', to='applications.application', verbose_name='alteration of application')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
] |
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2024-01-25 18:30+0200\n" | ||
"POT-Creation-Date: 2024-02-19 10:35+0200\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
@@ -374,7 +374,7 @@ msgstr "" | |
msgid "Delete request received" | ||
msgstr "" | ||
|
||
msgid "Allow/disallow applicant's modifications" | ||
msgid "Allow/disallow applicant's modifications to the application" | ||
msgstr "" | ||
|
||
msgid "Success" | ||
|
@@ -389,6 +389,15 @@ msgstr "" | |
msgid "Delete application in Ahjo" | ||
msgstr "" | ||
|
||
msgid "Update application in Ahjo" | ||
msgstr "" | ||
|
||
msgid "Termination" | ||
msgstr "" | ||
|
||
msgid "Suspension" | ||
msgstr "" | ||
|
||
#, python-brace-format | ||
msgid "" | ||
"Your application {id} will be deleted soon. If you want to continue the " | ||
|
@@ -632,6 +641,47 @@ msgstr "" | |
msgid "ahjo statuses" | ||
msgstr "" | ||
|
||
msgid "alteration of application" | ||
msgstr "" | ||
|
||
msgid "type of alteration" | ||
msgstr "" | ||
|
||
msgid "new benefit end date" | ||
msgstr "" | ||
|
||
msgid "date when employment resumes after suspended" | ||
msgstr "" | ||
|
||
msgid "reason for alteration" | ||
msgstr "" | ||
|
||
msgid "date when alteration notice was handled" | ||
msgstr "" | ||
|
||
msgid "the first day the unwarranted benefit will be collected from" | ||
msgstr "" | ||
|
||
msgid "the last day the unwarranted benefit will be collected from" | ||
msgstr "" | ||
|
||
msgid "amount of unwarranted benefit to be collected" | ||
msgstr "" | ||
|
||
msgid "" | ||
"whether to use a separate e-invoice address from the one of the applicant " | ||
"organization" | ||
msgstr "" | ||
|
||
msgid "name of the e-invoice provider" | ||
msgstr "" | ||
|
||
msgid "identifier of the e-invoice provider" | ||
msgstr "" | ||
|
||
msgid "e-invoice address" | ||
msgstr "" | ||
|
||
msgid "Not found" | ||
msgstr "" | ||
|
||
|
@@ -862,9 +912,6 @@ msgstr "" | |
msgid "handler" | ||
msgstr "" | ||
|
||
msgid "applicant" | ||
msgstr "" | ||
|
||
msgid "calculation" | ||
msgstr "" | ||
|
||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: \n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2024-01-25 18:30+0200\n" | ||
"POT-Creation-Date: 2024-02-19 10:35+0200\n" | ||
"PO-Revision-Date: 2022-11-01 10:45+0200\n" | ||
"Last-Translator: Kari Salminen <[email protected]>\n" | ||
"Language-Team: \n" | ||
|
@@ -409,7 +409,7 @@ msgstr "" | |
msgid "Delete request received" | ||
msgstr "" | ||
|
||
msgid "Allow/disallow applicant's modifications" | ||
msgid "Allow/disallow applicant's modifications to the application" | ||
msgstr "" | ||
|
||
msgid "Success" | ||
|
@@ -428,6 +428,17 @@ msgstr "Hylätty Ahjossa" | |
msgid "Delete application in Ahjo" | ||
msgstr "Puutteellinen hakemus" | ||
|
||
#, fuzzy | ||
#| msgid "Incomplete application" | ||
msgid "Update application in Ahjo" | ||
msgstr "Puutteellinen hakemus" | ||
|
||
msgid "Termination" | ||
msgstr "Päättynyt" | ||
|
||
msgid "Suspension" | ||
msgstr "Keskeytynyt" | ||
|
||
#, python-brace-format | ||
msgid "" | ||
"Your application {id} will be deleted soon. If you want to continue the " | ||
|
@@ -691,6 +702,48 @@ msgstr "tila" | |
msgid "ahjo statuses" | ||
msgstr "tila" | ||
|
||
msgid "alteration of application" | ||
msgstr "Muutos hakemukseen" | ||
|
||
msgid "type of alteration" | ||
msgstr "Muutoksen tyyppi" | ||
|
||
msgid "new benefit end date" | ||
msgstr "Uusi avustuksen päättymispäivä" | ||
|
||
msgid "date when employment resumes after suspended" | ||
msgstr "Avustuksen jatkumispäivä keskeytymisen jälkeen" | ||
|
||
msgid "reason for alteration" | ||
msgstr "Muutoksen syy" | ||
|
||
msgid "date when alteration notice was handled" | ||
msgstr "Muutosilmoituksen käsittelypäivä" | ||
|
||
msgid "the first day the unwarranted benefit will be collected from" | ||
msgstr "Takaisinperinnän alkamispäivä" | ||
|
||
msgid "the last day the unwarranted benefit will be collected from" | ||
msgstr "Takaisinperinnän päättymispäivä" | ||
|
||
msgid "amount of unwarranted benefit to be collected" | ||
msgstr "Takaisinperittävä summa" | ||
|
||
msgid "" | ||
"whether to use a separate e-invoice address from the one of the applicant " | ||
"organization" | ||
msgstr "Käytetäänkö eri verkkolaskuosoitetta kuin hakijaorganisaation " | ||
"verkkolaskuosoitetta?" | ||
|
||
msgid "name of the e-invoice provider" | ||
msgstr "Verkkolaskuoperaattorin nimi" | ||
|
||
msgid "identifier of the e-invoice provider" | ||
msgstr "Välittäjän tunnus" | ||
|
||
msgid "e-invoice address" | ||
msgstr "Verkkolaskuosoite" | ||
|
||
#, fuzzy | ||
#| msgid "File not found." | ||
msgid "Not found" | ||
|
@@ -934,9 +987,6 @@ msgstr "Laskelma on jo olemassa" | |
msgid "handler" | ||
msgstr "käsittelijä" | ||
|
||
msgid "applicant" | ||
msgstr "hakija" | ||
|
||
msgid "calculation" | ||
msgstr "laskelma" | ||
|
||
|
@@ -1211,6 +1261,9 @@ msgstr "palveluehtojen hyväksyntä" | |
msgid "terms of service approvals" | ||
msgstr "palveluehtojen hyväksynnät" | ||
|
||
#~ msgid "applicant" | ||
#~ msgstr "hakija" | ||
|
||
#~ msgid "Social security number checksum invalid" | ||
#~ msgstr "Epäkelpo henkilötunnuksen tarkistussumma" | ||
|
||
|
Oops, something went wrong.