Переглянути джерело

fix: Total Row in query report still hidden (#14183)

version-14
Shariq Ansari 3 роки тому
committed by GitHub
джерело
коміт
e27f58cc0f
Не вдалося знайти GPG ключ що відповідає даному підпису Ідентифікатор GPG ключа: 4AEE18F83AFDEB23
1 змінених файлів з 1 додано та 4 видалено
  1. +1
    -4
      frappe/public/js/frappe/views/reports/query_report.js

+ 1
- 4
frappe/public/js/frappe/views/reports/query_report.js Переглянути файл

@@ -832,6 +832,7 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList {
if (this.raw_data.add_total_row) { if (this.raw_data.add_total_row) {
data = data.slice(); data = data.slice();
data.splice(-1, 1); data.splice(-1, 1);
this.$page.find('.layout-main-section').css('--report-total-height', '310px');
} }


this.$report.show(); this.$report.show();
@@ -854,10 +855,6 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList {
} }
}; };


if (this.raw_data.add_total_row) {
this.$page.find('.layout-main-section').css('--report-total-height', '310px');
}

if (this.report_settings.get_datatable_options) { if (this.report_settings.get_datatable_options) {
datatable_options = this.report_settings.get_datatable_options(datatable_options); datatable_options = this.report_settings.get_datatable_options(datatable_options);
} }


Завантаження…
Відмінити
Зберегти