Table Field Renaming: code replace, JV and budget distribution renamed
This commit is contained in:
@@ -46,11 +46,11 @@ $.extend(erpnext, {
|
||||
},
|
||||
|
||||
add_applicable_territory: function() {
|
||||
if(cur_frm.doc.__islocal && (cur_frm.doc.valid_for_territories || []).length===0) {
|
||||
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",
|
||||
"valid_for_territories");
|
||||
"territories");
|
||||
territory.territory = default_territory;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user