🐛 fix(template/order): Corrige calcul des prix des options annuelles et mensuelles.

This commit is contained in:
Serreau Jovann
2025-11-04 11:53:12 +01:00
parent 36b9b0eaf0
commit cac40ce67b

View File

@@ -336,7 +336,7 @@
currentInitialTotal += parseFloat(optionPriceTotal); // AJOUT : L'option annuelle est facturée immédiatement
displayPeriod = '/ an';
priceText = formatPrice(optionPriceTotal) + displayPeriod;
%} else {
} else {
currentMonthlyTotal += optionPriceTotal;
displayPeriod = '/ mois';
@@ -353,7 +353,7 @@
<span class="font-medium text-right text-gray-800 whitespace-nowrap">+${priceText}</span>
</li>
`;
%}
}
});
// Mise à jour de l'affichage