feat: 其他成本数据忘记保存

This commit is contained in:
caoqianming 2023-08-03 13:33:27 +08:00
parent ac0908dc11
commit cb60fe2728
1 changed files with 1 additions and 0 deletions

View File

@ -339,6 +339,7 @@ def cal_enstat(type, sflogId, mgroupId, year, month, day, hour, year_s, month_s,
item['cost_unit'] = get_cost_unit(mgroup, fee, year_s, month_s)
other_cost_unit = other_cost_unit + item['cost_unit']
other_cost_data.append(item)
enstat.other_cost_data = other_cost_data
enstat.production_cost_unit = imaterial_cost_unit + other_cost_unit
enstat.save()