remove date computed column
we will add it when more info of business
This commit is contained in:
parent
22e2c2e133
commit
9873826dd4
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue