Fixes in Production Planning Tool

This commit is contained in:
Neil Trini Lasrado
2015-07-08 18:16:51 +05:30
parent dcef448f1e
commit fe2ffaeafa
9 changed files with 30 additions and 25 deletions

View File

@@ -70,16 +70,5 @@ erpnext.stock.StockController = frappe.ui.form.Controller.extend({
frappe.set_route("query-report", "General Ledger");
}, "icon-table");
}
},
copy_account_in_all_row: function(doc, dt, dn, fieldname) {
var d = locals[dt][dn];
if(d[fieldname]){
var cl = doc["items"] || [];
for(var i = 0; i < cl.length; i++) {
if(!cl[i][fieldname]) cl[i][fieldname] = d[fieldname];
}
}
refresh_field("items");
}
});