fix(dossier): fix approximative_expiration_date

This commit is contained in:
Paul Chavard 2021-12-07 12:47:27 +01:00
parent 032989a400
commit 60d4bcc4f7

View file

@ -560,7 +560,7 @@ class Dossier < ApplicationRecord
approximative_expiration_date_reference,
conservation_extension,
procedure.duree_conservation_dossiers_dans_ds.months
].sum - REMAINING_WEEKS_BEFORE_EXPIRATION.weeks
].compact.sum - REMAINING_WEEKS_BEFORE_EXPIRATION.weeks
end
def close_to_expiration?