Skip to content

Commit

Permalink
fix: wrong condition, should check instalments count
Browse files Browse the repository at this point in the history
  • Loading branch information
sirtawast committed Dec 17, 2024
1 parent 2a72155 commit c33d293
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/benefit/calculator/api/v1/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def patch(self, request, instalment_id):
application.save()

if instalment_status == InstalmentStatus.PAID:
if instalment.instalment_number == 1:
if instalment_count == 1:
application.talpa_status = (
ApplicationTalpaStatus.SUCCESSFULLY_SENT_TO_TALPA
)
Expand Down

0 comments on commit c33d293

Please sign in to comment.