diff --git a/modules/xls_export/lib/open_project/xls_export/xls_views/cost_entry_table.xls.rb b/modules/xls_export/lib/open_project/xls_export/xls_views/cost_entry_table.xls.rb index 799b809a4e..e6ebdf0ef4 100644 --- a/modules/xls_export/lib/open_project/xls_export/xls_views/cost_entry_table.xls.rb +++ b/modules/xls_export/lib/open_project/xls_export/xls_views/cost_entry_table.xls.rb @@ -29,7 +29,7 @@ class OpenProject::XlsExport::XlsViews::CostEntryTable < OpenProject::XlsExport: else ['', '', show_result(query)] end - spreadsheet.add_row(footer) # footer + spreadsheet.add_sums(footer) # footer end def headers diff --git a/modules/xls_export/lib/open_project/xls_export/xls_views/simple_cost_report_table.xls.rb b/modules/xls_export/lib/open_project/xls_export/xls_views/simple_cost_report_table.xls.rb index 48f5841516..bf592389a1 100644 --- a/modules/xls_export/lib/open_project/xls_export/xls_views/simple_cost_report_table.xls.rb +++ b/modules/xls_export/lib/open_project/xls_export/xls_views/simple_cost_report_table.xls.rb @@ -37,7 +37,7 @@ class OpenProject::XlsExport::XlsViews::SimpleCostReportTable < OpenProject::Xls footer << show_result(query) footer << cost_type_unit_label(unit_id, cost_type) if show_unit_label? - spreadsheet.add_row(footer) + spreadsheet.add_sums(footer) end def headers