Skip to content

Conversation

@jonathanreveille
Copy link
Member

@jonathanreveille jonathanreveille commented Mar 3, 2025

Purpose

We want a person from a company to be able to prepare a group of orders by reserving an amount of seats for a session. The company will first need to sign a convention (a contract) where all the trainees are written down, and only once the document is signed he can proceed to the payment of the batch order. When the payment has succeeded, the person who initiated the demand will receive an email with the confirmation of his order and he will get vouchers to hand out to the employees that figure on the convention only.
The vouchers will be discounted at 100%, meaning that the employees will just need to enter the voucher code on the session and they will get access to the course.

Notes:

  • all the "students" of that batch order will be affected to the same organization.
  • the company will need to list of his students he wishes to subscribe to that session.
  • the payment of the batch order will generate the orders without owners and return vouchers

Proposal

  • create batch order model and add relations with other models
  • update signature backends for submitting convention
  • create api client viewset to create/retrieve and to submit for signature and payment a batch order
  • refactor generate contract document
  • add debug views to oversee sent email when success/failure a batch order payment

@jonathanreveille jonathanreveille self-assigned this Mar 3, 2025
@jonathanreveille jonathanreveille changed the title WIP ✨ (backend) Feat/purchase order to enrollment multiple students WIP ✨ (backend) purchase order for multiple students Mar 3, 2025
@jonathanreveille jonathanreveille force-pushed the feat/purchase_order_to_enrollment_multiple_students branch 4 times, most recently from 5fc0077 to a38f23c Compare March 4, 2025 13:27
@jonathanreveille jonathanreveille changed the title WIP ✨ (backend) purchase order for multiple students WIP ✨ (backend) purchase more than 1 seat for an offer Mar 4, 2025
@jonathanreveille jonathanreveille changed the title WIP ✨ (backend) purchase more than 1 seat for an offer WIP ✨ (backend) prepare batch of orders Mar 6, 2025
@jonathanreveille jonathanreveille force-pushed the feat/purchase_order_to_enrollment_multiple_students branch 11 times, most recently from 64a8b44 to e3dbe22 Compare March 14, 2025 16:49
@jonathanreveille jonathanreveille force-pushed the feat/purchase_order_to_enrollment_multiple_students branch 11 times, most recently from 54fd3a5 to 0b426df Compare March 21, 2025 17:16
@jonathanreveille jonathanreveille force-pushed the feat/purchase_order_to_enrollment_multiple_students branch 15 times, most recently from 9713234 to e39fc53 Compare April 14, 2025 12:52
@jonathanreveille jonathanreveille force-pushed the feat/purchase_order_to_enrollment_multiple_students branch 3 times, most recently from 456ad4c to 6a3e46a Compare April 14, 2025 16:37
We want a person from a company to be able to place
a batch order for their employees to follow a session.
We created this model to track down the session they
want to follow, we prepare the estimated total, and
the contract.
To facilitate the transition and actions between different
steps of the batch order lifecycle, we have decided to
add states.
Added new endpoints to submit for signature the contract of a
batch order and to submit for payment the batch order. Some
adjustments were made into the the signature backend and
the payment backend.
To facilitate the evolution to generate different
context for contracts, we have decided to refactor
the main method into chunks that prepare each
sections.
@jonathanreveille jonathanreveille force-pushed the feat/purchase_order_to_enrollment_multiple_students branch from 6a3e46a to e2c64db Compare April 14, 2025 16:39
To improve our developers experience, we added a
debug view to preview the mail sent when a batch
order payment has succeeded.
@jonathanreveille jonathanreveille force-pushed the feat/purchase_order_to_enrollment_multiple_students branch from e2c64db to da498fc Compare April 15, 2025 07:50
@jonathanreveille jonathanreveille merged commit b90bcfd into development Apr 15, 2025
17 checks passed
@jonathanreveille jonathanreveille deleted the feat/purchase_order_to_enrollment_multiple_students branch April 15, 2025 08:09
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.

4 participants