changes to suggestions made by shivam

This commit is contained in:
0Pranav 2019-11-06 11:57:37 +05:30
parent d1ee962d4b
commit 6f1d2eeffd
2 changed files with 3 additions and 2 deletions

View File

@ -42,8 +42,9 @@ class Appointment(Document):
# Set status to unverified
self.status = 'Unverified'
# Send email to confirm
self.send_confirmation_email()
def send_confirmation_email()
def send_confirmation_email(self):
verify_url = self._get_verify_url()
template = 'confirm_appointment'
args = {

View File

@ -28,7 +28,7 @@ class AppointmentBookingSettings(Document):
def validate_from_and_to_time(self, from_time, to_time):
if from_time > to_time:
err_msg = _(''<b>From Time</b> cannot be later than <b>To Time</b> for {0}'').format(record.day_of_week)
err_msg = _('<b>From Time</b> cannot be later than <b>To Time</b> for {0}').format(record.day_of_week)
frappe.throw(_(err_msg))
def duration_is_divisible(self, from_time, to_time):