mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 20:59:11 +00:00
added test case for leave_application
This commit is contained in:
@@ -123,3 +123,15 @@ class DocType:
|
||||
if self.doc.status == 'Left' and not self.doc.relieving_date:
|
||||
msgprint("Please enter relieving date.")
|
||||
raise Exception
|
||||
|
||||
test_records = [[{
|
||||
"doctype":"Employee",
|
||||
"employee_name": "_Test Employee",
|
||||
"naming_series": "_T-Employee-",
|
||||
"date_of_joining": "2010-01-01",
|
||||
"date_of_birth": "1980-01-01",
|
||||
"gender": "Female",
|
||||
"status": "Active",
|
||||
"company": "_Test Company",
|
||||
"user_id": "test@erpnext.com"
|
||||
}]]
|
||||
Reference in New Issue
Block a user