Skip to content

🐛(backend) enrollment and download agreement for batch orders#1342

Open
jonathanreveille wants to merge 2 commits into
mainfrom
hotfix/batch_order_enroll_student_purchase_order_contract_not_signed
Open

🐛(backend) enrollment and download agreement for batch orders#1342
jonathanreveille wants to merge 2 commits into
mainfrom
hotfix/batch_order_enroll_student_purchase_order_contract_not_signed

Conversation

@jonathanreveille
Copy link
Copy Markdown
Member

@jonathanreveille jonathanreveille commented Jun 5, 2026

Purpose

Fix enrollments from batch order with purchase order method for student to enroll when the contract is not yet signed.
Fix on download action and permissions of an agreement from the owner's dashboard.

Proposal

  • update clean method in Enrollment model
  • update permissions and get_queryset in OrganizationAgreementViewSet

@jonathanreveille jonathanreveille self-assigned this Jun 5, 2026
@jonathanreveille jonathanreveille changed the title Hotfix/batch order enroll student purchase order contract not signed 🐛 Hotfix/batch order enroll student purchase order contract not signed Jun 5, 2026
@jonathanreveille jonathanreveille changed the title 🐛 Hotfix/batch order enroll student purchase order contract not signed 🐛(backend) batch order enroll student purchase order contract not signed Jun 5, 2026
@jonathanreveille jonathanreveille changed the title 🐛(backend) batch order enroll student purchase order contract not signed 🐛(backend) enrollment and download agreement Jun 5, 2026
@jonathanreveille jonathanreveille changed the title 🐛(backend) enrollment and download agreement 🐛(backend) enrollment and download agreement for batch orders Jun 5, 2026
@jonathanreveille jonathanreveille force-pushed the hotfix/batch_order_enroll_student_purchase_order_contract_not_signed branch from 773369c to 43566f7 Compare June 5, 2026 15:34
@jonathanreveille jonathanreveille requested a review from liamls June 5, 2026 15:43
Since we have changed the behavior of when the orders are generated
for a batch order with purchase order payment method, we forgot to
update the enrollment clean method, where it would check whether
the contract related is signed or not. With purchase order method,
we generate the orders before the contract is signed. This would
block the orders generated and the student to access the course
because their enrollment would fail.
We've updated the download and retrieve endpoint for the
`OrganizationAgreementViewSet`. Now, batch order owners
can retrieve their agreement once fully signed in pdf format.
@jonathanreveille jonathanreveille force-pushed the hotfix/batch_order_enroll_student_purchase_order_contract_not_signed branch from 43566f7 to a83b79d Compare June 5, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant