mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-04 22:18:27 +00:00
[cleanup] comminified copy_account_in_all_row and removed conversion rate from pos setting
This commit is contained in:
@@ -18,6 +18,7 @@ erpnext.stock.StockController = wn.ui.form.Controller.extend({
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
show_general_ledger: function() {
|
||||
var me = this;
|
||||
if(this.frm.doc.docstatus===1 && cint(wn.defaults.get_default("auto_accounting_for_stock"))) {
|
||||
@@ -30,5 +31,16 @@ erpnext.stock.StockController = wn.ui.form.Controller.extend({
|
||||
wn.set_route("general-ledger");
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
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);
|
||||
for(var i = 0; i < cl.length; i++) {
|
||||
if(!cl[i][fieldname]) cl[i][fieldname] = d[fieldname];
|
||||
}
|
||||
}
|
||||
refresh_field(this.frm.cscript.fname);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user