Cost of Production cycle

This commit is contained in:
Neil Trini Lasrado 2014-09-10 17:04:10 +05:30
parent e9882e12ba
commit 6a7f75c3e3
2 changed files with 2 additions and 5 deletions

View File

@ -155,8 +155,6 @@ erpnext.bom.calculate_fixed_cost = function(doc) {
total_fixed_cost += flt(op[i].fixed_cycle_cost); total_fixed_cost += flt(op[i].fixed_cycle_cost);
} }
cur_frm.set_value("total_fixed_cost", total_fixed_cost); cur_frm.set_value("total_fixed_cost", total_fixed_cost);
doc.total_cost = flt(total_fixed_cost) + flt(doc.total_variable_cost);
refresh_field('total_cost');
} }
erpnext.bom.calculate_rm_cost = function(doc) { erpnext.bom.calculate_rm_cost = function(doc) {
@ -169,8 +167,7 @@ erpnext.bom.calculate_rm_cost = function(doc) {
{'qty_consumed_per_unit': flt(rm[i].qty)/flt(doc.quantity)}, 'bom_materials'); {'qty_consumed_per_unit': flt(rm[i].qty)/flt(doc.quantity)}, 'bom_materials');
total_rm_cost += amt; total_rm_cost += amt;
} }
doc.raw_material_cost = total_rm_cost; cur_frm.set_value("raw_material_cost", total_rm_cost);
refresh_field('raw_material_cost');
} }