[gst] adde reports + docs
This commit is contained in:
@@ -51,20 +51,28 @@ $.extend(erpnext.queries, {
|
||||
|
||||
return {
|
||||
query: 'frappe.contacts.doctype.contact.contact.contact_query',
|
||||
filters: { link_doctype: frappe.dynamic_link.doctype, link_name: doc[frappe.dynamic_link.fieldname] } };
|
||||
filters: {
|
||||
link_doctype: frappe.dynamic_link.doctype,
|
||||
link_name: doc[frappe.dynamic_link.fieldname]
|
||||
}
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
address_query: function(doc) {
|
||||
if(frappe.dynamic_link) {
|
||||
if(!doc[frappe.dynamic_link.fieldname]) {
|
||||
frappe.throw(__("Please set {0}",
|
||||
frappe.throw(__("Please set {0}",
|
||||
[__(frappe.meta.get_label(doc.doctype, frappe.dynamic_link.fieldname, doc.name))]));
|
||||
}
|
||||
|
||||
return {
|
||||
query: 'frappe.contacts.doctype.address.address.address_query',
|
||||
filters: { link_doctype: frappe.dynamic_link.doctype, link_name: doc[frappe.dynamic_link.fieldname] } };
|
||||
filters: {
|
||||
link_doctype: frappe.dynamic_link.doctype,
|
||||
link_name: doc[frappe.dynamic_link.fieldname]
|
||||
}
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
@@ -85,7 +93,7 @@ $.extend(erpnext.queries, {
|
||||
|
||||
lead_filter: function(doc) {
|
||||
if(!doc.lead) {
|
||||
frappe.throw(__("Please specify a {0}",
|
||||
frappe.throw(__("Please specify a {0}",
|
||||
[__(frappe.meta.get_label(doc.doctype, "lead", doc.name))]));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user