Removed unneccessary doctype
diff --git a/erpnext/www/book-appointment/index.js b/erpnext/www/book-appointment/index.js
index 5bc8af0..b2df3b4 100644
--- a/erpnext/www/book-appointment/index.js
+++ b/erpnext/www/book-appointment/index.js
@@ -165,12 +165,13 @@
 async function submit() {
     // form validation here
     form_validation();
+    debugger;
     let appointment = (await frappe.call({
         method: 'erpnext.www.book-appointment.index.create_appointment',
         args: {
-            'date': date,
-            'time': time,
-            'contact': contact
+            'date': window.selected_date,
+            'time': window.selected_time,
+            'contact': window.contact
         }
     })).message;
     frappe.msgprint(__('Appointment Created Successfully'));
@@ -181,7 +182,7 @@
 
 function form_validation(){
     var date = window.selected_date;
-    var time = document.getElementsByClassName('selected')[0].id;
+    var time = window.selected_time;
     contact = {};
     contact.name = document.getElementById('customer_name').value;
     contact.number = document.getElementById('customer_number').value;
diff --git a/erpnext/www/book-appointment/index.py b/erpnext/www/book-appointment/index.py
index e853a35..9c37fb0 100644
--- a/erpnext/www/book-appointment/index.py
+++ b/erpnext/www/book-appointment/index.py
@@ -76,7 +76,7 @@
     appointment.scheduled_time = datetime.datetime.strptime(date+" "+time,format_string)
     contact = json.loads(contact)
     appointment.customer_name = contact['name']
-    appointment.customer_phone_no = contact['number']
+    appointment.customer_phone_number = contact['number']
     appointment.customer_skype = contact['skype']
     appointment.customer_details = contact['notes']
     appointment.insert()