prend en compte uniquement les pj pour estimer la taille d'un dossier
This commit is contained in:
parent
71a48c99bb
commit
01f180022b
7 changed files with 60 additions and 37 deletions
|
@ -873,9 +873,8 @@ class Dossier < ApplicationRecord
|
|||
end
|
||||
end
|
||||
|
||||
def attachments_downloadable?
|
||||
PiecesJustificativesService.liste_pieces_justificatives(self).present? \
|
||||
&& PiecesJustificativesService.pieces_justificatives_total_size(self) < Dossier::TAILLE_MAX_ZIP
|
||||
def export_and_attachments_downloadable?
|
||||
PiecesJustificativesService.pieces_justificatives_total_size(self) < Dossier::TAILLE_MAX_ZIP
|
||||
end
|
||||
|
||||
def linked_dossiers_for(instructeur_or_expert)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue