diff --git a/backend/app/services/backoffice/csv/project_exporter.rb b/backend/app/services/backoffice/csv/project_exporter.rb index 04e10a388..e99d66c72 100644 --- a/backend/app/services/backoffice/csv/project_exporter.rb +++ b/backend/app/services/backoffice/csv/project_exporter.rb @@ -37,7 +37,7 @@ def call end column(I18n.t("backoffice.projects.export.looking_for_funding")) { |r| I18n.t(r.looking_for_funding.to_s) } column(I18n.t("backoffice.projects.export.ticket_size")) do |r| - r.ticket_size.present? ? TicketSize.find(r.ticket_size).name : "" + r.ticket_size.present? ? "#{TicketSize.find(r.ticket_size).description} (#{TicketSize.find(r.ticket_size).name})" : "" end column(I18n.t("backoffice.projects.export.instrument_types")) do |r| r.instrument_types.to_a.map { |it| InstrumentType.find(it).name }.join(", ") diff --git a/backend/spec/services/backoffice/csv/project_exporter_spec.rb b/backend/spec/services/backoffice/csv/project_exporter_spec.rb index ed413dcfc..033b5aa61 100644 --- a/backend/spec/services/backoffice/csv/project_exporter_spec.rb +++ b/backend/spec/services/backoffice/csv/project_exporter_spec.rb @@ -68,7 +68,7 @@ query.first.impact_areas.map { |ia| ImpactArea.find(ia).name }.join(", "), query.first.sdgs.map { |sdg| Sdg.find(sdg).name }.join(", "), I18n.t(query.first.looking_for_funding.to_s), - TicketSize.find(query.first.ticket_size).name, + "#{TicketSize.find(query.first.ticket_size).description} (#{TicketSize.find(query.first.ticket_size).name})", query.first.instrument_types.map { |it| InstrumentType.find(it).name }.join(", "), query.first.funding_plan, I18n.t(query.first.received_funding),