fix for dates
This commit is contained in:
parent
b2f188bc5f
commit
f0d23f0bf0
|
|
@ -113,6 +113,8 @@ class Dotation < ApplicationRecord
|
||||||
# == Instance Methods =====================================================
|
# == Instance Methods =====================================================
|
||||||
|
|
||||||
def start_date_ret
|
def start_date_ret
|
||||||
|
return if start_date.blank?
|
||||||
|
|
||||||
if start_date_quarter.eql?(true)
|
if start_date_quarter.eql?(true)
|
||||||
Dotation.display_as_quarter(start_date)
|
Dotation.display_as_quarter(start_date)
|
||||||
else
|
else
|
||||||
|
|
@ -121,6 +123,8 @@ class Dotation < ApplicationRecord
|
||||||
end
|
end
|
||||||
|
|
||||||
def end_date_ret
|
def end_date_ret
|
||||||
|
return if end_date.blank?
|
||||||
|
|
||||||
if end_date_quarter.eql?(true)
|
if end_date_quarter.eql?(true)
|
||||||
Dotation.display_as_quarter(end_date)
|
Dotation.display_as_quarter(end_date)
|
||||||
else
|
else
|
||||||
|
|
@ -129,6 +133,8 @@ class Dotation < ApplicationRecord
|
||||||
end
|
end
|
||||||
|
|
||||||
def ann_date_ret
|
def ann_date_ret
|
||||||
|
return if announcement_date.blank?
|
||||||
|
|
||||||
if ann_date_quarter.eql?(true)
|
if ann_date_quarter.eql?(true)
|
||||||
Dotation.display_as_quarter(announcement_date)
|
Dotation.display_as_quarter(announcement_date)
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue