Implement comparable LTV engine and close WP-0005
This commit is contained in:
parent
656bbb81a5
commit
386c8a46fe
13 changed files with 1060 additions and 68 deletions
|
|
@ -30,7 +30,7 @@ def build_pricing_recommendations(
|
|||
if ai_spend > Decimal("0") and cost_per_member > Decimal("0"):
|
||||
ai_ratio = (ai_spend / cost_per_member) * Decimal("100")
|
||||
if ai_ratio > Decimal("15"):
|
||||
best = simulations.get("best_margin_scenario_id")
|
||||
best = simulations.get("best_ltv_scenario_id") or simulations.get("best_margin_scenario_id")
|
||||
recommendations.append(
|
||||
{
|
||||
"id": "usage-pricing-signal",
|
||||
|
|
@ -65,4 +65,4 @@ def build_pricing_recommendations(
|
|||
}
|
||||
)
|
||||
|
||||
return recommendations
|
||||
return recommendations
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue