A three-year deal totals three years, not one month of it

Fixkamo-shared-library
Shipped
2 Septemba 2026, 07:25 UTC
Author
Kamo
Commit
1cf085a

Two faults, both showing a monthly figure where the term's value belonged. 1. The headline took periodTotal + setup. On a MONTHLY option committed to 36 months that is ONE MONTH, understating the deal by the length of the term. It now takes the greater of that and contractTotal — a committed term is worth what it commits to. This deliberately no longer consults the billing basis: WHEN the money is collected is what that setting decides, and it still governs QuoteConversionService; what the deal is WORTH does not change because of it. 2. With no option flagged recommended, the headline fell to opts.get(0). Sales list the monthly alternative first, so a Monthly / Yearly / 3-Year quote was listed at its MONTHLY price no matter what the other options said. It now falls back to the largest committed TERM. Ranking by money instead picks whichever alternative carries the highest per-period price — normally the monthly one, since paying monthly is the dearest way to buy — which is the very figure the fallback exists to stop showing. Also removes a rounding round trip: a term committed to its own length was divided to a monthly rate and multiplied back, so a three-year option priced at 6760 stored 6760.0008. It is now stated directly. That drift is in production rows today.

All changes

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei