[#4517] Default the details row to All periods when it's out of the date range
This commit is contained in:
1 parent
74d707a1a4
commit
19ed07b617
4 files changed
+60
-10
No files matched your search
@@ -111,4 +111,12 @@ module ContractsHelper
|
||||
|
||||
options
|
||||
end
|
||||
|
||||
# Given a deliverable and period, validate the period
|
||||
# TODO: could use a better name
|
||||
def validate_period(deliverable, period)
|
||||
if deliverable.current_date && deliverable.within_period_range?(period)
|
||||
return period
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user