V3.50
This commit is contained in:
@ -308,8 +308,8 @@ def get_stock_list():
|
||||
if is_aggregated:
|
||||
grouped_dict = {}
|
||||
for item in all_items:
|
||||
# 核心聚合键:类型 + 规格型号 + 库位
|
||||
group_key = f"{item.get('type')}_{item.get('standard')}_{item.get('warehouse_location', '')}"
|
||||
# 核心聚合键:类型 + 规格型号 + 库位 + base_id(含 base_id 防止不同物料被错误合并)
|
||||
group_key = f"{item.get('type')}_{item.get('standard')}_{item.get('warehouse_location', '')}_{item.get('base_id', '')}"
|
||||
|
||||
if group_key in grouped_dict:
|
||||
# 累加数量
|
||||
|
||||
Reference in New Issue
Block a user