show some info from bilans
This commit is contained in:
parent
94862340f7
commit
75a268aed6
4 changed files with 51 additions and 0 deletions
|
@ -139,6 +139,26 @@ class Etablissement < ApplicationRecord
|
|||
upload_attestation(url, entreprise_attestation_fiscale)
|
||||
end
|
||||
|
||||
def entreprise_date_arret_exercice
|
||||
entreprise_last_bilan_info_cle("date_arret_exercice")
|
||||
end
|
||||
|
||||
def entreprise_resultat_exercice
|
||||
entreprise_last_bilan_info_cle("resultat_exercice")
|
||||
end
|
||||
|
||||
def entreprise_excedent_brut_exploitation
|
||||
entreprise_last_bilan_info_cle("excedent_brut_exploitation")
|
||||
end
|
||||
|
||||
def entreprise_fdr_net_global
|
||||
entreprise_last_bilan_info_cle("fonds_roulement_net_global")
|
||||
end
|
||||
|
||||
def entreprise_besoin_fdr
|
||||
entreprise_last_bilan_info_cle("besoin_en_fonds_de_roulement")
|
||||
end
|
||||
|
||||
def entreprise_bilans_bdf_to_csv
|
||||
headers = bilans_headers.concat(bilans_new_keys)
|
||||
data = entreprise_bilans_bdf.map do |bilan|
|
||||
|
@ -154,6 +174,10 @@ class Etablissement < ApplicationRecord
|
|||
keys - bilans_headers
|
||||
end
|
||||
|
||||
def entreprise_last_bilan_info_cle(key)
|
||||
entreprise_bilans_bdf.first[key]
|
||||
end
|
||||
|
||||
def dossier_id_for_export
|
||||
if dossier_id
|
||||
dossier_id.to_s
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue