瀏覽代碼

[minor] removed the default for party type field in address and contacts report (#4614)

version-14
Makarand Bauskar 7 年之前
committed by Nabin Hait
父節點
當前提交
6f164ed975
共有 1 個檔案被更改,包括 2 行新增3 行删除
  1. +2
    -3
      frappe/contacts/report/addresses_and_contacts/addresses_and_contacts.js

+ 2
- 3
frappe/contacts/report/addresses_and_contacts/addresses_and_contacts.js 查看文件

@@ -15,15 +15,14 @@ frappe.query_reports["Addresses And Contacts"] = {
"name": ["in","Customer,Supplier,Sales Partner"], "name": ["in","Customer,Supplier,Sales Partner"],
} }
} }
},
"default": "Customer"
}
}, },
{ {
"fieldname":"party_name", "fieldname":"party_name",
"label": __("Party Name"), "label": __("Party Name"),
"fieldtype": "Dynamic Link", "fieldtype": "Dynamic Link",
"get_options": function() { "get_options": function() {
var party_type = frappe.query_report_filters_by_name.party_type.get_value();
let party_type = frappe.query_report_filters_by_name.party_type.get_value();
if(!party_type) { if(!party_type) {
frappe.throw(__("Please select Party Type first")); frappe.throw(__("Please select Party Type first"));
} }


Loading…
取消
儲存