Skip to content

Commit

Permalink
fix: should archive always if only 1 payment is done
Browse files Browse the repository at this point in the history
  • Loading branch information
sirtawast committed Dec 17, 2024
1 parent 4fa2909 commit 2a72155
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions backend/benefit/calculator/api/v1/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,7 @@ def patch(self, request, instalment_id):
ApplicationTalpaStatus.PARTIALLY_SENT_TO_TALPA
)
instalment.amount_paid = instalment.amount_after_recoveries

if instalment_count == 1:
application.archived = True

application.archived = True
instalment.save()
application.save()
return Response(serializer.data, status=status.HTTP_200_OK)
Expand Down

0 comments on commit 2a72155

Please sign in to comment.