openfun / joanie

👛 A headless ERP for education to manage course enrollment/subscription, payment and certificates delivery.
MIT License
20 stars 2 forks source link

Contract template - Header duration not in hours #741

Closed jbpenrath closed 2 months ago

jbpenrath commented 3 months ago

Bug Report

Problematic behavior In the contract definition template, in the header, the course effort is displayed in several units according to its value.

image

Expected behavior/code In the contract definition template, in the header, the course effort should be displayed in hours.

I did not reproduce this issue in my local environment ... My assumption is that we are reaching the else statement in the contract definition template. (L104 in the following code sample) https://github.com/openfun/joanie/blob/b7491ec2378e7f5ecd819f28042bcde578ff65da/src/backend/joanie/core/templates/issuers/contract_definition.html#L94-L108