remove date computed column

we will add it when more info of business
This commit is contained in:
Christophe Robillard 2020-04-30 15:19:46 +02:00
parent 22e2c2e133
commit 9873826dd4

View file

@ -139,11 +139,8 @@ class Etablissement < ApplicationRecord
end
def entreprise_bilans_bdf_to_csv
headers = ["bilans"].concat(entreprise_bilans_bdf[0].keys)
data = entreprise_bilans_bdf.each_with_index.map do |bilan, i|
month = I18n.l(Date.current - (i + 1).year, format: "%m/%Y")
[month].concat(bilan.values)
end
headers = entreprise_bilans_bdf[0].keys
data = entreprise_bilans_bdf.map(&:values)
SpreadsheetArchitect.to_csv(headers: headers, data: data)
end