Skip to content

Commit

Permalink
show f680 approval info instead of nlr
Browse files Browse the repository at this point in the history
  • Loading branch information
markj0hnst0n committed Jan 17, 2025
1 parent 1f8c276 commit 550f7c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions caseworker/cases/forms/finalise_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ def approve_licence_form(queue_pk, case_id, is_open_licence, editable_duration,
)


def deny_licence_form(queue_pk, case_id, is_open_licence, nlr):
if nlr:
def deny_licence_form(queue_pk, case_id, is_open_licence, nlr, is_case_f680):
if is_case_f680:
description = "You'll be approving this F680 application"
elif nlr:
description = "You'll be informing the exporter that no licence is required"
else:
description = "You'll be denying the case"
Expand Down
2 changes: 2 additions & 0 deletions caseworker/cases/views/advice.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ def get(self, request, *args, **kwargs):
approve = False
all_nlr = False
is_case_open = case_type == CaseType.OPEN.value
is_case_f680 = case_type == "f680_clearance"

if is_case_open:
approve = get_open_licence_decision(request, str(kwargs["pk"])) == "approve"
Expand Down Expand Up @@ -203,6 +204,7 @@ def get(self, request, *args, **kwargs):
case_id,
is_case_open,
all_nlr,
is_case_f680,
),
)

Expand Down

0 comments on commit 550f7c4

Please sign in to comment.