Publish King campaign report (manual update)

This commit is contained in:
SHAREit
2026-08-27 15:51:22 +08:00
parent 51603ba251
commit 89ca7531f0
3 changed files with 14 additions and 6 deletions
+3 -2
View File
@@ -425,7 +425,8 @@ def build_performance(revenue, sands, targets, period_days, month_days):
"completion": {
"revenue": ratio(revenue, targets.get("revenue") if targets else None),
"gp": ratio(gp, targets.get("gp") if targets else None),
"gp_rate": ratio(gp_rate, target_gp_rate),
# GP rate 是比率,不计算完成率;页面显示与目标的百分点差距
"gp_rate": None,
},
"time_progress_percent": round(period_days / month_days * 100, 2) if month_days else None,
"month_days": month_days,
@@ -558,7 +559,7 @@ def build_payload(now):
"performance_cost": "Cost 取 Sands Report 2.0 的 Cost 合计,需本地抓取",
"performance_gp": "GP = Revenue − Cost;GP rate = GP ÷ Revenue × 100",
"performance_target": "Target 来自 Oversea FY2627 Monthly FFR 表 King 行",
"performance_completion": "完成率 = 实际 ÷ Target × 100;Target 为整月目标",
"performance_completion": "完成率 = 实际 ÷ Target × 100,仅用于 Revenue 与 GP;GP rate 为比率,只看与目标的百分点差距",
},
}