raise holiday block list exception only when submitting

This commit is contained in:
Anand Doshi
2013-02-13 20:26:45 +05:30
parent 798c6b4fdb
commit 9c35b2897c
3 changed files with 58 additions and 15 deletions

View File

@@ -7,7 +7,7 @@ test_records = [[{
"gender": "Female",
"status": "Active",
"company": "_Test Company",
"user_id": "test@erpnext.com"
"user_id": "test@example.com"
}],
[{
"doctype":"Employee",
@@ -18,5 +18,17 @@ test_records = [[{
"gender": "Male",
"status": "Active",
"company": "_Test Company",
"user_id": "test1@erpnext.com"
}]]
"user_id": "test1@example.com"
}],
[{
"doctype":"Employee",
"employee_name": "_Test Employee 2",
"naming_series": "_T-Employee-",
"date_of_joining": "2010-01-01",
"date_of_birth": "1980-01-01",
"gender": "Male",
"status": "Active",
"company": "_Test Company",
"user_id": "test2@example.com"
}]
]