# DocType, Ticket
[

	# These values are common in all dictionaries
	{
		'creation': '2011-01-28 17:52:35',
		'docstatus': 0,
		'modified': '2010-12-03 10:04:58',
		'modified_by': 'Administrator',
		'owner': 'Administrator'
	},

	# These values are common for all DocType
	{
		'_last_update': '1307707462',
		'allow_trash': 1,
		'autoname': 'TIC/.####',
		'colour': 'White:FFF',
		'doctype': 'DocType',
		'document_type': 'Master',
		'module': 'Projects',
		'name': '__common__',
		'section_style': 'Tray',
		'server_code_error': ' ',
		'show_in_menu': 0,
		'subject': '%(subject)s',
		'tag_fields': 'status',
		'version': 245
	},

	# These values are common for all DocField
	{
		'doctype': 'DocField',
		'name': '__common__',
		'parent': 'Ticket',
		'parentfield': 'fields',
		'parenttype': 'DocType'
	},

	# These values are common for all DocPerm
	{
		'doctype': 'DocPerm',
		'name': '__common__',
		'parent': 'Ticket',
		'parentfield': 'permissions',
		'parenttype': 'DocType',
		'read': 1
	},

	# DocType, Ticket
	{
		'doctype': 'DocType',
		'name': 'Ticket'
	},

	# DocPerm
	{
		'amend': 1,
		'cancel': 1,
		'create': 1,
		'doctype': 'DocPerm',
		'idx': 1,
		'permlevel': 0,
		'role': 'All',
		'write': 1
	},

	# DocPerm
	{
		'doctype': 'DocPerm',
		'idx': 2,
		'permlevel': 1,
		'role': 'All',
		'write': 0
	},

	# DocPerm
	{
		'amend': 1,
		'cancel': 1,
		'create': 1,
		'doctype': 'DocPerm',
		'idx': 3,
		'permlevel': 0,
		'role': 'Projects User',
		'write': 1
	},

	# DocPerm
	{
		'doctype': 'DocPerm',
		'idx': 4,
		'permlevel': 1,
		'role': 'Projects User'
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldtype': 'Section Break',
		'idx': 1,
		'label': 'Task Details',
		'oldfieldtype': 'Section Break',
		'permlevel': 0,
		'search_index': 0,
		'width': '50%'
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'subject',
		'fieldtype': 'Data',
		'idx': 2,
		'in_filter': 1,
		'label': 'Subject',
		'oldfieldname': 'subject',
		'oldfieldtype': 'Data',
		'permlevel': 0,
		'reqd': 1
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'status',
		'fieldtype': 'Select',
		'idx': 3,
		'label': 'Status',
		'oldfieldname': 'status',
		'oldfieldtype': 'Select',
		'options': 'Open\nPending Review\nClosed\nCancelled',
		'permlevel': 1,
		'trigger': 'Client'
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'opening_date',
		'fieldtype': 'Date',
		'idx': 4,
		'label': 'Creation Date',
		'oldfieldname': 'opening_date',
		'oldfieldtype': 'Date',
		'permlevel': 0,
		'reqd': 1
	},

	# DocField
	{
		'colour': 'White:FFF',
		'depends_on': 'eval:doc.status == "Closed" || doc.status == "Pending Review"',
		'doctype': 'DocField',
		'fieldname': 'review_date',
		'fieldtype': 'Date',
		'hidden': 1,
		'idx': 5,
		'label': 'Review Date',
		'oldfieldname': 'review_date',
		'oldfieldtype': 'Date',
		'permlevel': 0
	},

	# DocField
	{
		'colour': 'White:FFF',
		'depends_on': 'eval:doc.status == "Closed"',
		'doctype': 'DocField',
		'fieldname': 'closing_date',
		'fieldtype': 'Date',
		'hidden': 1,
		'idx': 6,
		'label': 'Closing Date',
		'oldfieldname': 'closing_date',
		'oldfieldtype': 'Date',
		'permlevel': 0
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'priority',
		'fieldtype': 'Select',
		'idx': 7,
		'in_filter': 1,
		'label': 'Priority',
		'oldfieldname': 'priority',
		'oldfieldtype': 'Select',
		'options': 'Low\nMedium\nHigh\nUrgent',
		'permlevel': 0,
		'reqd': 0,
		'search_index': 1
	},

	# DocField
	{
		'colour': 'White:FFF',
		'doctype': 'DocField',
		'fieldname': 'project',
		'fieldtype': 'Link',
		'idx': 8,
		'label': 'Project',
		'oldfieldname': 'project',
		'oldfieldtype': 'Link',
		'options': 'Project',
		'permlevel': 0,
		'trigger': 'Client'
	},

	# DocField
	{
		'colour': 'White:FFF',
		'doctype': 'DocField',
		'fieldname': 'customer',
		'fieldtype': 'Link',
		'idx': 9,
		'label': 'Customer',
		'oldfieldname': 'customer',
		'oldfieldtype': 'Link',
		'options': 'Customer',
		'permlevel': 0,
		'trigger': 'Client'
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'customer_name',
		'fieldtype': 'Data',
		'idx': 10,
		'label': 'Customer Name',
		'oldfieldname': 'customer_name',
		'oldfieldtype': 'Data',
		'permlevel': 1
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldtype': 'Column Break',
		'idx': 11,
		'oldfieldtype': 'Column Break',
		'permlevel': 0,
		'width': '50%'
	},

	# DocField
	{
		'colour': 'White:FFF',
		'doctype': 'DocField',
		'fieldname': 'allocated_to',
		'fieldtype': 'Link',
		'idx': 12,
		'label': 'Allocated To',
		'oldfieldname': 'allocated_to',
		'oldfieldtype': 'Link',
		'options': 'Profile',
		'permlevel': 0,
		'trigger': 'Client'
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'allocated_to_name',
		'fieldtype': 'Data',
		'hidden': 1,
		'idx': 13,
		'label': 'Allocated To Name',
		'oldfieldname': 'allocated_to_name',
		'oldfieldtype': 'Data',
		'permlevel': 0
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'senders_name',
		'fieldtype': 'Data',
		'idx': 14,
		'in_filter': 1,
		'label': 'Raised By',
		'oldfieldname': 'senders_name',
		'oldfieldtype': 'Data',
		'permlevel': 0,
		'reqd': 1,
		'search_index': 1
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'senders_email',
		'fieldtype': 'Data',
		'idx': 15,
		'label': 'Email',
		'oldfieldname': 'senders_email',
		'oldfieldtype': 'Data',
		'permlevel': 0,
		'reqd': 0
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'senders_contact_no',
		'fieldtype': 'Data',
		'idx': 16,
		'label': 'Senders Contact No',
		'oldfieldname': 'senders_contact_no',
		'oldfieldtype': 'Data',
		'permlevel': 0
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'senders_company',
		'fieldtype': 'Data',
		'idx': 17,
		'label': 'Senders Company',
		'oldfieldname': 'senders_company',
		'oldfieldtype': 'Data',
		'permlevel': 0
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'category',
		'fieldtype': 'Link',
		'idx': 18,
		'label': 'Category',
		'oldfieldname': 'category',
		'oldfieldtype': 'Link',
		'options': 'Ticket Category',
		'permlevel': 0
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'external_or_internal',
		'fieldtype': 'Select',
		'idx': 19,
		'label': 'External or Internal',
		'oldfieldname': 'external_or_internal',
		'oldfieldtype': 'Select',
		'options': 'External\nInternal',
		'permlevel': 0
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'amended_from',
		'fieldtype': 'Data',
		'hidden': 1,
		'idx': 20,
		'label': 'Amended From',
		'no_copy': 1,
		'oldfieldname': 'amended_from',
		'oldfieldtype': 'Data',
		'permlevel': 1,
		'print_hide': 1,
		'report_hide': 1
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'amendment_date',
		'fieldtype': 'Date',
		'hidden': 1,
		'idx': 21,
		'label': 'Amendment Date',
		'no_copy': 1,
		'oldfieldname': 'amendment_date',
		'oldfieldtype': 'Date',
		'permlevel': 1,
		'print_hide': 1,
		'report_hide': 1
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldtype': 'Section Break',
		'idx': 22,
		'oldfieldtype': 'Section Break',
		'options': 'Simple',
		'permlevel': 0
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'description',
		'fieldtype': 'Text Editor',
		'idx': 23,
		'label': 'Details',
		'oldfieldname': 'description',
		'oldfieldtype': 'Text Editor',
		'permlevel': 0,
		'reqd': 0,
		'width': '300px'
	},

	# DocField
	{
		'colour': 'White:FFF',
		'doctype': 'DocField',
		'fieldname': 'first_creation_flag',
		'fieldtype': 'Int',
		'hidden': 1,
		'idx': 24,
		'in_filter': 0,
		'label': 'First Creation Flag',
		'no_copy': 1,
		'oldfieldname': 'first_creation_flag',
		'oldfieldtype': 'Int',
		'permlevel': 0,
		'print_hide': 1,
		'search_index': 0
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'second_creation_flag',
		'fieldtype': 'Int',
		'hidden': 1,
		'idx': 25,
		'label': 'Second Creation Flag',
		'no_copy': 1,
		'oldfieldname': 'second_creation_flag',
		'oldfieldtype': 'Int',
		'permlevel': 0,
		'print_hide': 1
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldtype': 'Section Break',
		'idx': 26,
		'label': 'Time and Budget',
		'oldfieldtype': 'Section Break',
		'permlevel': 0
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldtype': 'Column Break',
		'idx': 27,
		'label': 'Expected',
		'oldfieldtype': 'Column Break',
		'permlevel': 0,
		'width': '50%'
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'exp_start_date',
		'fieldtype': 'Date',
		'idx': 28,
		'label': 'Expected Start Date',
		'oldfieldname': 'exp_start_date',
		'oldfieldtype': 'Date',
		'permlevel': 0,
		'reqd': 0
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'exp_end_date',
		'fieldtype': 'Date',
		'idx': 29,
		'in_filter': 1,
		'label': 'Expected End Date',
		'oldfieldname': 'exp_end_date',
		'oldfieldtype': 'Date',
		'permlevel': 0,
		'reqd': 0,
		'search_index': 1
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'exp_total_hrs',
		'fieldtype': 'Data',
		'idx': 30,
		'label': 'Total Hours (Expected)',
		'oldfieldname': 'exp_total_hrs',
		'oldfieldtype': 'Data',
		'permlevel': 0,
		'reqd': 0
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'allocated_budget',
		'fieldtype': 'Currency',
		'idx': 31,
		'label': 'Allocated Budget',
		'oldfieldname': 'allocated_budget',
		'oldfieldtype': 'Currency',
		'permlevel': 0
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldtype': 'Column Break',
		'idx': 32,
		'label': 'Actual',
		'oldfieldtype': 'Column Break',
		'permlevel': 0,
		'width': '50%'
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'act_start_date',
		'fieldtype': 'Date',
		'idx': 33,
		'label': 'Actual Start Date',
		'oldfieldname': 'act_start_date',
		'oldfieldtype': 'Date',
		'permlevel': 0
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'act_end_date',
		'fieldtype': 'Date',
		'idx': 34,
		'label': 'Actual End Date',
		'oldfieldname': 'act_end_date',
		'oldfieldtype': 'Date',
		'permlevel': 0
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'act_total_hrs',
		'fieldtype': 'Data',
		'idx': 35,
		'label': 'Total Hours (Actual)',
		'oldfieldname': 'act_total_hrs',
		'oldfieldtype': 'Data',
		'permlevel': 0
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'actual_budget',
		'fieldtype': 'Currency',
		'idx': 36,
		'label': 'Actual Budget',
		'oldfieldname': 'actual_budget',
		'oldfieldtype': 'Currency',
		'permlevel': 0
	}
]