Commit 24231b86 by 章家宝

feat:红黄门店渗透率按照百分号来

1 parent ec0d8c34
......@@ -1779,7 +1779,8 @@ class CommonEquityProcessor:
'delivery_cnt': metrics['delivery_cnt'],
'touch_cnt': metrics['touch_cnt'],
'income': metrics['income'],
'penetration': _safe_ratio(metrics['order_cnt'], metrics['delivery_cnt']),
# 比值保留 4 位小数,单元格用 0.00% 显示时才能保到百分数的 2 位(44.44%)
'penetration': _safe_ratio(metrics['order_cnt'], metrics['delivery_cnt'], scale=4),
'attachment_light': attachment_light,
'excellent': thr['excellent'] if thr else '',
'standard': thr['standard'] if thr else '',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!