Use the start date for the due date is the end date is nil

This commit is contained in:
ricky committed 2026-08-06 20:40:33 -04:00
1 parent d17f58fb62
commit a0dac795f1
1 file changed
+2 -1
+2 -1
View File
@@ -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)