This commit is contained in:
oscar alvarez 2022-02-24 15:21:32 -05:00
parent e44a22fc9b
commit 81d81ffb25

View file

@ -237,8 +237,8 @@ class Production(metaclass=PoolMeta):
)
total_labour = sum(values['total_labour'])
total_imc = sum(values['total_imc'])
to_update['material_costs'] = rec.cost
to_update['labour_costs'] = round_dec(total_labour)
to_update['material_costs'] = material_costs(rec.cost)
to_update['labour_costs'] = material_costs(total_labour)
to_update['imc_costs'] = round_dec(total_imc)
to_update['total_cost'] = round_dec(total_imc + total_labour + rec.cost)
@ -307,7 +307,6 @@ class Production(metaclass=PoolMeta):
analytic_line['account'] = account
analytic_line['date'] = date
lines.append(analytic_line)
print('.......', lines)
line['analytic_lines'] = [('create', lines)]