Skip to content

Commit

Permalink
Add update_payment_accrued to form processor
Browse files Browse the repository at this point in the history
  • Loading branch information
pxwxnvermx committed Oct 30, 2024
1 parent 11d8e4e commit 88a0f52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions commcare_connect/form_receiver/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
VisitValidationStatus,
)
from commcare_connect.opportunity.tasks import download_user_visit_attachments
from commcare_connect.opportunity.visit_import import update_payment_accrued
from commcare_connect.users.models import User

LEARN_MODULE_JSONPATH = parse("$..module")
Expand Down Expand Up @@ -309,6 +310,7 @@ def process_deliver_unit(user, xform: XForm, app: CommCareApp, opportunity: Oppo
completed_work_needs_save = True
if completed_work_needs_save:
completed_work.save()
update_payment_accrued(opportunity, [user.id])
download_user_visit_attachments.delay(user_visit.id)


Expand Down

0 comments on commit 88a0f52

Please sign in to comment.