fix bug with admin
This commit is contained in:
parent
bd12388d9a
commit
b17eee5936
|
|
@ -1065,14 +1065,23 @@ module JamRuby
|
|||
lesson_booking.lesson_package_type.description(lesson_booking) + " with #{teacher.admin_name}"
|
||||
end
|
||||
|
||||
def time_for_admin
|
||||
if self.scheduled_start
|
||||
self.scheduled_start.to_date.strftime('%B %d, %Y')
|
||||
else
|
||||
'TBD'
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
def timed_description
|
||||
if is_test_drive?
|
||||
"TestDrive session with #{self.lesson_booking.student.name} on #{self.scheduled_start.to_date.strftime('%B %d, %Y')}"
|
||||
"TestDrive session with #{self.lesson_booking.student.name} on #{time_for_admin}"
|
||||
else
|
||||
if self.lesson_booking.is_monthly_payment?
|
||||
"Monthly Lesson with #{self.lesson_booking.student.name} on #{self.scheduled_start.to_date.strftime('%B %d, %Y')}"
|
||||
"Monthly Lesson with #{self.lesson_booking.student.name} on #{time_for_admin}"
|
||||
else
|
||||
"Lesson with #{self.lesson_booking.student.name} on #{self.scheduled_start.to_date.strftime('%B %d, %Y')}"
|
||||
"Lesson with #{self.lesson_booking.student.name} on #{time_for_admin}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue