mirror of
https://github.com/rickbarrette/redmine_qbo_calendar.git
synced 2026-10-03 20: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
|
||||
end_date&.to_date
|
||||
return end_date&.to_date if end_date.present?
|
||||
return start_date&.to_date
|
||||
end
|
||||
|
||||
def self.visible(user)
|
||||
|
||||
Reference in new issue
Block a user