From a0dac795f12b493175448184829691c233a80634 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 6 Aug 2026 20:40:33 -0400 Subject: [PATCH] Use the start date for the due date is the end date is nil --- app/models/customer_appointment.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/customer_appointment.rb b/app/models/customer_appointment.rb index 0db286d..908ec76 100644 --- a/app/models/customer_appointment.rb +++ b/app/models/customer_appointment.rb @@ -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)