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