Table Field Renaming: code replace, JV and budget distribution renamed

This commit is contained in:
Nabin Hait
2014-12-25 16:01:55 +05:30
parent d8f4984d71
commit e7d153624f
222 changed files with 1523 additions and 1483 deletions

View File

@@ -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;
}