[fixes] setup wizard and other fixes related to cart
This commit is contained in:
committed by
Rushabh Mehta
parent
52dfc32eca
commit
06ad308ca1
@@ -49,18 +49,6 @@ $.extend(erpnext, {
|
||||
}
|
||||
},
|
||||
|
||||
add_applicable_territory: function() {
|
||||
if(cur_frm.doc.__islocal && (cur_frm.doc.territories || []).length===0) {
|
||||
var default_territory = frappe.defaults.get_user_default("territory");
|
||||
if(default_territory) {
|
||||
var territory = frappe.model.add_child(cur_frm.doc, "Applicable Territory",
|
||||
"territories");
|
||||
territory.territory = default_territory;
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
setup_serial_no: function() {
|
||||
var grid_row = cur_frm.open_grid_row();
|
||||
if(!grid_row.fields_dict.serial_no ||
|
||||
@@ -131,8 +119,8 @@ $.extend(erpnext.utils, {
|
||||
}
|
||||
);
|
||||
}
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
copy_value_in_all_row: function(doc, dt, dn, table_fieldname, fieldname) {
|
||||
var d = locals[dt][dn];
|
||||
if(d[fieldname]){
|
||||
|
||||
Reference in New Issue
Block a user