Skip to content

Commit

Permalink
fix: In application cloning force origin to be applicant (#3653)
Browse files Browse the repository at this point in the history
* fix: In application cloning force origin to be applicant

* fix:Use APPLICANT as source of test application

* fix:lower case to upper

* fix:added .

* fix:Imports are incorrectly sorted
  • Loading branch information
JanneJuhola authored Dec 13, 2024
1 parent ad88971 commit 7ec0dd9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion backend/benefit/applications/services/clone_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from applications.enums import (
AhjoStatus as AhjoStatusEnum,
ApplicationOrigin,
ApplicationStatus,
ApplicationStep,
AttachmentType,
Expand Down Expand Up @@ -42,7 +43,7 @@ def clone_application_based_on_other(
"alternative_company_postcode": application_base.alternative_company_postcode,
"alternative_company_street_address": application_base.alternative_company_street_address,
"applicant_language": "fi",
"application_origin": application_base.application_origin,
"application_origin": ApplicationOrigin.APPLICANT,
"application_step": ApplicationStep.STEP_1,
"archived": False,
"association_has_business_activities": application_base.association_has_business_activities
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def _set_up_decided_application():
co_operation_negotiations_description="Very co-operation. Much contract.",
paper_application_date="2024-10-23",
pay_subsidy_granted=PaySubsidyGranted.GRANTED,
application_origin=ApplicationOrigin.HANDLER,
application_origin=ApplicationOrigin.APPLICANT,
application_step=ApplicationStep.STEP_6,
batch=ApplicationBatchFactory(
proposal_for_decision=ApplicationStatus.ACCEPTED,
Expand Down

0 comments on commit 7ec0dd9

Please sign in to comment.