mirror of
https://github.com/rickbarrette/redmine_qbo_calendar.git
synced 2026-10-04 04:40:43 -04:00
Use the start date for the due date is the end date is nil
This commit is contained in:
1 parent
d17f58fb62
commit
a0dac795f1
1 file changed
+2
-1
@@ -30,7 +30,8 @@ class CustomerAppointment < ActiveRecord::Base
|
|||||||
]
|
]
|
||||||
|
|
||||||
def due_date
|
def due_date
|
||||||
end_date&.to_date
|
return end_date&.to_date if end_date.present?
|
||||||
|
return start_date&.to_date
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.visible(user)
|
def self.visible(user)
|
||||||
|
|||||||
Reference in new issue
Block a user