diff --git a/backend/app/services/backoffice/csv/project_exporter.rb b/backend/app/services/backoffice/csv/project_exporter.rb index c8f597243..da1578cbe 100644 --- a/backend/app/services/backoffice/csv/project_exporter.rb +++ b/backend/app/services/backoffice/csv/project_exporter.rb @@ -44,6 +44,12 @@ def call column(I18n.t("simple_form.labels.project.received_funding")) { |r| I18n.t(r.received_funding) } column(I18n.t("simple_form.labels.project.received_funding_amount_usd")) { |r| r.received_funding_amount_usd } column(I18n.t("simple_form.labels.project.received_funding_investor")) { |r| r.received_funding_investor } + column(I18n.t("simple_form.labels.project.positive_financial_returns")) { |r| r.positive_financial_returns } + column(I18n.t("simple_form.labels.project.last_year_sales_revenue")) { |r| r.last_year_sales_revenue } + column(I18n.t("simple_form.labels.project.climate_change_risks_identified")) do |r| + I18n.t(r.climate_change_risks_identified) + end + column(I18n.t("simple_form.labels.project.climate_change_risks_details")) { |r| r.climate_change_risks_details } column(I18n.t("simple_form.labels.project.replicability")) { |r| r.replicability } column(I18n.t("simple_form.labels.project.sustainability")) { |r| r.sustainability } column(I18n.t("simple_form.labels.project.progress_impact_tracking")) { |r| r.progress_impact_tracking } diff --git a/backend/db/seeds.rb b/backend/db/seeds.rb index 448775eff..68b87963e 100644 --- a/backend/db/seeds.rb +++ b/backend/db/seeds.rb @@ -8,6 +8,11 @@ Location.delete_all Admin.delete_all + Investor.reset_column_information + ProjectDeveloper.reset_column_information + OpenCall.reset_column_information + Project.reset_column_information + Admin.create!(first_name: "Admin", last_name: "Example", password: "SuperSecret1234", email: "admin@example.com", ui_language: "en") Rake::Task["import_geojsons:colombia"].invoke diff --git a/backend/spec/services/backoffice/csv/project_exporter_spec.rb b/backend/spec/services/backoffice/csv/project_exporter_spec.rb index adfd2b6fe..ed413dcfc 100644 --- a/backend/spec/services/backoffice/csv/project_exporter_spec.rb +++ b/backend/spec/services/backoffice/csv/project_exporter_spec.rb @@ -34,6 +34,10 @@ I18n.t("simple_form.labels.project.received_funding"), I18n.t("simple_form.labels.project.received_funding_amount_usd"), I18n.t("simple_form.labels.project.received_funding_investor"), + I18n.t("simple_form.labels.project.positive_financial_returns"), + I18n.t("simple_form.labels.project.last_year_sales_revenue"), + I18n.t("simple_form.labels.project.climate_change_risks_identified"), + I18n.t("simple_form.labels.project.climate_change_risks_details"), I18n.t("simple_form.labels.project.replicability"), I18n.t("simple_form.labels.project.sustainability"), I18n.t("simple_form.labels.project.progress_impact_tracking"), @@ -70,6 +74,10 @@ I18n.t(query.first.received_funding), query.first.received_funding_amount_usd.to_s, query.first.received_funding_investor, + query.first.positive_financial_returns, + query.first.last_year_sales_revenue.to_s, + I18n.t(query.first.climate_change_risks_identified), + query.first.climate_change_risks_details, query.first.replicability, query.first.sustainability, query.first.progress_impact_tracking,