This commit is contained in:
Rushabh Mehta
2014-03-27 14:17:33 +05:30
parent aa355af2cf
commit 66d52b55c0
31 changed files with 74 additions and 80 deletions

View File

@@ -39,7 +39,7 @@ erpnext.stock.StockController = frappe.ui.form.Controller.extend({
copy_account_in_all_row: function(doc, dt, dn, fieldname) {
var d = locals[dt][dn];
if(d[fieldname]){
var cl = getchildren(this.frm.cscript.tname, doc.name, this.frm.cscript.fname, doc.doctype);
var cl = doc[this.frm.cscript.fname] || [];
for(var i = 0; i < cl.length; i++) {
if(!cl[i][fieldname]) cl[i][fieldname] = d[fieldname];
}