# DocType Mapper, Customer Issue-Maintenance Visit
[

	# These values are common in all dictionaries
	{
		'creation': '2010-08-08 17:09:34',
		'docstatus': 0,
		'modified': '2011-09-15 15:04:41',
		'modified_by': 'Administrator',
		'owner': 'ashwini@webnotestech.com'
	},

	# These values are common for all Table Mapper Detail
	{
		'doctype': 'Table Mapper Detail',
		'from_table': 'Customer Issue',
		'name': '__common__',
		'parent': 'Customer Issue-Maintenance Visit',
		'parentfield': 'table_mapper_details',
		'parenttype': 'DocType Mapper',
		'reference_key': 'prevdoc_docname',
		'validation_logic': 'docstatus=1'
	},

	# These values are common for all Field Mapper Detail
	{
		'doctype': 'Field Mapper Detail',
		'map': 'Yes',
		'name': '__common__',
		'parent': 'Customer Issue-Maintenance Visit',
		'parentfield': 'field_mapper_details',
		'parenttype': 'DocType Mapper'
	},

	# These values are common for all DocType Mapper
	{
		'doctype': 'DocType Mapper',
		'from_doctype': 'Customer Issue',
		'module': 'Support',
		'name': '__common__',
		'ref_doc_submitted': 1,
		'to_doctype': 'Maintenance Visit'
	},

	# DocType Mapper, Customer Issue-Maintenance Visit
	{
		'doctype': 'DocType Mapper',
		'name': 'Customer Issue-Maintenance Visit'
	},

	# Field Mapper Detail
	{
		'checking_operator': '=',
		'doctype': 'Field Mapper Detail',
		'from_field': 'customer',
		'match_id': 0,
		'to_field': 'customer'
	},

	# Field Mapper Detail
	{
		'doctype': 'Field Mapper Detail',
		'from_field': 'name',
		'match_id': 0,
		'to_field': 'customer_issue_no'
	},

	# Field Mapper Detail
	{
		'checking_operator': '=',
		'doctype': 'Field Mapper Detail',
		'from_field': 'complaint',
		'match_id': 1,
		'to_field': 'description'
	},

	# Field Mapper Detail
	{
		'doctype': 'Field Mapper Detail',
		'from_field': 'doctype',
		'match_id': 1,
		'to_field': 'prevdoc_doctype'
	},

	# Field Mapper Detail
	{
		'doctype': 'Field Mapper Detail',
		'from_field': 'name',
		'match_id': 1,
		'to_field': 'prevdoc_docname'
	},

	# Table Mapper Detail
	{
		'doctype': 'Table Mapper Detail',
		'match_id': 1,
		'reference_doctype_key': 'prevdoc_doctype',
		'to_field': 'maintenance_visit_details',
		'to_table': 'Maintenance Visit Purpose'
	},

	# Table Mapper Detail
	{
		'doctype': 'Table Mapper Detail',
		'match_id': 0,
		'to_table': 'Maintenance Visit'
	}
]