mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 14:39:19 +00:00
Add download button
This commit is contained in:
@@ -22,9 +22,9 @@ frappe.query_reports["DATEV"] = {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
onload: function(query_report) {
|
onload: function(query_report) {
|
||||||
query_report.export_report = function() {
|
query_report.page.add_inner_button("Download DATEV Export", () => {
|
||||||
const filters = JSON.stringify(query_report.get_values());
|
const filters = JSON.stringify(query_report.get_values());
|
||||||
window.open(`/api/method/erpnext.regional.report.datev.datev.download_datev_csv?filters=${filters}`);
|
window.open(`/api/method/erpnext.regional.report.datev.datev.download_datev_csv?filters=${filters}`);
|
||||||
};
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user