# DocType, Email Digest
[

	# These values are common in all dictionaries
	{
		'creation': '2011-12-14 12:15:09',
		'docstatus': 0,
		'modified': '2011-12-22 19:01:33',
		'modified_by': 'Administrator',
		'owner': 'Administrator'
	},

	# These values are common for all DocType
	{
		'_last_update': '1324556758',
		'autoname': 'Prompt',
		'colour': 'White:FFF',
		'doctype': 'DocType',
		'document_type': 'System',
		'module': 'Setup',
		'name': '__common__',
		'section_style': 'Simple',
		'show_in_menu': 0,
		'version': 81
	},

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

	# These values are common for all DocPerm
	{
		'doctype': 'DocPerm',
		'name': '__common__',
		'parent': 'Email Digest',
		'parentfield': 'permissions',
		'parenttype': 'DocType',
		'read': 1,
		'role': 'System Manager'
	},

	# DocType, Email Digest
	{
		'doctype': 'DocType',
		'name': 'Email Digest'
	},

	# DocPerm
	{
		'cancel': 1,
		'create': 1,
		'doctype': 'DocPerm',
		'permlevel': 0,
		'write': 1
	},

	# DocPerm
	{
		'doctype': 'DocPerm',
		'permlevel': 1
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldtype': 'Section Break',
		'label': 'Settings',
		'permlevel': 0
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldtype': 'Column Break',
		'permlevel': 0
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'enabled',
		'fieldtype': 'Check',
		'label': 'Enabled',
		'permlevel': 0
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'company',
		'fieldtype': 'Select',
		'label': 'For Company',
		'options': 'link:Company',
		'permlevel': 0,
		'reqd': 1
	},

	# DocField
	{
		'allow_on_submit': 0,
		'doctype': 'DocField',
		'fieldname': 'frequency',
		'fieldtype': 'Select',
		'label': 'How frequently?',
		'options': '\nDaily\nWeekly\nMonthly',
		'permlevel': 0,
		'reqd': 1
	},

	# DocField
	{
		'depends_on': 'eval:doc.enabled',
		'doctype': 'DocField',
		'fieldname': 'next_send',
		'fieldtype': 'Data',
		'label': 'Next email will be sent on:',
		'permlevel': 1
	},

	# DocField
	{
		'default': '1',
		'doctype': 'DocField',
		'fieldname': 'use_standard',
		'fieldtype': 'Check',
		'hidden': 1,
		'label': 'Use standard?',
		'permlevel': 0,
		'search_index': 0
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldtype': 'Column Break',
		'permlevel': 0
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldtype': 'Button',
		'label': 'Add/Remove Recipients',
		'permlevel': 0,
		'trigger': 'Client'
	},

	# DocField
	{
		'description': 'Note: Email will not be sent to disabled users',
		'doctype': 'DocField',
		'fieldname': 'recipient_list',
		'fieldtype': 'Text',
		'label': 'Recipients',
		'permlevel': 1,
		'reqd': 1
	},

	# DocField
	{
		'depends_on': 'eval:doc.use_standard',
		'doctype': 'DocField',
		'fieldtype': 'Section Break',
		'label': 'Select Digest Content',
		'permlevel': 0
	},

	# DocField
	{
		'depends_on': 'eval:doc.use_standard',
		'doctype': 'DocField',
		'fieldname': 'new_leads',
		'fieldtype': 'Check',
		'label': 'New Leads',
		'permlevel': 0
	},

	# DocField
	{
		'depends_on': 'eval:doc.use_standard',
		'doctype': 'DocField',
		'fieldname': 'new_enquiries',
		'fieldtype': 'Check',
		'label': 'New Enquiries',
		'permlevel': 0
	},

	# DocField
	{
		'depends_on': 'eval:doc.use_standard',
		'doctype': 'DocField',
		'fieldname': 'new_quotations',
		'fieldtype': 'Check',
		'label': 'New Quotations',
		'permlevel': 0
	},

	# DocField
	{
		'depends_on': 'eval:doc.use_standard',
		'doctype': 'DocField',
		'fieldname': 'new_sales_orders',
		'fieldtype': 'Check',
		'label': 'New Sales Orders',
		'permlevel': 0
	},

	# DocField
	{
		'depends_on': 'eval:doc.use_standard',
		'doctype': 'DocField',
		'fieldname': 'new_purchase_orders',
		'fieldtype': 'Check',
		'label': 'New Purchase Orders',
		'permlevel': 0
	},

	# DocField
	{
		'depends_on': 'eval:doc.use_standard',
		'doctype': 'DocField',
		'fieldname': 'new_transactions',
		'fieldtype': 'Check',
		'label': 'New Transactions',
		'permlevel': 0
	},

	# DocField
	{
		'depends_on': 'eval:doc.use_standard',
		'doctype': 'DocField',
		'fieldname': 'payables',
		'fieldtype': 'Check',
		'label': 'Payables',
		'permlevel': 0
	},

	# DocField
	{
		'depends_on': 'eval:doc.use_standard',
		'doctype': 'DocField',
		'fieldname': 'payments',
		'fieldtype': 'Check',
		'label': 'Payments',
		'permlevel': 0
	},

	# DocField
	{
		'depends_on': 'eval:doc.use_standard',
		'doctype': 'DocField',
		'fieldname': 'expenses_booked',
		'fieldtype': 'Check',
		'label': 'Expenses Booked',
		'permlevel': 0
	},

	# DocField
	{
		'depends_on': 'eval:doc.use_standard',
		'doctype': 'DocField',
		'fieldname': 'invoiced_amount',
		'fieldtype': 'Check',
		'label': 'Invoiced Amount (Receivables)',
		'permlevel': 0
	},

	# DocField
	{
		'depends_on': 'eval:doc.use_standard',
		'doctype': 'DocField',
		'fieldname': 'collections',
		'fieldtype': 'Check',
		'label': 'Collections',
		'permlevel': 0
	},

	# DocField
	{
		'depends_on': 'eval:doc.use_standard',
		'doctype': 'DocField',
		'fieldname': 'income',
		'fieldtype': 'Check',
		'label': 'Income',
		'permlevel': 0
	},

	# DocField
	{
		'depends_on': 'eval:doc.use_standard',
		'doctype': 'DocField',
		'fieldname': 'income_year_to_date',
		'fieldtype': 'Check',
		'label': 'Income Year to Date',
		'permlevel': 0
	},

	# DocField
	{
		'depends_on': 'eval:doc.use_standard',
		'doctype': 'DocField',
		'fieldname': 'bank_balance',
		'fieldtype': 'Check',
		'label': 'Bank Balance',
		'permlevel': 0
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'stock_below_rl',
		'fieldtype': 'Check',
		'hidden': 1,
		'label': 'Stock Items below re-order level',
		'permlevel': 0
	},

	# DocField
	{
		'depends_on': 'eval:!doc.use_standard',
		'doctype': 'DocField',
		'fieldtype': 'Section Break',
		'label': 'Enter Custom Code',
		'permlevel': 0
	},

	# DocField
	{
		'depends_on': 'eval:!doc.use_standard',
		'doctype': 'DocField',
		'fieldname': 'custom_code',
		'fieldtype': 'Code',
		'label': 'Custom Python Code',
		'permlevel': 0
	},

	# DocField
	{
		'depends_on': 'eval:!doc.use_standard',
		'doctype': 'DocField',
		'fieldname': 'email_template',
		'fieldtype': 'Code',
		'label': 'Email Template',
		'permlevel': 0
	}
]