flexprice/flexprice-front

Wrong Frontend Calculation in Preview during Create Subscription flow

Ouverte

#360 ouverte le 16 sept. 2025

 (1 commentaire) (0 réaction) (0 personne assignée)TypeScript (106 forks)auto 404
buggood first issuehacktoberfesthelp wanted

Métriques du dépôt

Stars
 (32 étoiles)
Métriques de merge PR
 (Merge moyen 1j 1h) (116 PRs mergées en 30 j)

Description

Problem

  • As we continue to add more entities within a subscription, the calculation logic on the frontend is increasingly diverging from the backend.
  • This results in inconsistent values being displayed to users and introduces room for errors, especially as the logic becomes more complex.

Goal

Define a single source of truth for subscription-related calculations that can be consistently applied across both frontend and backend. This could involve introducing a shared rules engine (e.g., JSON-based rules or configuration-driven approach) to ensure all calculations remain accurate, maintainable, and easy to extend in the future. Open for discussion.

Guide contributeur