blob: d8ed12232aaabc2cba564366ed7a653f6d393e7f [file] [log] [blame]
Rushabh Mehta3966f1d2012-02-23 12:35:32 +05301# ERPNext - web based ERP (http://erpnext.com)
2# Copyright (C) 2012 Web Notes Technologies Pvt Ltd
3#
4# This program is free software: you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation, either version 3 of the License, or
7# (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with this program. If not, see <http://www.gnu.org/licenses/>.
16
Nabin Haita6f05502011-10-12 17:04:31 +053017from webnotes.model.doc import Document
18
19emp = Document(
20 fielddata = {
21 'doctype': 'Employee',
22 'name': 'emp1',
23 'employee_name': 'Nijil',
24 'status': 'Active',
25 'date_of_joining': '2011-01-01'
26 }
27)
28
29
30
31l_all = Document(
32 fielddata = {
33 'doctype' : 'Leave Allocation',
34 'name': 'l_all',
35 'employee' : 'emp1',
36 'leave_type' : 'Casual Leave',
37 'posting_date': '2011-03-01',
38 'fiscal_year': '2011-2012',
39 'total_leaves_allocated': 20,
40 'docstatus': 1
41 }
42)
43
44l_app1 = Document(
45 fielddata = {
46 'doctype' : 'Leave Application',
47 'name': 'l_app1',
48 'employee' : 'emp1',
49 'leave_type' : 'Casual Leave',
50 'posting_date': '2011-03-01',
51 'fiscal_year': '2011-2012',
52 'from_date': '2011-08-01',
53 'to_date': '2011-08-02',
54 'total_leave_days': 2
55 }
56)
57
58l_app2 = Document(
59 fielddata = {
60 'doctype' : 'Leave Application',
61 'name': 'l_app2',
62 'employee' : 'emp1',
63 'leave_type' : 'Casual Leave',
64 'posting_date': '2011-03-01',
65 'fiscal_year': '2011-2012',
66 'from_date': '2011-08-15',
67 'to_date': '2011-08-17',
68 'total_leave_days': 3
69 }
70)