Commit 2b5c0fed by zhouhaibao

fix(data-process): 修正直营店服务费占比计算逻辑

- 直营店服务费占比强制设为 0
- 服务商店铺按原逻辑提取比例值
- 与 park_processor 保持一致的处理方式
1 parent e901b141
...@@ -315,8 +315,9 @@ class LightReformInshopProcessor: ...@@ -315,8 +315,9 @@ class LightReformInshopProcessor:
store_consumables = prorate_by_period( store_consumables = prorate_by_period(
extract_budget_ratio(prev_budget_map, sn, 'store_consumables'), extract_budget_ratio(prev_budget_map, sn, 'store_consumables'),
period_start, period_end) period_start, period_end)
# 服务费占比:直接取(比例值不摊销) # 服务费占比:直营店强制 0,服务商直接取(与 park_processor 对齐)
sp_ratio = extract_budget_ratio(prev_budget_map, sn, 'service_provider_share_ratio') sp_ratio = Decimal('0') if operate_type == '直营' else extract_budget_ratio(
prev_budget_map, sn, 'service_provider_share_ratio')
# —— 人力成本 —— # —— 人力成本 ——
headcount = labor_map.get(sn, 0) headcount = labor_map.get(sn, 0)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!