mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 08:54:45 +00:00
query report fixes
This commit is contained in:
@@ -170,8 +170,11 @@ erpnext.module_page.make_list = function(module, wrapper) {
|
|||||||
parent: $parent2,
|
parent: $parent2,
|
||||||
method: 'utilities.get_report_list',
|
method: 'utilities.get_report_list',
|
||||||
render_row: function(row, data) {
|
render_row: function(row, data) {
|
||||||
data.report_type = data.is_query_report ? "query-report" : "Report2"
|
data.report_type = data.is_query_report
|
||||||
$(row).html(repl('<a href="#!%(report_type)s/%(ref_doctype)s/%(name)s" \
|
? "query-report"
|
||||||
|
: repl("Report2/%(ref_doctype)s", data)
|
||||||
|
|
||||||
|
$(row).html(repl('<a href="#!%(report_type)s/%(name)s" \
|
||||||
data-doctype="%(ref_doctype)s">\
|
data-doctype="%(ref_doctype)s">\
|
||||||
%(name)s</a>', data))
|
%(name)s</a>', data))
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user