Skip to content

Sync and remove discounts on Richie when discounted seats expire #1194

@NamFra

Description

@NamFra

Bug Report

Problematic behavior
All discount feature synchronizations are operational (#1138) but there is still a use case that causes a problem: the return to the base price after the expiration of discounted seats.

The update does not occur, which leaves the discounted price displayed on the catalog glimpse (for products of type credential) and at the course run level of the syllabus (for products of type certificate).

  • Credential product (discount on glimpse):
Image
  • Certificate product (discount on syllabus):
Image

Expected behavior/code
Remove discounted price everywhere when seats expire.

Steps to Reproduce

  1. In Joanie, create an Offering Rule with a discount (rate or amount) and a limited number of seats
  2. Exhaust the number of seats by registering for the product
  3. See the reduced price always displayed on the course glimpse (if it's a training) or on the syllabus (if it is a MOOC certificate)

Environment

  • Joanie version: v3.0.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions