Added doctype
availabitlity of slots added
This commit is contained in:
parent
6f486f3719
commit
c4950a0281
@ -34,14 +34,14 @@ class TestAppointment(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
delete_appointments()
|
||||
|
||||
def delete_appointments(self):
|
||||
doc_list = frappe.get_list('Appointment',filters={'scheduled_time':datetime.datetime.min,'customer_phone_number':'8088'})
|
||||
for doc in doc_list:
|
||||
doc.delete()
|
||||
def delete_appointments(self):
|
||||
doc_list = frappe.get_list('Appointment',filters={'scheduled_time':datetime.datetime.min,'customer_phone_number':'8088'})
|
||||
for doc in doc_list:
|
||||
doc.delete()
|
||||
|
||||
def test_number_of_appointments(self):
|
||||
settings = frappe.get_doc('Appointment Booking Settings')
|
||||
self.assertLessEqual(frappe.db.count('Apoointment',
|
||||
filters={'scheduled_time': datetime.datetime.min, 'customer_name':}),
|
||||
self.assertFalse(frappe.db.exists('Apoointment',
|
||||
filters={'scheduled_time': datetime.datetime.min, 'customer_name':'Extra Customer'}),
|
||||
settings.number_of_agents,
|
||||
"Number of appointments exceed number of agents")
|
||||
|
@ -48,7 +48,7 @@
|
||||
}
|
||||
],
|
||||
"issingle": 1,
|
||||
"modified": "2019-09-03 12:27:09.763730",
|
||||
"modified": "2019-09-10 15:02:39.969131",
|
||||
"modified_by": "Administrator",
|
||||
"module": "CRM",
|
||||
"name": "Appointment Booking Settings",
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"creation": "2019-08-27 10:52:54.204677",
|
||||
"creation": "2019-09-10 15:02:05.779434",
|
||||
"doctype": "DocType",
|
||||
"editable_grid": 1,
|
||||
"engine": "InnoDB",
|
||||
@ -21,7 +21,7 @@
|
||||
"fieldname": "from_time",
|
||||
"fieldtype": "Time",
|
||||
"in_list_view": 1,
|
||||
"label": "From Time ",
|
||||
"label": "From Time",
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
@ -33,10 +33,10 @@
|
||||
}
|
||||
],
|
||||
"istable": 1,
|
||||
"modified": "2019-08-27 10:52:54.204677",
|
||||
"modified": "2019-09-10 15:05:20.406855",
|
||||
"modified_by": "Administrator",
|
||||
"module": "CRM",
|
||||
"name": "Availabilty Of Slots",
|
||||
"name": "Availability Of Slots",
|
||||
"owner": "Administrator",
|
||||
"permissions": [],
|
||||
"quick_entry": 1,
|
||||
|
@ -6,6 +6,5 @@ from __future__ import unicode_literals
|
||||
# import frappe
|
||||
from frappe.model.document import Document
|
||||
|
||||
|
||||
class AvailabilityOfSlots(Document):
|
||||
pass
|
||||
pass
|
||||
|
Loading…
x
Reference in New Issue
Block a user