Merge branch 'sync_file_db' into shf_merge

Conflicts:
	erpnext/projects/doctype/project/project.txt
This commit is contained in:
Anand Doshi 2012-03-23 14:51:35 +05:30
commit 5f9501d4d8
91 changed files with 4563 additions and 7201 deletions

View File

@ -22,7 +22,7 @@
'in_create': 1, 'in_create': 1,
'module': 'Accounts', 'module': 'Accounts',
'name': '__common__', 'name': '__common__',
'search_fields': 'account_type, debit_or_credit, group_or_ledger', 'search_fields': 'debit_or_credit, group_or_ledger',
'section_style': 'Tray', 'section_style': 'Tray',
'server_code_error': ' ', 'server_code_error': ' ',
'show_in_menu': 0, 'show_in_menu': 0,
@ -484,4 +484,4 @@
'oldfieldtype': 'Small Text', 'oldfieldtype': 'Small Text',
'permlevel': 1 'permlevel': 1
} }
] ]

View File

@ -5,34 +5,35 @@
{ {
'creation': '2010-08-08 17:08:51', 'creation': '2010-08-08 17:08:51',
'docstatus': 0, 'docstatus': 0,
'modified': '2011-03-24 14:43:15', 'modified': '2012-03-21 12:55:11',
'modified_by': 'Administrator', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'_last_update': '1305714002', '_last_update': u'1322549700',
'autoname': '_ACB.######', 'autoname': u'_ACB.######',
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'istable': 0, 'istable': 0,
'module': 'Accounts', 'module': u'Accounts',
'name': '__common__', 'name': '__common__',
'search_fields': 'account, period, fiscal_year, balance', 'search_fields': u'account, period, fiscal_year, balance',
'section_style': 'Simple', 'section_style': u'Simple',
'server_code_error': ' ', 'server_code_error': u' ',
'show_in_menu': 0, 'show_in_menu': 0,
'version': 28 'version': 6
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Account Balance', 'parent': u'Account Balance',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType', 'parenttype': u'DocType',
'permlevel': 0 'permlevel': 0
}, },
@ -41,11 +42,11 @@
'amend': 0, 'amend': 0,
'cancel': 0, 'cancel': 0,
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'name': '__common__', 'name': '__common__',
'parent': 'Account Balance', 'parent': u'Account Balance',
'parentfield': 'permissions', 'parentfield': u'permissions',
'parenttype': 'DocType', 'parenttype': u'DocType',
'permlevel': 0, 'permlevel': 0,
'read': 1, 'read': 1,
'submit': 0, 'submit': 0,
@ -55,153 +56,122 @@
# DocType, Account Balance # DocType, Account Balance
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Account Balance' 'name': u'Account Balance'
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'role': 'Accounts User' 'role': u'Accounts User'
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'role': 'Accounts Manager' 'role': u'Accounts Manager'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'account', 'fieldname': u'account',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 1,
'in_filter': 1, 'in_filter': 1,
'label': 'Account', 'label': u'Account',
'options': 'Account', 'options': u'Account',
'search_index': 1 'search_index': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'period', 'fieldname': u'period',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 2,
'in_filter': 1, 'in_filter': 1,
'label': 'Period', 'label': u'Period',
'oldfieldname': 'period', 'oldfieldname': u'period',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'Period', 'options': u'Period',
'search_index': 1 'search_index': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'opening', 'fieldname': u'opening',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'idx': 4, 'label': u'Opening',
'label': 'Opening', 'oldfieldname': u'opening',
'oldfieldname': 'opening', 'oldfieldtype': u'Currency'
'oldfieldtype': 'Currency'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'debit', 'fieldname': u'debit',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'idx': 6, 'label': u'Debit',
'label': 'Debit', 'oldfieldname': u'debit',
'oldfieldname': 'debit', 'oldfieldtype': u'Currency'
'oldfieldtype': 'Currency'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'debit', 'fieldname': u'credit',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'idx': 6, 'label': u'Credit',
'label': 'Debit', 'oldfieldname': u'credit',
'oldfieldname': 'debit', 'oldfieldtype': u'Currency'
'oldfieldtype': 'Currency'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'credit', 'fieldname': u'balance',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'idx': 7, 'label': u'Balance',
'label': 'Credit', 'oldfieldname': u'balance',
'oldfieldname': 'credit', 'oldfieldtype': u'Currency'
'oldfieldtype': 'Currency'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'credit', 'fieldname': u'fiscal_year',
'fieldtype': 'Currency', 'fieldtype': u'Link',
'idx': 7,
'label': 'Credit',
'oldfieldname': 'credit',
'oldfieldtype': 'Currency'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'balance',
'fieldtype': 'Currency',
'idx': 8,
'label': 'Balance',
'oldfieldname': 'balance',
'oldfieldtype': 'Currency'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'fiscal_year',
'fieldtype': 'Link',
'hidden': 1, 'hidden': 1,
'idx': 9,
'in_filter': 1, 'in_filter': 1,
'label': 'Fiscal Year', 'label': u'Fiscal Year',
'oldfieldname': 'fiscal_year', 'oldfieldname': u'fiscal_year',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'Fiscal Year', 'options': u'Fiscal Year',
'search_index': 0 'search_index': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'start_date', 'fieldname': u'start_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'hidden': 1, 'hidden': 1,
'idx': 10,
'in_filter': 1, 'in_filter': 1,
'label': 'Start Date', 'label': u'Start Date',
'oldfieldname': 'start_date', 'oldfieldname': u'start_date',
'oldfieldtype': 'Date', 'oldfieldtype': u'Date',
'search_index': 1 'search_index': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'end_date', 'fieldname': u'end_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'hidden': 1, 'hidden': 1,
'idx': 11,
'in_filter': 1, 'in_filter': 1,
'label': 'End Date', 'label': u'End Date',
'oldfieldname': 'end_date', 'oldfieldname': u'end_date',
'oldfieldtype': 'Date', 'oldfieldtype': u'Date',
'search_index': 1 'search_index': 1
} }
] ]

View File

@ -5,109 +5,128 @@
{ {
'creation': '2010-08-08 17:08:52', 'creation': '2010-08-08 17:08:52',
'docstatus': 0, 'docstatus': 0,
'modified': '2010-09-23 13:57:17', 'modified': '2012-03-22 14:53:24',
'modified_by': 'umair@iwebnotes.com', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'istable': 1, 'istable': 1,
'module': 'Accounts', 'module': u'Accounts',
'name': '__common__', 'name': '__common__',
'section_style': 'Tray', 'section_style': u'Tray',
'show_in_menu': 0, 'show_in_menu': 0,
'version': 4 'version': 5
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Bank Reconciliation Detail', 'no_copy': 0,
'parentfield': 'fields', 'parent': u'Bank Reconciliation Detail',
'parenttype': 'DocType' 'parentfield': u'fields',
'parenttype': u'DocType',
'search_index': 0
}, },
# DocType, Bank Reconciliation Detail # DocType, Bank Reconciliation Detail
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Bank Reconciliation Detail' 'name': u'Bank Reconciliation Detail'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'voucher_id', 'fieldname': u'voucher_id',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 1, 'label': u'Voucher ID',
'label': 'Voucher ID', 'oldfieldname': u'voucher_id',
'oldfieldname': 'voucher_id', 'oldfieldtype': u'Link',
'oldfieldtype': 'Link', 'options': u'Journal Voucher',
'options': 'Journal Voucher',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'against_account', 'fieldname': u'against_account',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 2, 'label': u'Against Account',
'label': 'Against Account', 'oldfieldname': u'against_account',
'oldfieldname': 'against_account', 'oldfieldtype': u'Data',
'oldfieldtype': 'Data',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'description': 'The date at which current entry will get or has actually executed.', 'description': u'The date at which current entry will get or has actually executed.',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'posting_date', 'fieldname': u'posting_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'idx': 3, 'label': u'Posting Date',
'label': 'Posting Date', 'oldfieldname': u'posting_date',
'oldfieldname': 'posting_date', 'oldfieldtype': u'Date',
'oldfieldtype': 'Date',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'cheque_number', 'fieldname': u'cheque_number',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 4, 'label': u'Cheque Number',
'label': 'Cheque Number', 'oldfieldname': u'cheque_number',
'oldfieldname': 'cheque_number', 'oldfieldtype': u'Data',
'oldfieldtype': 'Data',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'cheque_date', 'fieldname': u'cheque_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'idx': 5, 'label': u'Cheque Date',
'label': 'Cheque Date', 'oldfieldname': u'cheque_date',
'oldfieldname': 'cheque_date', 'oldfieldtype': u'Date',
'oldfieldtype': 'Date',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'clearance_date', 'fieldname': u'debit',
'fieldtype': 'Date', 'fieldtype': u'Currency',
'idx': 8, 'label': u'Debit',
'label': 'Clearance Date', 'oldfieldname': u'debit',
'oldfieldname': 'clearance_date', 'oldfieldtype': u'Currency',
'oldfieldtype': 'Date', 'permlevel': 1
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'credit',
'fieldtype': u'Currency',
'label': u'Credit',
'oldfieldname': u'credit',
'oldfieldtype': u'Currency',
'permlevel': 1
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'clearance_date',
'fieldtype': u'Date',
'label': u'Clearance Date',
'oldfieldname': u'clearance_date',
'oldfieldtype': u'Date',
'permlevel': 0 'permlevel': 0
} }
] ]

View File

@ -5,205 +5,193 @@
{ {
'creation': '2010-08-08 17:09:02', 'creation': '2010-08-08 17:09:02',
'docstatus': 0, 'docstatus': 0,
'modified': '2011-01-03 17:52:39', 'modified': '2012-03-21 12:54:40',
'modified_by': 'umair@iwebnotes.com', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'_last_update': '1307707462', '_last_update': u'1322549700',
'allow_trash': 1, 'allow_trash': 1,
'autoname': 'field:year', 'autoname': u'field:year',
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'document_type': 'Master', 'document_type': u'Master',
'module': 'Accounts', 'module': u'Accounts',
'name': '__common__', 'name': '__common__',
'section_style': 'Tabbed', 'section_style': u'Tabbed',
'server_code_error': ' ', 'server_code_error': u' ',
'show_in_menu': 0, 'show_in_menu': 0,
'version': 54 'version': 57
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Fiscal Year', 'parent': u'Fiscal Year',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType' 'parenttype': u'DocType'
}, },
# These values are common for all DocPerm # These values are common for all DocPerm
{ {
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'name': '__common__', 'name': '__common__',
'parent': 'Fiscal Year', 'parent': u'Fiscal Year',
'parentfield': 'permissions', 'parentfield': u'permissions',
'parenttype': 'DocType', 'parenttype': u'DocType',
'permlevel': 0, 'permlevel': 0,
'read': 1, 'read': 1,
'role': 'System Manager', 'role': u'System Manager',
'write': 1 'write': 1
}, },
# DocType, Fiscal Year # DocType, Fiscal Year
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Fiscal Year' 'name': u'Fiscal Year'
}, },
# DocPerm # DocPerm
{ {
'amend': 0, 'amend': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 1,
'submit': 0 'submit': 0
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm'
'idx': 2
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'idx': 1, 'label': u'Year Details',
'label': 'Year Details', 'oldfieldtype': u'Section Break',
'oldfieldtype': 'Section Break',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'trash_reason', 'fieldname': u'trash_reason',
'fieldtype': 'Small Text', 'fieldtype': u'Small Text',
'idx': 2, 'label': u'Trash Reason',
'label': 'Trash Reason', 'oldfieldname': u'trash_reason',
'oldfieldname': 'trash_reason', 'oldfieldtype': u'Small Text',
'oldfieldtype': 'Small Text',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'year', 'fieldname': u'year',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 3, 'label': u'Year Name',
'label': 'Year Name', 'oldfieldname': u'year',
'oldfieldname': 'year', 'oldfieldtype': u'Data',
'oldfieldtype': 'Data',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'abbreviation', 'fieldname': u'abbreviation',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 4, 'label': u'Abbreviation',
'label': 'Abbreviation', 'oldfieldname': u'abbreviation',
'oldfieldname': 'abbreviation', 'oldfieldtype': u'Data',
'oldfieldtype': 'Data',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'year_start_date', 'fieldname': u'year_start_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'idx': 5, 'label': u'Year Start Date',
'label': 'Year Start Date', 'oldfieldname': u'year_start_date',
'oldfieldname': 'year_start_date', 'oldfieldtype': u'Date',
'oldfieldtype': 'Date',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'is_fiscal_year_closed', 'fieldname': u'is_fiscal_year_closed',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 6, 'label': u'Year Closed',
'label': 'Year Closed', 'oldfieldname': u'is_fiscal_year_closed',
'oldfieldname': 'is_fiscal_year_closed', 'oldfieldtype': u'Select',
'oldfieldtype': 'Select', 'options': u'\nNo\nYes',
'options': '\nNo\nYes',
'permlevel': 0, 'permlevel': 0,
'reqd': 0 'reqd': 0
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'description': "Click on the button below to reset balances from your previous year's closing and repost your balances. You can use this if your previous year balance sheet has been changed and you wish to update your current accounts.", 'description': u"Click on the button below to reset balances from your previous year's closing and repost your balances. You can use this if your previous year balance sheet has been changed and you wish to update your current accounts.",
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'idx': 7, 'label': u'Repost Accounts',
'label': 'Repost Accounts', 'oldfieldtype': u'Section Break',
'oldfieldtype': 'Section Break',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'past_year', 'fieldname': u'past_year',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 8, 'label': u'Past Year',
'label': 'Past Year', 'oldfieldname': u'past_year',
'oldfieldname': 'past_year', 'oldfieldtype': u'Select',
'oldfieldtype': 'Select', 'options': u'link:Fiscal Year',
'options': 'link:Fiscal Year',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'company', 'fieldname': u'company',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 9, 'in_filter': 0,
'in_filter': 1, 'label': u'Company',
'label': 'Company', 'oldfieldname': u'company',
'oldfieldname': 'company', 'oldfieldtype': u'Link',
'oldfieldtype': 'Link', 'options': u'Company',
'options': 'Company',
'permlevel': 0, 'permlevel': 0,
'search_index': 0 'search_index': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Button', 'fieldtype': u'Button',
'idx': 10, 'label': u'Repost Account Balances',
'label': 'Repost Account Balances', 'oldfieldtype': u'Button',
'oldfieldtype': 'Button', 'options': u'repost',
'options': 'repost',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Button', 'fieldtype': u'Button',
'idx': 11, 'label': u'Repost Voucher Outstanding',
'label': 'Repost Voucher Outstanding', 'oldfieldtype': u'Button',
'oldfieldtype': 'Button', 'options': u'update_voucher_outstanding',
'options': 'update_voucher_outstanding',
'permlevel': 0 'permlevel': 0
} }
] ]

View File

@ -5,262 +5,262 @@
{ {
'creation': '2011-08-30 11:45:50', 'creation': '2011-08-30 11:45:50',
'docstatus': 0, 'docstatus': 0,
'modified': '2011-09-26 14:21:22', 'modified': '2012-03-21 12:55:31',
'modified_by': 'Administrator', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'_last_update': '1316509358', '_last_update': u'1316509358',
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': 'Standard', 'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'document_type': 'Other', 'document_type': u'Other',
'issingle': 1, 'issingle': 1,
'module': 'Accounts', 'module': u'Accounts',
'name': '__common__', 'name': '__common__',
'section_style': 'Simple', 'section_style': u'Simple',
'show_in_menu': 1, 'show_in_menu': 1,
'version': 35 'version': 37
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Internal Reconciliation', 'parent': u'Internal Reconciliation',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType' 'parenttype': u'DocType'
}, },
# These values are common for all DocPerm # These values are common for all DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'name': '__common__', 'name': '__common__',
'parent': 'Internal Reconciliation', 'parent': u'Internal Reconciliation',
'parentfield': 'permissions', 'parentfield': u'permissions',
'parenttype': 'DocType', 'parenttype': u'DocType',
'read': 1 'read': 1
}, },
# DocType, Internal Reconciliation # DocType, Internal Reconciliation
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Internal Reconciliation' 'name': u'Internal Reconciliation'
}, },
# DocPerm # DocPerm
{ {
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'permlevel': 0, 'permlevel': 0,
'role': 'System Manager', 'role': u'System Manager',
'write': 1 'write': 1
}, },
# DocPerm # DocPerm
{ {
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'permlevel': 0, 'permlevel': 0,
'role': 'Accounts Manager', 'role': u'Accounts Manager',
'write': 1 'write': 1
}, },
# DocPerm # DocPerm
{ {
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'permlevel': 0, 'permlevel': 0,
'role': 'Accounts User', 'role': u'Accounts User',
'write': 1 'write': 1
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'permlevel': 1, 'permlevel': 1,
'role': 'All' 'role': u'All'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Column Break', 'fieldtype': u'Column Break',
'permlevel': 0, 'permlevel': 0,
'width': '50%' 'width': u'50%'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'account', 'fieldname': u'account',
'fieldtype': 'Link', 'fieldtype': u'Link',
'label': 'Account', 'label': u'Account',
'options': 'Account', 'options': u'Account',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'voucher_type', 'fieldname': u'voucher_type',
'fieldtype': 'Select', 'fieldtype': u'Select',
'label': 'Voucher Type', 'label': u'Voucher Type',
'options': 'Sales Invoice\nPurchase Invoice\nJournal Voucher', 'options': u'Sales Invoice\nPurchase Invoice\nJournal Voucher',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'voucher_no', 'fieldname': u'voucher_no',
'fieldtype': 'Link', 'fieldtype': u'Link',
'label': 'Voucher No', 'label': u'Voucher No',
'permlevel': 0, 'permlevel': 0,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Column Break', 'fieldtype': u'Column Break',
'permlevel': 0, 'permlevel': 0,
'width': '50%' 'width': u'50%'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'total_amount', 'fieldname': u'total_amount',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'label': 'Total Amount', 'label': u'Total Amount',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'pending_amt_to_reconcile', 'fieldname': u'pending_amt_to_reconcile',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'label': 'Pending Amt To Reconcile', 'label': u'Pending Amt To Reconcile',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'label': 'Payment Entries', 'label': u'Payment Entries',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Column Break', 'fieldtype': u'Column Break',
'label': "<div class = 'field_description'>Filter payment entries based on date:</div>", 'label': u"<div class = 'field_description'>Filter payment entries based on date:</div>",
'permlevel': 0, 'permlevel': 0,
'width': '50%' 'width': u'50%'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'from_date', 'fieldname': u'from_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'label': 'From Date', 'label': u'From Date',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'to_date', 'fieldname': u'to_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'label': 'To Date', 'label': u'To Date',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Column Break', 'fieldtype': u'Column Break',
'label': "<div class = 'field_description'>Filter payment entries based on amount:</div>", 'label': u"<div class = 'field_description'>Filter payment entries based on amount:</div>",
'permlevel': 0, 'permlevel': 0,
'width': '50%' 'width': u'50%'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'amt_greater_than', 'fieldname': u'amt_greater_than',
'fieldtype': 'Data', 'fieldtype': u'Data',
'label': 'Amount >=', 'label': u'Amount >=',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'amt_less_than', 'fieldname': u'amt_less_than',
'fieldtype': 'Data', 'fieldtype': u'Data',
'label': 'Amount <=', 'label': u'Amount <=',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'options': 'Simple', 'options': u'Simple',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Button', 'fieldtype': u'Button',
'label': 'Pull Payment Entries', 'label': u'Pull Payment Entries',
'options': 'get_payment_entries', 'options': u'get_payment_entries',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'ir_payment_details', 'fieldname': u'ir_payment_details',
'fieldtype': 'Table', 'fieldtype': u'Table',
'label': 'Payment Entries', 'label': u'Payment Entries',
'options': 'IR Payment Detail', 'options': u'IR Payment Detail',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'HTML', 'fieldtype': u'HTML',
'label': 'Reconcile HTML', 'label': u'Reconcile HTML',
'options': "<div class='field_description'>Select Payment Voucher and Amount to Reconcile in the above table and then click Reconcile button</div>", 'options': u"<div class='field_description'>Select Payment Voucher and Amount to Reconcile in the above table and then click Reconcile button</div>",
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Button', 'fieldtype': u'Button',
'label': 'Reconcile', 'label': u'Reconcile',
'options': 'reconcile', 'options': u'reconcile',
'permlevel': 0, 'permlevel': 0,
'trigger': 'Client' 'trigger': u'Client'
} }
] ]

View File

@ -5,187 +5,179 @@
{ {
'creation': '2010-08-08 17:09:06', 'creation': '2010-08-08 17:09:06',
'docstatus': 0, 'docstatus': 0,
'modified': '2010-10-01 16:24:51', 'modified': '2012-03-21 12:26:17',
'modified_by': 'umair@iwebnotes.com', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'autoname': 'JVD.######', 'autoname': u'JVD.######',
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'istable': 1, 'istable': 1,
'module': 'Accounts', 'module': u'Accounts',
'name': '__common__', 'name': '__common__',
'section_style': 'Tray', 'section_style': u'Tray',
'server_code_error': ' ', 'server_code_error': u' ',
'show_in_menu': 0, 'show_in_menu': 0,
'version': 2 'version': 3
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Journal Voucher Detail', 'parent': u'Journal Voucher Detail',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType' 'parenttype': u'DocType'
}, },
# DocType, Journal Voucher Detail # DocType, Journal Voucher Detail
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Journal Voucher Detail' 'name': u'Journal Voucher Detail'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'account', 'fieldname': u'account',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 1,
'in_filter': 1, 'in_filter': 1,
'label': 'Account', 'label': u'Account',
'oldfieldname': 'account', 'oldfieldname': u'account',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'Account', 'options': u'Account',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1,
'search_index': 1, 'search_index': 1,
'trigger': 'Client', 'trigger': u'Client',
'width': '180px' 'width': u'180px'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'cost_center', 'fieldname': u'cost_center',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 2,
'in_filter': 1, 'in_filter': 1,
'label': 'Cost Center', 'label': u'Cost Center',
'oldfieldname': 'cost_center', 'oldfieldname': u'cost_center',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'Cost Center', 'options': u'Cost Center',
'permlevel': 0, 'permlevel': 0,
'search_index': 0, 'search_index': 0,
'width': '180px' 'width': u'180px'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'balance', 'fieldname': u'balance',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 3, 'label': u'Balance',
'label': 'Balance',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'balance', 'oldfieldname': u'balance',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'debit', 'fieldname': u'debit',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'idx': 4, 'label': u'Debit',
'label': 'Debit', 'oldfieldname': u'debit',
'oldfieldname': 'debit', 'oldfieldtype': u'Currency',
'oldfieldtype': 'Currency',
'permlevel': 0, 'permlevel': 0,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'credit', 'fieldname': u'credit',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'idx': 5, 'label': u'Credit',
'label': 'Credit', 'oldfieldname': u'credit',
'oldfieldname': 'credit', 'oldfieldtype': u'Currency',
'oldfieldtype': 'Currency',
'permlevel': 0, 'permlevel': 0,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'against_voucher', 'fieldname': u'against_voucher',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 6,
'in_filter': 1, 'in_filter': 1,
'label': 'Against Payable', 'label': u'Against Payable',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'against_voucher', 'oldfieldname': u'against_voucher',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'Payable Voucher', 'options': u'Payable Voucher',
'permlevel': 0, 'permlevel': 0,
'search_index': 1, 'search_index': 1,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'against_invoice', 'fieldname': u'against_invoice',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 7,
'in_filter': 1, 'in_filter': 1,
'label': 'Against Receivable', 'label': u'Against Receivable',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'against_invoice', 'oldfieldname': u'against_invoice',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'Receivable Voucher', 'options': u'Receivable Voucher',
'permlevel': 0, 'permlevel': 0,
'search_index': 1, 'search_index': 1,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'against_jv', 'fieldname': u'against_jv',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 8,
'in_filter': 1, 'in_filter': 1,
'label': 'Against JV', 'label': u'Against JV',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'against_jv', 'oldfieldname': u'against_jv',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'Journal Voucher', 'options': u'Journal Voucher',
'permlevel': 0,
'search_index': 1
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'is_advance',
'fieldtype': u'Select',
'label': u'Is Advance',
'no_copy': 1,
'oldfieldname': u'is_advance',
'oldfieldtype': u'Select',
'options': u'No\nYes',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'is_advance', 'fieldname': u'against_account',
'fieldtype': 'Select', 'fieldtype': u'Text',
'idx': 9,
'label': 'Is Advance',
'no_copy': 1,
'oldfieldname': 'is_advance',
'oldfieldtype': 'Select',
'options': 'No\nYes',
'permlevel': 0
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'against_account',
'fieldtype': 'Text',
'hidden': 1, 'hidden': 1,
'idx': 10, 'label': u'Against Account',
'label': 'Against Account',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'against_account', 'oldfieldname': u'against_account',
'oldfieldtype': 'Text', 'oldfieldtype': u'Text',
'permlevel': 0 'permlevel': 0
} }
] ]

View File

@ -3,308 +3,291 @@
# These values are common in all dictionaries # These values are common in all dictionaries
{ {
'creation': '2011-07-22 17:47:57', 'creation': '2011-07-27 13:14:28',
'docstatus': 0, 'docstatus': 0,
'modified': '2011-07-27 15:33:55', 'modified': '2012-03-21 12:43:53',
'modified_by': 'Administrator', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'_last_update': '1311555967', '_last_update': u'1311555967',
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'module': 'Accounts', 'module': u'Accounts',
'name': '__common__', 'name': '__common__',
'section_style': 'Simple', 'section_style': u'Simple',
'show_in_menu': 0, 'show_in_menu': 0,
'version': 21 'version': 24
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Lease Agreement', 'parent': u'Lease Agreement',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType' 'parenttype': u'DocType'
}, },
# These values are common for all DocPerm # These values are common for all DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'name': '__common__', 'name': '__common__',
'parent': 'Lease Agreement', 'parent': u'Lease Agreement',
'parentfield': 'permissions', 'parentfield': u'permissions',
'parenttype': 'DocType', 'parenttype': u'DocType',
'read': 1 'read': 1
}, },
# DocType, Lease Agreement # DocType, Lease Agreement
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Lease Agreement' 'name': u'Lease Agreement'
}, },
# DocPerm # DocPerm
{ {
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 1,
'permlevel': 0, 'permlevel': 0,
'role': 'Accounts User', 'role': u'Accounts User',
'submit': 1, 'submit': 1,
'write': 1 'write': 1
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 2,
'permlevel': 1, 'permlevel': 1,
'role': 'Accounts User' 'role': u'Accounts User'
}, },
# DocPerm # DocPerm
{ {
'amend': 1,
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 3,
'permlevel': 0, 'permlevel': 0,
'role': 'Accounts Manager', 'role': u'Accounts Manager',
'submit': 1, 'submit': 1,
'write': 1 'write': 1
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'amend': 0,
'idx': 4, 'cancel': 0,
'create': 0,
'doctype': u'DocPerm',
'permlevel': 1, 'permlevel': 1,
'role': 'Accounts Manager' 'role': u'Accounts Manager',
'submit': 0,
'write': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'naming_series', 'fieldname': u'naming_series',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 1, 'label': u'Naming Series',
'label': 'Naming Series', 'no_copy': 1,
'options': '\nLA', 'options': u'\nLA',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'idx': 2, 'label': u'Lessee Info.',
'label': 'Lessee Info.',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'account', 'fieldname': u'account',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 3, 'label': u'Account',
'label': 'Lessee Account', 'options': u'Account',
'options': 'Account',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'lessee_father', 'fieldname': u'lessee_father',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 4, 'label': u'Lessee Father',
'label': 'Lessee Father',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'lessee_nic', 'fieldname': u'lessee_nic',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 5, 'label': u'Lessee NIC',
'label': 'Lessee NIC',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'lessee_contact', 'fieldname': u'lessee_contact',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 6, 'label': u'Lessee Contact',
'label': 'Lessee Contact',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'lessee_address', 'fieldname': u'lessee_address',
'fieldtype': 'Text', 'fieldtype': u'Text',
'idx': 7, 'label': u'Lessee Address',
'label': 'Lessee Address',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'idx': 8, 'label': u'Vehicle Info.',
'label': 'Vehicle Info.',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'model_no', 'fieldname': u'model_no',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 9, 'label': u'Model No',
'label': 'Model No',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'engine_no', 'fieldname': u'engine_no',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 10, 'label': u'Engine No',
'label': 'Engine No',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'chassis_no', 'fieldname': u'chassis_no',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 11, 'label': u'Chassis No',
'label': 'Chassis No',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'idx': 12, 'label': u'Invoice and Payment Info.',
'label': 'Invoice and Payment Info.',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'invoice', 'fieldname': u'invoice',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 13, 'label': u'Invoice',
'label': 'Invoice', 'options': u'Receivable Voucher',
'options': 'Receivable Voucher',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'invoice_amount', 'fieldname': u'invoice_amount',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'idx': 14, 'label': u'Invoice Amount',
'label': 'Invoice Amount',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'down_payment', 'fieldname': u'down_payment',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'idx': 15, 'label': u'Down Payment',
'label': 'Down Payment',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'start_date', 'fieldname': u'start_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'idx': 16, 'label': u'Start Date',
'label': 'Start Date',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'no_of_installments', 'fieldname': u'no_of_installments',
'fieldtype': 'Int', 'fieldtype': u'Int',
'idx': 17, 'label': u'No of Installments',
'label': 'No of Installments',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'installment_amount', 'fieldname': u'installment_amount',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'idx': 18, 'label': u'Installment Amount',
'label': 'Installment Amount',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Button', 'fieldtype': u'Button',
'idx': 19, 'label': u'Generate',
'label': 'Generate',
'permlevel': 0, 'permlevel': 0,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'installments', 'fieldname': u'installments',
'fieldtype': 'Table', 'fieldtype': u'Table',
'idx': 20, 'label': u'Installments',
'label': 'Installments', 'options': u'Lease Installment',
'options': 'Lease Installment',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'allow_on_submit': 1, 'allow_on_submit': 1,
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Button', 'fieldtype': u'Button',
'idx': 21, 'label': u'Installment Reciept',
'label': 'Installment Reciept',
'permlevel': 0 'permlevel': 0
} }
] ]

View File

@ -5,75 +5,78 @@
{ {
'creation': '2010-10-25 17:25:22', 'creation': '2010-10-25 17:25:22',
'docstatus': 0, 'docstatus': 0,
'modified': '2010-12-23 13:34:27', 'modified': '2012-03-21 12:39:36',
'modified_by': 'umair@iwebnotes.com', 'modified_by': u'Administrator',
'owner': 'jai@webnotestech.com' 'owner': u'jai@webnotestech.com'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'autoname': 'PCE/.###', '_last_update': u'1311621379',
'colour': 'White:FFF', 'autoname': u'PCE/.###',
'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'module': 'Accounts', 'module': u'Accounts',
'name': '__common__', 'name': '__common__',
'search_fields': 'posting_date, fiscal_year', 'search_fields': u'posting_date, fiscal_year',
'section_style': 'Simple', 'section_style': u'Simple',
'server_code_error': ' ', 'server_code_error': u' ',
'version': 121 'show_in_menu': 0,
'version': 123
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Period Closing Voucher', 'parent': u'Period Closing Voucher',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType' 'parenttype': u'DocType'
}, },
# These values are common for all DocPerm # These values are common for all DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'name': '__common__', 'name': '__common__',
'parent': 'Period Closing Voucher', 'parent': u'Period Closing Voucher',
'parentfield': 'permissions', 'parentfield': u'permissions',
'parenttype': 'DocType', 'parenttype': u'DocType',
'read': 1 'read': 1
}, },
# DocType, Period Closing Voucher # DocType, Period Closing Voucher
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Period Closing Voucher' 'name': u'Period Closing Voucher'
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'permlevel': 1, 'permlevel': 1,
'role': 'System Manager' 'role': u'System Manager'
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'permlevel': 1, 'permlevel': 1,
'role': 'Accounts Manager' 'role': u'Accounts Manager'
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'permlevel': 1, 'permlevel': 1,
'role': 'System Manager' 'role': u'System Manager'
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'permlevel': 1, 'permlevel': 1,
'role': 'Accounts Manager' 'role': u'Accounts Manager'
}, },
# DocPerm # DocPerm
@ -81,10 +84,9 @@
'amend': 1, 'amend': 1,
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 1,
'permlevel': 0, 'permlevel': 0,
'role': 'System Manager', 'role': u'System Manager',
'submit': 1, 'submit': 1,
'write': 1 'write': 1
}, },
@ -93,161 +95,149 @@
{ {
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 2,
'permlevel': 0, 'permlevel': 0,
'role': 'Accounts Manager', 'role': u'Accounts Manager',
'submit': 1, 'submit': 1,
'write': 1 'write': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Column Break', 'fieldtype': u'Column Break',
'idx': 1, 'oldfieldtype': u'Column Break',
'oldfieldtype': 'Column Break',
'permlevel': 0, 'permlevel': 0,
'width': '50%' 'width': u'50%'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'transaction_date', 'fieldname': u'transaction_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'idx': 2, 'label': u'Transaction Date',
'label': 'Transaction Date', 'oldfieldname': u'transaction_date',
'oldfieldname': 'transaction_date', 'oldfieldtype': u'Date',
'oldfieldtype': 'Date',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'posting_date', 'fieldname': u'posting_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'idx': 3, 'label': u'Posting Date',
'label': 'Posting Date', 'oldfieldname': u'posting_date',
'oldfieldname': 'posting_date', 'oldfieldtype': u'Date',
'oldfieldtype': 'Date',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'fiscal_year', 'fieldname': u'fiscal_year',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 4, 'label': u'Closing Fiscal Year',
'label': 'Closing Fiscal Year', 'oldfieldname': u'fiscal_year',
'oldfieldname': 'fiscal_year', 'oldfieldtype': u'Select',
'oldfieldtype': 'Select', 'options': u'link:Fiscal Year',
'options': 'link:Fiscal Year',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1
'search_index': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'amended_from', 'fieldname': u'amended_from',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 5, 'label': u'Amended From',
'label': 'Amended From', 'no_copy': 1,
'oldfieldname': 'amended_from', 'oldfieldname': u'amended_from',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'amendment_date', 'fieldname': u'amendment_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'idx': 6, 'label': u'Amendment Date',
'label': 'Amendment Date', 'no_copy': 1,
'oldfieldname': 'amendment_date', 'oldfieldname': u'amendment_date',
'oldfieldtype': 'Date', 'oldfieldtype': u'Date',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'company', 'fieldname': u'company',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 7, 'label': u'Company',
'label': 'Company', 'oldfieldname': u'company',
'oldfieldname': 'company', 'oldfieldtype': u'Select',
'oldfieldtype': 'Select', 'options': u'link:Company',
'options': 'link:Company',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Column Break', 'fieldtype': u'Column Break',
'idx': 8, 'oldfieldtype': u'Column Break',
'oldfieldtype': 'Column Break',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'closing_account_head', 'fieldname': u'closing_account_head',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 9, 'label': u'Closing Account Head',
'label': 'Closing Account Head', 'oldfieldname': u'closing_account_head',
'oldfieldname': 'closing_account_head', 'oldfieldtype': u'Link',
'oldfieldtype': 'Link', 'options': u'Account',
'options': 'Account',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'HTML', 'fieldtype': u'HTML',
'idx': 10, 'label': u'CoA Help',
'label': 'CoA Help', 'oldfieldtype': u'HTML',
'oldfieldtype': 'HTML', 'options': u'<a href="javascript:cur_frm.cscript.acc_help();">To create Account Head, click here</a>',
'options': '<a href="javascript:cur_frm.cscript.acc_help();">To create Account Head, click here</a>',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'remarks', 'fieldname': u'remarks',
'fieldtype': 'Small Text', 'fieldtype': u'Small Text',
'idx': 11, 'label': u'Remarks',
'label': 'Remarks', 'oldfieldname': u'remarks',
'oldfieldname': 'remarks', 'oldfieldtype': u'Small Text',
'oldfieldtype': 'Small Text',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'cancel_reason', 'fieldname': u'cancel_reason',
'fieldtype': 'Small Text', 'fieldtype': u'Small Text',
'hidden': 1, 'hidden': 1,
'idx': 12, 'label': u'Cancel Reason',
'label': 'Cancel Reason', 'oldfieldname': u'cancel_reason',
'oldfieldname': 'cancel_reason', 'oldfieldtype': u'Small Text',
'oldfieldtype': 'Small Text',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
'search_index': 0 'search_index': 0
@ -255,39 +245,36 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'idx': 13, 'label': u'Repost Account Balances',
'label': 'Repost Account Balances', 'oldfieldtype': u'Section Break',
'oldfieldtype': 'Section Break', 'options': u'Simple',
'options': 'Simple',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'allow_on_submit': 1, 'allow_on_submit': 1,
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'next_fiscal_year', 'fieldname': u'next_fiscal_year',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 14, 'label': u'Fiscal Year (For Reposting)',
'label': 'Fiscal Year (For Reposting)', 'oldfieldname': u'next_fiscal_year',
'oldfieldname': 'next_fiscal_year', 'oldfieldtype': u'Select',
'oldfieldtype': 'Select', 'options': u'link:Fiscal Year',
'options': 'link:Fiscal Year',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'allow_on_submit': 1, 'allow_on_submit': 1,
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Button', 'fieldtype': u'Button',
'idx': 15, 'label': u'Repost',
'label': 'Repost', 'oldfieldtype': u'Button',
'oldfieldtype': 'Button', 'options': u'repost_account_balances',
'options': 'repost_account_balances',
'permlevel': 0 'permlevel': 0
} }
] ]

View File

@ -5,40 +5,43 @@
{ {
'creation': '2010-12-15 08:39:23', 'creation': '2010-12-15 08:39:23',
'docstatus': 0, 'docstatus': 0,
'modified': '2010-12-10 11:29:51', 'modified': '2012-03-21 12:39:49',
'modified_by': 'rahul@webnotestech.com', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'autoname': 'POS/.####', '_last_update': u'1322549700',
'colour': 'White:FFF', 'autoname': u'POS/.####',
'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'module': 'Accounts', 'module': u'Accounts',
'name': '__common__', 'name': '__common__',
'section_style': 'Simple', 'section_style': u'Simple',
'server_code_error': ' ', 'server_code_error': u' ',
'version': 27 'show_in_menu': 0,
'version': 33
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'POS Setting', 'parent': u'POS Setting',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType', 'parenttype': u'DocType',
'permlevel': 0 'permlevel': 0
}, },
# These values are common for all DocPerm # These values are common for all DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'name': '__common__', 'name': '__common__',
'parent': 'POS Setting', 'parent': u'POS Setting',
'parentfield': 'permissions', 'parentfield': u'permissions',
'parenttype': 'DocType', 'parenttype': u'DocType',
'permlevel': 0, 'permlevel': 0,
'read': 1 'read': 1
}, },
@ -46,15 +49,14 @@
# DocType, POS Setting # DocType, POS Setting
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'POS Setting' 'name': u'POS Setting'
}, },
# DocPerm # DocPerm
{ {
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 1, 'role': u'System Manager',
'role': 'System Manager',
'submit': 0, 'submit': 0,
'write': 1 'write': 1
}, },
@ -62,247 +64,219 @@
# DocPerm # DocPerm
{ {
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 2, 'role': u'System Manager',
'role': 'System Manager',
'write': 1 'write': 1
}, },
# DocPerm # DocPerm
{ {
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 3, 'role': u'Accounts Manager',
'role': 'Accounts Manager',
'write': 1 'write': 1
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 4, 'role': u'Accounts User'
'role': 'Accounts User'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'user', 'fieldname': u'user',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 1, 'label': u'User',
'label': 'User', 'oldfieldname': u'user',
'oldfieldname': 'user', 'oldfieldtype': u'Link',
'oldfieldtype': 'Link', 'options': u'Profile'
'options': 'Profile'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'territory', 'fieldname': u'territory',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 2, 'label': u'Territory',
'label': 'Territory', 'oldfieldname': u'territory',
'oldfieldname': 'territory', 'oldfieldtype': u'Link',
'oldfieldtype': 'Link', 'options': u'Territory',
'options': 'Territory',
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'naming_series', 'fieldname': u'naming_series',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 3, 'label': u'Series',
'label': 'Series',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'naming_series', 'oldfieldname': u'naming_series',
'oldfieldtype': 'Select', 'oldfieldtype': u'Select',
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'currency', 'fieldname': u'currency',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 4, 'label': u'Currency',
'label': 'Currency', 'oldfieldname': u'currency',
'oldfieldname': 'currency', 'oldfieldtype': u'Select',
'oldfieldtype': 'Select', 'options': u'link:Currency',
'options': 'link:Currency',
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'default': '1.00', 'default': u'1',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'conversion_rate', 'fieldname': u'conversion_rate',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'idx': 5, 'label': u'Conversion Rate',
'label': 'Conversion Rate', 'oldfieldname': u'conversion_rate',
'oldfieldname': 'conversion_rate', 'oldfieldtype': u'Currency',
'oldfieldtype': 'Currency',
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'price_list_name', 'fieldname': u'price_list_name',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 6, 'label': u'Price List',
'label': 'Price List', 'oldfieldname': u'price_list_name',
'oldfieldname': 'price_list_name', 'oldfieldtype': u'Select',
'oldfieldtype': 'Select', 'options': u'link:Price List',
'options': 'link:Price List',
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'company', 'fieldname': u'company',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 7, 'label': u'Company',
'label': 'Company', 'oldfieldname': u'company',
'oldfieldname': 'company', 'oldfieldtype': u'Link',
'oldfieldtype': 'Link', 'options': u'Company',
'options': 'Company', 'reqd': 1
'reqd': 1,
'search_index': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Column Break', 'fieldtype': u'Column Break',
'idx': 8, 'oldfieldtype': u'Column Break'
'oldfieldtype': 'Column Break'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'customer_account', 'fieldname': u'customer_account',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 9, 'label': u'Customer Account',
'label': 'Customer Account', 'oldfieldname': u'customer_account',
'oldfieldname': 'customer_account', 'oldfieldtype': u'Link',
'oldfieldtype': 'Link', 'options': u'Account',
'options': 'Account', 'reqd': 0
'reqd': 0,
'search_index': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'cash_bank_account', 'fieldname': u'cash_bank_account',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 10, 'label': u'Cash/Bank Account',
'label': 'Cash/Bank Account', 'oldfieldname': u'cash_bank_account',
'oldfieldname': 'cash_bank_account', 'oldfieldtype': u'Link',
'oldfieldtype': 'Link', 'options': u'Account',
'options': 'Account', 'reqd': 1
'reqd': 1,
'search_index': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'income_account', 'fieldname': u'income_account',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 11, 'label': u'Income Account',
'label': 'Income Account', 'oldfieldname': u'income_account',
'oldfieldname': 'income_account', 'oldfieldtype': u'Link',
'oldfieldtype': 'Link', 'options': u'Account',
'options': 'Account', 'reqd': 1
'reqd': 1,
'search_index': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'warehouse', 'fieldname': u'warehouse',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 12, 'label': u'Warehouse',
'label': 'Warehouse', 'oldfieldname': u'warehouse',
'oldfieldname': 'warehouse', 'oldfieldtype': u'Link',
'oldfieldtype': 'Link', 'options': u'Warehouse',
'options': 'Warehouse', 'reqd': 1
'reqd': 1,
'search_index': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'cost_center', 'fieldname': u'cost_center',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 13, 'label': u'Cost Center',
'label': 'Cost Center', 'oldfieldname': u'cost_center',
'oldfieldname': 'cost_center', 'oldfieldtype': u'Link',
'oldfieldtype': 'Link', 'options': u'Cost Center',
'options': 'Cost Center', 'reqd': 1
'reqd': 1,
'search_index': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'charge', 'fieldname': u'charge',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 14, 'label': u'Charge',
'label': 'Charge', 'oldfieldname': u'charge',
'oldfieldname': 'charge', 'oldfieldtype': u'Link',
'oldfieldtype': 'Link', 'options': u'Other Charges'
'options': 'Other Charges',
'search_index': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'letter_head', 'fieldname': u'letter_head',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 15, 'label': u'Letter Head',
'label': 'Letter Head', 'oldfieldname': u'letter_head',
'oldfieldname': 'letter_head', 'oldfieldtype': u'Select',
'oldfieldtype': 'Select', 'options': u'link:Letter Head',
'options': 'link:Letter Head',
'print_hide': 1 'print_hide': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'tc_name', 'fieldname': u'tc_name',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 16, 'label': u'Terms',
'label': 'Terms', 'oldfieldname': u'tc_name',
'oldfieldname': 'tc_name', 'oldfieldtype': u'Link',
'oldfieldtype': 'Link', 'options': u'Term'
'options': 'Term',
'search_index': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'select_print_heading', 'fieldname': u'select_print_heading',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 17,
'in_filter': 0, 'in_filter': 0,
'label': 'Select Print Heading', 'label': u'Select Print Heading',
'oldfieldname': 'select_print_heading', 'oldfieldname': u'select_print_heading',
'oldfieldtype': 'Select', 'oldfieldtype': u'Select',
'options': 'link:Print Heading' 'options': u'link:Print Heading'
} }
] ]

View File

@ -5,33 +5,34 @@
{ {
'creation': '2010-08-08 17:09:27', 'creation': '2010-08-08 17:09:27',
'docstatus': 0, 'docstatus': 0,
'modified': '2010-09-20 14:06:57', 'modified': '2012-03-21 12:29:18',
'modified_by': 'Administrator', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'istable': 1, 'istable': 1,
'module': 'Accounts', 'module': u'Accounts',
'name': '__common__', 'name': '__common__',
'section_style': 'Tray', 'section_style': u'Tray',
'server_code_error': ' ', 'server_code_error': u' ',
'show_in_menu': 0, 'show_in_menu': 0,
'version': 1 'version': 2
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Link', 'fieldtype': u'Link',
'name': '__common__', 'name': '__common__',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'parent': 'TDS Category Account', 'parent': u'TDS Category Account',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType', 'parenttype': u'DocType',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
@ -39,28 +40,26 @@
# DocType, TDS Category Account # DocType, TDS Category Account
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'TDS Category Account' 'name': u'TDS Category Account'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'company', 'fieldname': u'company',
'idx': 2,
'in_filter': 1, 'in_filter': 1,
'label': 'Company', 'label': u'Company',
'oldfieldname': 'company', 'oldfieldname': u'company',
'options': 'Company', 'options': u'Company',
'search_index': 0 'search_index': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'account_head', 'fieldname': u'account_head',
'idx': 3, 'label': u'Account Head',
'label': 'Account Head', 'oldfieldname': u'account_head',
'oldfieldname': 'account_head', 'options': u'Account'
'options': 'Account'
} }
] ]

View File

@ -5,47 +5,48 @@
{ {
'creation': '2010-08-08 17:09:27', 'creation': '2010-08-08 17:09:27',
'docstatus': 0, 'docstatus': 0,
'modified': '2010-11-03 11:48:59', 'modified': '2012-03-21 12:29:51',
'modified_by': 'Administrator', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'in_create': 0, 'in_create': 0,
'module': 'Accounts', 'module': u'Accounts',
'name': '__common__', 'name': '__common__',
'section_style': 'Simple', 'section_style': u'Simple',
'server_code_error': ' ', 'server_code_error': u' ',
'show_in_menu': 0, 'show_in_menu': 0,
'version': 223 'version': 224
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'TDS Payment', 'parent': u'TDS Payment',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType' 'parenttype': u'DocType'
}, },
# These values are common for all DocPerm # These values are common for all DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'name': '__common__', 'name': '__common__',
'parent': 'TDS Payment', 'parent': u'TDS Payment',
'parentfield': 'permissions', 'parentfield': u'permissions',
'parenttype': 'DocType', 'parenttype': u'DocType',
'read': 1 'read': 1
}, },
# DocType, TDS Payment # DocType, TDS Payment
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'TDS Payment' 'name': u'TDS Payment'
}, },
# DocPerm # DocPerm
@ -53,10 +54,9 @@
'amend': 0, 'amend': 0,
'cancel': 0, 'cancel': 0,
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 1,
'permlevel': 1, 'permlevel': 1,
'role': 'Accounts User', 'role': u'Accounts User',
'submit': 0, 'submit': 0,
'write': 0 'write': 0
}, },
@ -66,10 +66,9 @@
'amend': 1, 'amend': 1,
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 2,
'permlevel': 0, 'permlevel': 0,
'role': 'System Manager', 'role': u'System Manager',
'submit': 1, 'submit': 1,
'write': 1 'write': 1
}, },
@ -79,10 +78,9 @@
'amend': 1, 'amend': 1,
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 3,
'permlevel': 0, 'permlevel': 0,
'role': 'Accounts User', 'role': u'Accounts User',
'submit': 1, 'submit': 1,
'write': 1 'write': 1
}, },
@ -92,119 +90,110 @@
'amend': 1, 'amend': 1,
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 4,
'permlevel': 0, 'permlevel': 0,
'role': 'Accounts Manager', 'role': u'Accounts Manager',
'submit': 1, 'submit': 1,
'write': 1 'write': 1
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 5,
'permlevel': 1, 'permlevel': 1,
'role': 'All' 'role': u'All'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Column Break', 'fieldtype': u'Column Break',
'idx': 1, 'oldfieldtype': u'Column Break',
'oldfieldtype': 'Column Break',
'permlevel': 0, 'permlevel': 0,
'width': '50%' 'width': u'50%'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'from_date', 'fieldname': u'from_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'idx': 2,
'in_filter': 1, 'in_filter': 1,
'label': 'From Date', 'label': u'From Date',
'oldfieldname': 'from_date', 'oldfieldname': u'from_date',
'oldfieldtype': 'Date', 'oldfieldtype': u'Date',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1,
'search_index': 1, 'search_index': 1,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'to_date', 'fieldname': u'to_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'idx': 3,
'in_filter': 1, 'in_filter': 1,
'label': 'To Date', 'label': u'To Date',
'oldfieldname': 'to_date', 'oldfieldname': u'to_date',
'oldfieldtype': 'Date', 'oldfieldtype': u'Date',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1,
'search_index': 1, 'search_index': 1,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'tds_category', 'fieldname': u'tds_category',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 4,
'in_filter': 1, 'in_filter': 1,
'label': 'TDS Category', 'label': u'TDS Category',
'oldfieldname': 'tds_category', 'oldfieldname': u'tds_category',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'TDS Category', 'options': u'TDS Category',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1,
'search_index': 1, 'search_index': 1,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Column Break', 'fieldtype': u'Column Break',
'idx': 5, 'oldfieldtype': u'Column Break',
'oldfieldtype': 'Column Break',
'permlevel': 0, 'permlevel': 0,
'width': '50%' 'width': u'50%'
}, },
# DocField # DocField
{ {
'description': 'To manage multiple series please go to Setup > Series Setup', 'description': u'To manage multiple series please go to Setup > Series Setup',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'naming_series', 'fieldname': u'naming_series',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 6, 'label': u'Naming Series',
'label': 'Naming Series',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'naming_series', 'oldfieldname': u'naming_series',
'oldfieldtype': 'Select', 'oldfieldtype': u'Select',
'options': 'TDSP', 'options': u'TDSP',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'fiscal_year', 'fieldname': u'fiscal_year',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 7,
'in_filter': 1, 'in_filter': 1,
'label': 'Fiscal Year', 'label': u'Fiscal Year',
'oldfieldname': 'fiscal_year', 'oldfieldname': u'fiscal_year',
'oldfieldtype': 'Select', 'oldfieldtype': u'Select',
'options': 'link:Fiscal Year', 'options': u'link:Fiscal Year',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1,
'search_index': 0 'search_index': 0
@ -212,240 +201,222 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'amended_from', 'fieldname': u'amended_from',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 8, 'label': u'Amended From',
'label': 'Amended From', 'no_copy': 1,
'oldfieldname': 'amended_from', 'oldfieldname': u'amended_from',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'permlevel': 1, 'permlevel': 1,
'print_hide': 1 'print_hide': 1
}, },
# DocField # DocField
{ {
'description': 'The date at which current entry is corrected in the system.', 'description': u'The date at which current entry is corrected in the system.',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'amendment_date', 'fieldname': u'amendment_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'idx': 9, 'label': u'Amendment Date',
'label': 'Amendment Date', 'no_copy': 1,
'oldfieldname': 'amendment_date', 'oldfieldname': u'amendment_date',
'oldfieldtype': 'Date', 'oldfieldtype': u'Date',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1 'print_hide': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'idx': 10, 'oldfieldtype': u'Section Break',
'oldfieldtype': 'Section Break',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Column Break', 'fieldtype': u'Column Break',
'idx': 11, 'oldfieldtype': u'Column Break',
'oldfieldtype': 'Column Break',
'permlevel': 0, 'permlevel': 0,
'width': '50%' 'width': u'50%'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'company', 'fieldname': u'company',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 12,
'in_filter': 1, 'in_filter': 1,
'label': 'Company', 'label': u'Company',
'oldfieldname': 'company', 'oldfieldname': u'company',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'Company', 'options': u'Company',
'permlevel': 0, 'permlevel': 0,
'search_index': 0, 'search_index': 0,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'registration_details', 'fieldname': u'registration_details',
'fieldtype': 'Small Text', 'fieldtype': u'Small Text',
'idx': 13, 'label': u'Registration Details',
'label': 'Registration Details', 'oldfieldname': u'registration_details',
'oldfieldname': 'registration_details', 'oldfieldtype': u'Small Text',
'oldfieldtype': 'Small Text',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'remarks', 'fieldname': u'remarks',
'fieldtype': 'Small Text', 'fieldtype': u'Small Text',
'idx': 14, 'label': u'Remark',
'label': 'Remark',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'remarks', 'oldfieldname': u'remarks',
'oldfieldtype': 'Small Text', 'oldfieldtype': u'Small Text',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Column Break', 'fieldtype': u'Column Break',
'idx': 15, 'oldfieldtype': u'Column Break',
'oldfieldtype': 'Column Break',
'permlevel': 0, 'permlevel': 0,
'width': '50%' 'width': u'50%'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'HTML', 'fieldtype': u'HTML',
'idx': 16, 'oldfieldtype': u'HTML',
'oldfieldtype': 'HTML', 'options': u'<b>Please Update Cheque No., BSR Code, Challan ID no. after actual payment. Unless you do not get it in Form 16A.</b>',
'options': '<b>Please Update Cheque No., BSR Code, Challan ID no. after actual payment. Unless you do not get it in Form 16A.</b>',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'allow_on_submit': 1, 'allow_on_submit': 1,
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'cheque_no', 'fieldname': u'cheque_no',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 17, 'label': u'Cheque / DD No.',
'label': 'Cheque / DD No.', 'oldfieldname': u'cheque_no',
'oldfieldname': 'cheque_no', 'oldfieldtype': u'Data',
'oldfieldtype': 'Data',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'allow_on_submit': 1, 'allow_on_submit': 1,
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'bsr_code', 'fieldname': u'bsr_code',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 18, 'label': u'BSR Code',
'label': 'BSR Code', 'oldfieldname': u'bsr_code',
'oldfieldname': 'bsr_code', 'oldfieldtype': u'Data',
'oldfieldtype': 'Data',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'allow_on_submit': 1, 'allow_on_submit': 1,
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'date_of_receipt', 'fieldname': u'date_of_receipt',
'fieldtype': 'Date', 'fieldtype': u'Date',
'idx': 19, 'label': u'Date of Receipt',
'label': 'Date of Receipt', 'oldfieldname': u'date_of_receipt',
'oldfieldname': 'date_of_receipt', 'oldfieldtype': u'Date',
'oldfieldtype': 'Date',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'allow_on_submit': 1, 'allow_on_submit': 1,
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'challan_id', 'fieldname': u'challan_id',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 20, 'label': u'Challan ID',
'label': 'Challan ID', 'oldfieldname': u'challan_id',
'oldfieldname': 'challan_id', 'oldfieldtype': u'Data',
'oldfieldtype': 'Data',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'allow_on_submit': 1, 'allow_on_submit': 1,
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Button', 'fieldtype': u'Button',
'idx': 21, 'label': u'Update',
'label': 'Update', 'oldfieldtype': u'Button',
'oldfieldtype': 'Button', 'options': u'update_ack_details',
'options': 'update_ack_details',
'permlevel': 0, 'permlevel': 0,
'report_hide': 0 'report_hide': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'idx': 22, 'oldfieldtype': u'Section Break',
'oldfieldtype': 'Section Break',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Button', 'fieldtype': u'Button',
'idx': 23, 'label': u'Get TDS List',
'label': 'Get TDS List', 'oldfieldtype': u'Button',
'oldfieldtype': 'Button', 'options': u'get_tds_list',
'options': 'get_tds_list',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'tds_payment_details', 'fieldname': u'tds_payment_details',
'fieldtype': 'Table', 'fieldtype': u'Table',
'idx': 24, 'label': u'TDS Payment Details',
'label': 'TDS Payment Details', 'oldfieldname': u'tds_payment_details',
'oldfieldname': 'tds_payment_details', 'oldfieldtype': u'Table',
'oldfieldtype': 'Table', 'options': u'TDS Payment Detail',
'options': 'TDS Payment Detail',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'idx': 25, 'oldfieldtype': u'Section Break',
'oldfieldtype': 'Section Break',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'total_tds', 'fieldname': u'total_tds',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'idx': 26, 'label': u'Total TDS',
'label': 'Total TDS', 'oldfieldname': u'total_tds',
'oldfieldname': 'total_tds', 'oldfieldtype': u'Currency',
'oldfieldtype': 'Currency',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'allow_on_submit': 1, 'allow_on_submit': 1,
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Button', 'fieldtype': u'Button',
'idx': 27, 'label': u'Make Bank Voucher',
'label': 'Make Bank Voucher', 'oldfieldtype': u'Button',
'oldfieldtype': 'Button',
'permlevel': 0, 'permlevel': 0,
'trigger': 'Client' 'trigger': u'Client'
} }
] ]

View File

@ -5,113 +5,108 @@
{ {
'creation': '2010-08-08 17:08:59', 'creation': '2010-08-08 17:08:59',
'docstatus': 0, 'docstatus': 0,
'modified': '2010-09-20 14:06:57', 'modified': '2012-03-21 14:48:02',
'modified_by': 'Administrator', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'istable': 1, 'istable': 1,
'module': 'HR', 'module': u'HR',
'name': '__common__', 'name': '__common__',
'section_style': 'Simple', 'section_style': u'Simple',
'server_code_error': ' ', 'server_code_error': u' ',
'show_in_menu': 0, 'show_in_menu': 0,
'version': 11 'version': 12
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Educational Qualifications', 'parent': u'Educational Qualifications',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType', 'parenttype': u'DocType',
'permlevel': 0 'permlevel': 0
}, },
# DocType, Educational Qualifications # DocType, Educational Qualifications
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Educational Qualifications' 'name': u'Educational Qualifications'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'school_univ', 'fieldname': u'school_univ',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 1, 'label': u'School/University',
'label': 'School/University', 'oldfieldname': u'school_univ',
'oldfieldname': 'school_univ', 'oldfieldtype': u'Data'
'oldfieldtype': 'Data'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'qualification', 'fieldname': u'qualification',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 2, 'label': u'Qualification (Degree/Diploma)',
'label': 'Qualification (Degree/Diploma)', 'oldfieldname': u'qualification',
'oldfieldname': 'qualification', 'oldfieldtype': u'Data',
'oldfieldtype': 'Data',
'reqd': 0, 'reqd': 0,
'search_index': 1, 'search_index': 1,
'width': '170px' 'width': u'170px'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'level', 'fieldname': u'level',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 3, 'label': u'Level',
'label': 'Level', 'oldfieldname': u'level',
'oldfieldname': 'level', 'oldfieldtype': u'Select',
'oldfieldtype': 'Select', 'options': u'\nGraduate\nPost Graduate\nUnder Graduate',
'options': '\nGraduate\nPost Graduate\nUnder Graduate',
'reqd': 0, 'reqd': 0,
'search_index': 0 'search_index': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'year_of_passing', 'fieldname': u'year_of_passing',
'fieldtype': 'Int', 'fieldtype': u'Int',
'idx': 4, 'label': u'Year of Passing',
'label': 'Year of Passing', 'oldfieldname': u'year_of_passing',
'oldfieldname': 'year_of_passing', 'oldfieldtype': u'Int',
'oldfieldtype': 'Int',
'reqd': 0 'reqd': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'class_percent', 'fieldname': u'class_percent',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 5, 'label': u'Class / Percentage',
'label': 'Class / Percentage', 'oldfieldname': u'class_percent',
'oldfieldname': 'class_percent', 'oldfieldtype': u'Data',
'oldfieldtype': 'Data',
'reqd': 0 'reqd': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'maj_opt_sub', 'fieldname': u'maj_opt_sub',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 6, 'label': u'Major / Optional Subject',
'label': 'Major / Optional Subject', 'oldfieldname': u'maj_opt_sub',
'oldfieldname': 'maj_opt_sub', 'oldfieldtype': u'Data',
'oldfieldtype': 'Data',
'reqd': 0, 'reqd': 0,
'width': '170px' 'width': u'170px'
} }
] ]

View File

@ -1,60 +0,0 @@
// ERPNext - web based ERP (http://erpnext.com)
// Copyright (C) 2012 Web Notes Technologies Pvt Ltd
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
cur_frm.cscript.onload = function(doc, cdt, cdn){
$c('runserverobj', args={'method':'cal_tot_exp','docs':compress_doclist (make_doclist (doc.doctype,doc.name))},
function(r, rt) { refresh_many(['year','months']); });
}
//===========================================================
cur_frm.cscript.employee = function(doc, cdt, cdn){
$c('runserverobj', args={'method':'get_doj','docs':compress_doclist (make_doclist (doc.doctype,doc.name))},
function(r, rt) { refresh_many(['employee_name','date_of_joining']); });
}
//===========================================================
cur_frm.cscript.country1 = function(doc, cdt, cdn) {
var mydoc=doc;
$c('runserverobj', args={'method':'check_state','arg':doc.country1, 'docs':compress_doclist([doc])},
function(r,rt){
if(r.message) {
var doc = locals[mydoc.doctype][mydoc.name];
doc.state1 = '';
get_field(doc.doctype, 'state1' , doc.name).options = r.message;
refresh_field('state1');
}
}
);
}
//===========================================================
cur_frm.cscript.country2 = function(doc, cdt, cdn) {
var mydoc=doc;
$c('runserverobj', args={'method':'check_state', 'arg':doc.country2,'docs':compress_doclist([doc])},
function(r,rt){
if(r.message) {
var doc = locals[mydoc.doctype][mydoc.name];
doc.state2 = '';
get_field(doc.doctype, 'state2' , doc.name).options = r.message;
refresh_field('state2');
}
}
);
}

View File

@ -1,89 +0,0 @@
# ERPNext - web based ERP (http://erpnext.com)
# Copyright (C) 2012 Web Notes Technologies Pvt Ltd
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Please edit this list and import only required elements
import webnotes
from webnotes.utils import add_days, add_months, add_years, cint, cstr, date_diff, default_fields, flt, fmt_money, formatdate, generate_hash, getTraceback, get_defaults, get_first_day, get_last_day, getdate, has_common, month_name, now, nowdate, replace_newlines, sendmail, set_default, str_esc_quote, user_format, validate_email_add
from webnotes.model import db_exists
from webnotes.model.doc import Document, addchild, removechild, getchildren, make_autoname, SuperDocType
from webnotes.model.doclist import getlist, copy_doclist
from webnotes.model.code import get_obj, get_server_obj, run_server_obj, updatedb, check_syntax
from webnotes import session, form, is_testing, msgprint, errprint
set = webnotes.conn.set
sql = webnotes.conn.sql
get_value = webnotes.conn.get_value
in_transaction = webnotes.conn.in_transaction
convert_to_lists = webnotes.conn.convert_to_lists
# -----------------------------------------------------------------------------------------
class DocType:
#init function
def __init__(self,doc,doclist=[]):
self.doc = doc
self.doclist = doclist
#=============================================================
def autoname(self):
self.doc.name = make_autoname('EMP-'+self.doc.employee)
#=============================================================
def validate(self):
if self.doc.personal_email:
if not validate_email_add(self.doc.personal_email):
msgprint("Please enter valid Personal Email")
raise Exception
ret = sql("select name from `tabEmployee Profile` where employee = '%s' and name !='%s'"%(self.doc.employee,self.doc.name))
if ret:
msgprint("Employee Profile is already created for Employee : '%s'"%self.doc.employee)
raise Exception
#=============================================================
def get_doj(self):
ret_doj = sql("select employee_name,date_of_joining from `tabEmployee` where name = '%s'"%self.doc.employee)
if ret_doj:
set(self.doc, 'employee_name', cstr(ret_doj[0][0]))
set(self.doc,'date_of_joining', ret_doj[0][1].strftime('%Y-%m-%d'))
#=============================================================
#calculate total experience in company - total year and month
def cal_tot_exp(self):
if not self.doc.date_of_joining:
self.get_doj()
import datetime
today = nowdate()
diff = (getdate(today) - getdate(self.doc.date_of_joining)).days
diff1 = cint(diff)/365
a = cint(diff)%365
diff2 = cint(a)/30
if(cint(diff1)<0):
set(self.doc,'year', 0)
else:
set(self.doc,'year', cint(diff1))
if(cint(diff1)<0):
set(self.doc,'months', 0)
else:
set(self.doc,'months', cint(diff2))
#=============================================================
def check_state(self,country):
return "\n" + "\n".join([i[0] for i in sql("select state_name from `tabState` where `tabState`.country='%s' " %country)])

File diff suppressed because one or more lines are too long

View File

@ -5,51 +5,52 @@
{ {
'creation': '2010-09-03 16:45:08', 'creation': '2010-09-03 16:45:08',
'docstatus': 0, 'docstatus': 0,
'modified': '2011-06-27 14:39:09', 'modified': '2012-03-21 14:37:04',
'modified_by': 'Administrator', 'modified_by': u'Administrator',
'owner': 'harshada@webnotestech.com' 'owner': u'harshada@webnotestech.com'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'_last_update': '1308808105', '_last_update': u'1308808105',
'autoname': 'EXP.######', 'autoname': u'EXP.######',
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'module': 'HR', 'module': u'HR',
'name': '__common__', 'name': '__common__',
'search_fields': 'approval_status,employee,employee_name', 'search_fields': u'approval_status,employee,employee_name',
'section_style': 'Simple', 'section_style': u'Simple',
'server_code_error': ' ', 'server_code_error': u' ',
'show_in_menu': 0, 'show_in_menu': 0,
'subject': 'From %(employee_name)s for %(total_claimed_amount)s (claimed)', 'subject': u'From %(employee_name)s for %(total_claimed_amount)s (claimed)',
'tag_fields': 'approval_status', 'tag_fields': u'approval_status',
'version': 134 'version': 135
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Expense Voucher', 'parent': u'Expense Voucher',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType' 'parenttype': u'DocType'
}, },
# These values are common for all DocPerm # These values are common for all DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'name': '__common__', 'name': '__common__',
'parent': 'Expense Voucher', 'parent': u'Expense Voucher',
'parentfield': 'permissions', 'parentfield': u'permissions',
'parenttype': 'DocType', 'parenttype': u'DocType',
'read': 1 'read': 1
}, },
# DocType, Expense Voucher # DocType, Expense Voucher
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Expense Voucher' 'name': u'Expense Voucher'
}, },
# DocPerm # DocPerm
@ -57,9 +58,10 @@
'amend': 1, 'amend': 1,
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'match': 'owner', 'match': u'owner',
'permlevel': 0, 'permlevel': 0,
'role': u'Employee',
'submit': 1, 'submit': 1,
'write': 1 'write': 1
}, },
@ -69,9 +71,9 @@
'amend': 1, 'amend': 1,
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'permlevel': 0, 'permlevel': 0,
'role': 'HR Manager', 'role': u'HR Manager',
'submit': 1, 'submit': 1,
'write': 1 'write': 1
}, },
@ -81,358 +83,300 @@
'amend': 1, 'amend': 1,
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'permlevel': 0, 'permlevel': 0,
'role': 'HR User', 'role': u'HR User',
'submit': 1, 'submit': 1,
'write': 1 'write': 1
}, },
# DocPerm # DocPerm
{ {
'amend': 1, 'doctype': u'DocPerm',
'cancel': 1,
'create': 1,
'doctype': 'DocPerm',
'match': 'owner',
'permlevel': 0,
'submit': 1,
'write': 1
},
# DocPerm
{
'amend': 1,
'cancel': 1,
'create': 1,
'doctype': 'DocPerm',
'permlevel': 0,
'role': 'HR Manager',
'submit': 1,
'write': 1
},
# DocPerm
{
'amend': 1,
'cancel': 1,
'create': 1,
'doctype': 'DocPerm',
'permlevel': 0,
'role': 'HR User',
'submit': 1,
'write': 1
},
# DocPerm
{
'doctype': 'DocPerm',
'idx': 3,
'permlevel': 1, 'permlevel': 1,
'role': 'All' 'role': u'All'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'idx': 1, 'label': u'Details',
'label': 'Details', 'oldfieldtype': u'Section Break',
'oldfieldtype': 'Section Break',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'default': 'Draft', 'default': u'Draft',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'approval_status', 'fieldname': u'approval_status',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 2,
'in_filter': 1, 'in_filter': 1,
'label': 'Approval Status', 'label': u'Approval Status',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'approval_status', 'oldfieldname': u'approval_status',
'oldfieldtype': 'Select', 'oldfieldtype': u'Select',
'options': '\nDraft\nSubmitted\nApproved \nRejected\nCancelled', 'options': u'\nDraft\nSubmitted\nApproved \nRejected\nCancelled',
'permlevel': 1, 'permlevel': 1,
'search_index': 1 'search_index': 1
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'employee', 'fieldname': u'employee',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 3,
'in_filter': 1, 'in_filter': 1,
'label': 'From Employee', 'label': u'From Employee',
'oldfieldname': 'employee', 'oldfieldname': u'employee',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'Employee', 'options': u'Employee',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1,
'search_index': 1, 'search_index': 1,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'employee_name', 'fieldname': u'employee_name',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 4,
'in_filter': 1, 'in_filter': 1,
'label': 'Employee Name', 'label': u'Employee Name',
'oldfieldname': 'employee_name', 'oldfieldname': u'employee_name',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'permlevel': 1, 'permlevel': 1,
'search_index': 0, 'search_index': 0,
'width': '150px' 'width': u'150px'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'fiscal_year', 'fieldname': u'fiscal_year',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 5,
'in_filter': 1, 'in_filter': 1,
'label': 'Fiscal Year', 'label': u'Fiscal Year',
'oldfieldname': 'fiscal_year', 'oldfieldname': u'fiscal_year',
'oldfieldtype': 'Select', 'oldfieldtype': u'Select',
'options': 'link:Fiscal Year', 'options': u'link:Fiscal Year',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'company', 'fieldname': u'company',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 6,
'in_filter': 1, 'in_filter': 1,
'label': 'Company', 'label': u'Company',
'oldfieldname': 'company', 'oldfieldname': u'company',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'link:Company', 'options': u'link:Company',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Column Break', 'fieldtype': u'Column Break',
'idx': 7, 'oldfieldtype': u'Column Break',
'oldfieldtype': 'Column Break',
'permlevel': 0, 'permlevel': 0,
'width': '50%' 'width': u'50%'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'posting_date', 'fieldname': u'posting_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'idx': 8,
'in_filter': 1, 'in_filter': 1,
'label': 'Posting Date', 'label': u'Posting Date',
'oldfieldname': 'posting_date', 'oldfieldname': u'posting_date',
'oldfieldtype': 'Date', 'oldfieldtype': u'Date',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'exp_approver', 'fieldname': u'exp_approver',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 9, 'label': u'Approver',
'label': 'Approver', 'oldfieldname': u'exp_approver',
'oldfieldname': 'exp_approver', 'oldfieldtype': u'Select',
'oldfieldtype': 'Select',
'permlevel': 0, 'permlevel': 0,
'width': '160px' 'width': u'160px'
}, },
# DocField # DocField
{ {
'allow_on_submit': 1, 'allow_on_submit': 1,
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'remark', 'fieldname': u'remark',
'fieldtype': 'Small Text', 'fieldtype': u'Small Text',
'idx': 10, 'label': u'Remark',
'label': 'Remark',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'remark', 'oldfieldname': u'remark',
'oldfieldtype': 'Small Text', 'oldfieldtype': u'Small Text',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'amended_from', 'fieldname': u'amended_from',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 11, 'label': u'Amended From',
'label': 'Amended From',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'amended_from', 'oldfieldname': u'amended_from',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'permlevel': 1, 'permlevel': 1,
'print_hide': 1, 'print_hide': 1,
'report_hide': 1, 'report_hide': 1,
'width': '160px' 'width': u'160px'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'amendment_date', 'fieldname': u'amendment_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'idx': 12, 'label': u'Amendment Date',
'label': 'Amendment Date',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'amendment_date', 'oldfieldname': u'amendment_date',
'oldfieldtype': 'Date', 'oldfieldtype': u'Date',
'permlevel': 1, 'permlevel': 1,
'print_hide': 1, 'print_hide': 1,
'report_hide': 1, 'report_hide': 1,
'width': '160px' 'width': u'160px'
}, },
# DocField # DocField
{ {
'allow_on_submit': 1, 'allow_on_submit': 1,
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Button', 'fieldtype': u'Button',
'hidden': 1, 'hidden': 1,
'idx': 13, 'label': u'Approve',
'label': 'Approve', 'oldfieldtype': u'Button',
'oldfieldtype': 'Button',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'allow_on_submit': 1, 'allow_on_submit': 1,
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Button', 'fieldtype': u'Button',
'hidden': 1, 'hidden': 1,
'idx': 14, 'label': u'Reject',
'label': 'Reject', 'oldfieldtype': u'Button',
'oldfieldtype': 'Button',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'idx': 15, 'label': u'Expense Details',
'label': 'Expense Details', 'oldfieldtype': u'Section Break',
'oldfieldtype': 'Section Break',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'allow_on_submit': 1, 'allow_on_submit': 1,
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Button', 'fieldtype': u'Button',
'idx': 16, 'label': u'Calculate Total Amount',
'label': 'Calculate Total Amount', 'oldfieldtype': u'Button',
'oldfieldtype': 'Button',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
'report_hide': 1, 'report_hide': 1,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'total_claimed_amount', 'fieldname': u'total_claimed_amount',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'idx': 17,
'in_filter': 0, 'in_filter': 0,
'label': 'Total Claimed Amount', 'label': u'Total Claimed Amount',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'total_claimed_amount', 'oldfieldname': u'total_claimed_amount',
'oldfieldtype': 'Currency', 'oldfieldtype': u'Currency',
'permlevel': 1, 'permlevel': 1,
'reqd': 0, 'reqd': 0,
'width': '160px' 'width': u'160px'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'total_sanctioned_amount', 'fieldname': u'total_sanctioned_amount',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'idx': 18,
'in_filter': 0, 'in_filter': 0,
'label': 'Total Sanctioned Amount', 'label': u'Total Sanctioned Amount',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'total_sanctioned_amount', 'oldfieldname': u'total_sanctioned_amount',
'oldfieldtype': 'Currency', 'oldfieldtype': u'Currency',
'permlevel': 1, 'permlevel': 1,
'width': '160px' 'width': u'160px'
}, },
# DocField # DocField
{ {
'allow_on_submit': 1, 'allow_on_submit': 1,
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Button', 'fieldtype': u'Button',
'hidden': 1, 'hidden': 1,
'idx': 19, 'label': u'Update Voucher',
'label': 'Update Voucher', 'oldfieldtype': u'Button',
'oldfieldtype': 'Button',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'allow_on_submit': 1, 'allow_on_submit': 1,
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'expense_voucher_details', 'fieldname': u'expense_voucher_details',
'fieldtype': 'Table', 'fieldtype': u'Table',
'idx': 20, 'label': u'Expense Voucher Details',
'label': 'Expense Voucher Details', 'oldfieldname': u'expense_voucher_details',
'oldfieldname': 'expense_voucher_details', 'oldfieldtype': u'Table',
'oldfieldtype': 'Table', 'options': u'Expense Voucher Detail',
'options': 'Expense Voucher Detail',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'email_id', 'fieldname': u'email_id',
'fieldtype': 'Data', 'fieldtype': u'Data',
'hidden': 1, 'hidden': 1,
'idx': 21, 'label': u'Employees Email Id',
'label': 'Employees Email Id', 'oldfieldname': u'email_id',
'oldfieldname': 'email_id', 'oldfieldtype': u'Data',
'oldfieldtype': 'Data',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1 'print_hide': 1
} }

View File

@ -5,61 +5,57 @@
{ {
'creation': '2010-08-08 17:09:03', 'creation': '2010-08-08 17:09:03',
'docstatus': 0, 'docstatus': 0,
'modified': '2011-02-11 14:23:09', 'modified': '2012-03-21 14:36:29',
'modified_by': 'Administrator', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'istable': 1, 'istable': 1,
'module': 'HR', 'module': u'HR',
'name': '__common__', 'name': '__common__',
'section_style': 'Simple', 'section_style': u'Simple',
'server_code_error': ' ', 'server_code_error': u' ',
'show_in_menu': 0, 'show_in_menu': 0,
'version': 4 'version': 2
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Holiday List Detail', 'parent': u'Holiday List Detail',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType', 'parenttype': u'DocType',
'permlevel': 0 'permlevel': 0
}, },
# DocType, Holiday List Detail # DocType, Holiday List Detail
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Holiday List Detail' 'name': u'Holiday List Detail'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'description', 'fieldname': u'description',
'fieldtype': 'Small Text', 'fieldtype': u'Small Text',
'idx': 1, 'label': u'Description',
'label': 'Description', 'width': u'300px'
'oldfieldname': 'holiday_name',
'oldfieldtype': 'Data',
'width': '300px'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'holiday_date', 'fieldname': u'holiday_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'idx': 2, 'label': u'Date',
'label': 'Date', 'oldfieldname': u'holiday_date',
'oldfieldname': 'holiday_date', 'oldfieldtype': u'Date'
'oldfieldtype': 'Date',
'width': '100px'
} }
] ]

View File

@ -3,51 +3,52 @@
# These values are common in all dictionaries # These values are common in all dictionaries
{ {
'creation': '2011-02-10 17:24:59', 'creation': '2011-02-14 10:18:47',
'docstatus': 0, 'docstatus': 0,
'modified': '2011-02-17 13:47:13', 'modified': '2012-03-21 12:49:25',
'modified_by': 'Administrator', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'_last_update': '1299063937', '_last_update': u'1317365120',
'autoname': 'LAL/.#####', 'autoname': u'LAL/.#####',
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'module': 'HR', 'module': u'HR',
'name': '__common__', 'name': '__common__',
'search_fields': 'employee,employee_name,leave_type,total_leaves_allocated,fiscal_year', 'search_fields': u'employee,employee_name,leave_type,total_leaves_allocated,fiscal_year',
'section_style': 'Simple', 'section_style': u'Simple',
'server_code_error': ' ', 'server_code_error': u' ',
'show_in_menu': 0, 'show_in_menu': 0,
'version': 1565 'version': 1560
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Leave Allocation', 'parent': u'Leave Allocation',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType' 'parenttype': u'DocType'
}, },
# These values are common for all DocPerm # These values are common for all DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'name': '__common__', 'name': '__common__',
'parent': 'Leave Allocation', 'parent': u'Leave Allocation',
'parentfield': 'permissions', 'parentfield': u'permissions',
'parenttype': 'DocType', 'parenttype': u'DocType',
'read': 1 'read': 1
}, },
# DocType, Leave Allocation # DocType, Leave Allocation
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Leave Allocation' 'name': u'Leave Allocation'
}, },
# DocPerm # DocPerm
@ -55,11 +56,10 @@
'amend': 1, 'amend': 1,
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 1, 'match': u'owner',
'match': 'owner',
'permlevel': 0, 'permlevel': 0,
'role': 'HR User', 'role': u'HR User',
'submit': 1, 'submit': 1,
'write': 1 'write': 1
}, },
@ -69,11 +69,10 @@
'amend': 0, 'amend': 0,
'cancel': 0, 'cancel': 0,
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 2, 'match': u'owner',
'match': 'owner',
'permlevel': 0, 'permlevel': 0,
'role': 'HR User', 'role': u'HR User',
'submit': 0, 'submit': 0,
'write': 0 'write': 0
}, },
@ -83,93 +82,189 @@
'amend': 1, 'amend': 1,
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 3, 'match': u'owner',
'permlevel': 0, 'permlevel': 0,
'role': 'HR Manager', 'role': u'HR User',
'submit': 1, 'submit': 1,
'write': 1 'write': 1
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'amend': 0,
'idx': 4, 'cancel': 0,
'permlevel': 1, 'create': 0,
'role': 'HR Manager' 'doctype': u'DocPerm',
}, 'match': u'owner',
# DocField
{
'doctype': 'DocField',
'fieldname': 'column_break1',
'fieldtype': 'Column Break',
'idx': 1,
'permlevel': 0, 'permlevel': 0,
'width': '50%' 'role': u'HR User',
'submit': 0,
'write': 0
},
# DocPerm
{
'amend': 1,
'cancel': 1,
'create': 1,
'doctype': u'DocPerm',
'match': u'owner',
'permlevel': 0,
'role': u'HR User',
'submit': 1,
'write': 1
},
# DocPerm
{
'amend': 0,
'cancel': 0,
'create': 0,
'doctype': u'DocPerm',
'match': u'owner',
'permlevel': 0,
'role': u'HR User',
'submit': 0,
'write': 0
},
# DocPerm
{
'amend': 1,
'cancel': 1,
'create': 1,
'doctype': u'DocPerm',
'match': u'owner',
'permlevel': 0,
'role': u'HR User',
'submit': 1,
'write': 1
},
# DocPerm
{
'amend': 0,
'cancel': 0,
'create': 0,
'doctype': u'DocPerm',
'match': u'owner',
'permlevel': 0,
'role': u'HR User',
'submit': 0,
'write': 0
},
# DocPerm
{
'amend': 1,
'cancel': 1,
'create': 1,
'doctype': u'DocPerm',
'match': u'owner',
'permlevel': 0,
'role': u'HR User',
'submit': 1,
'write': 1
},
# DocPerm
{
'amend': 0,
'cancel': 0,
'create': 0,
'doctype': u'DocPerm',
'match': u'owner',
'permlevel': 0,
'role': u'HR User',
'submit': 0,
'write': 0
},
# DocPerm
{
'amend': 1,
'cancel': 1,
'create': 1,
'doctype': u'DocPerm',
'permlevel': 0,
'role': u'HR Manager',
'submit': 1,
'write': 1
},
# DocPerm
{
'doctype': u'DocPerm',
'permlevel': 1,
'role': u'HR Manager'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'doctype': u'DocField',
'doctype': 'DocField', 'fieldtype': u'Column Break',
'fieldname': 'employee', 'permlevel': 0,
'fieldtype': 'Link', 'width': u'50%'
'idx': 2, },
# DocField
{
'colour': u'White:FFF',
'doctype': u'DocField',
'fieldname': u'employee',
'fieldtype': u'Link',
'in_filter': 1, 'in_filter': 1,
'label': 'Employee', 'label': u'Employee',
'oldfieldname': 'employee', 'oldfieldname': u'employee',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'Employee', 'options': u'Employee',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1,
'search_index': 1, 'search_index': 1,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'employee_name', 'fieldname': u'employee_name',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 3,
'in_filter': 1, 'in_filter': 1,
'label': 'Employee Name', 'label': u'Employee Name',
'permlevel': 1, 'permlevel': 1,
'search_index': 0 'search_index': 1
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'leave_type', 'fieldname': u'leave_type',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 4,
'in_filter': 1, 'in_filter': 1,
'label': 'Leave Type', 'label': u'Leave Type',
'oldfieldname': 'leave_type', 'oldfieldname': u'leave_type',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': '\nCasual Leave\nCompensatory Off\nLeave Without Pay\nPaternity Leave\nPrivilege Leave\nSick Leave', 'options': u'link:Leave Type',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1,
'search_index': 1, 'search_index': 1,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'default': 'Today', 'default': u'Today',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'posting_date', 'fieldname': u'posting_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'hidden': 0, 'hidden': 0,
'idx': 5, 'label': u'Posting Date',
'label': 'Posting Date',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'date', 'oldfieldname': u'date',
'oldfieldtype': 'Date', 'oldfieldtype': u'Date',
'permlevel': 1, 'permlevel': 1,
'reqd': 1, 'reqd': 1,
'search_index': 0 'search_index': 0
@ -177,116 +272,108 @@
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'fiscal_year', 'fieldname': u'fiscal_year',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 6,
'in_filter': 1, 'in_filter': 1,
'label': 'Fiscal Year', 'label': u'Fiscal Year',
'oldfieldname': 'fiscal_year', 'oldfieldname': u'fiscal_year',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'options': '\n2010-2011\n2011-2012\n2012-2013', 'options': u'link:Fiscal Year',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1,
'search_index': 1, 'search_index': 1,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'description', 'fieldname': u'description',
'fieldtype': 'Small Text', 'fieldtype': u'Small Text',
'hidden': 0, 'hidden': 0,
'idx': 7, 'label': u'Description',
'label': 'Description', 'oldfieldname': u'reason',
'oldfieldname': 'reason', 'oldfieldtype': u'Small Text',
'oldfieldtype': 'Small Text',
'permlevel': 0, 'permlevel': 0,
'width': '300px' 'width': u'300px'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'column_break8', 'fieldtype': u'Column Break',
'fieldtype': 'Column Break',
'idx': 8,
'permlevel': 0, 'permlevel': 0,
'width': '50%' 'width': u'50%'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'carry_forward', 'fieldname': u'carry_forward',
'fieldtype': 'Check', 'fieldtype': u'Check',
'idx': 9, 'label': u'Carry Forward',
'label': 'Carry Forward',
'permlevel': 0, 'permlevel': 0,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'carry_forwarded_leaves', 'fieldname': u'carry_forwarded_leaves',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'idx': 10, 'label': u'Carry Forwarded Leaves',
'label': 'Carry Forwarded Leaves',
'permlevel': 0, 'permlevel': 0,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'new_leaves_allocated', 'fieldname': u'new_leaves_allocated',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'idx': 11, 'label': u'New Leaves Allocated',
'label': 'New Leaves Allocated',
'permlevel': 0, 'permlevel': 0,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'total_leaves_allocated', 'fieldname': u'total_leaves_allocated',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'idx': 12, 'label': u'Total Leaves Allocated',
'label': 'Total Leaves Allocated',
'permlevel': 1, 'permlevel': 1,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'amended_from', 'fieldname': u'amended_from',
'fieldtype': 'Data', 'fieldtype': u'Data',
'hidden': 0, 'hidden': 0,
'idx': 13, 'label': u'Amended From',
'label': 'Amended From', 'no_copy': 1,
'oldfieldname': 'amended_from', 'oldfieldname': u'amended_from',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'permlevel': 1, 'permlevel': 1,
'print_hide': 1 'print_hide': 1
}, },
# DocField # DocField
{ {
'description': 'The date at which current entry is corrected in the system.', 'description': u'The date at which current entry is corrected in the system.',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'amendment_date', 'fieldname': u'amendment_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'hidden': 0, 'hidden': 0,
'idx': 14, 'label': u'Amendment Date',
'label': 'Amendment Date', 'no_copy': 1,
'oldfieldname': 'amendment_date', 'oldfieldname': u'amendment_date',
'oldfieldtype': 'Date', 'oldfieldtype': u'Date',
'permlevel': 1, 'permlevel': 1,
'print_hide': 1 'print_hide': 1
} }

View File

@ -5,240 +5,222 @@
{ {
'creation': '2010-08-08 17:09:08', 'creation': '2010-08-08 17:09:08',
'docstatus': 0, 'docstatus': 0,
'modified': '2011-02-12 15:42:00', 'modified': '2012-03-21 14:42:27',
'modified_by': 'Administrator', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'_last_update': u'1297751828',
'allow_copy': 1, 'allow_copy': 1,
'allow_email': 1, 'allow_email': 1,
'allow_print': 1, 'allow_print': 1,
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'hide_heading': 0, 'hide_heading': 0,
'hide_toolbar': 0, 'hide_toolbar': 0,
'issingle': 1, 'issingle': 1,
'module': 'HR', 'module': u'HR',
'name': '__common__', 'name': '__common__',
'read_only': 1, 'read_only': 1,
'section_style': 'Simple', 'section_style': u'Simple',
'server_code_error': ' ', 'server_code_error': u' ',
'show_in_menu': 0, 'show_in_menu': 0,
'version': 161 'version': 162
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Leave Control Panel', 'parent': u'Leave Control Panel',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType', 'parenttype': u'DocType',
'permlevel': 0 'permlevel': 0
}, },
# These values are common for all DocPerm # These values are common for all DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'name': '__common__', 'name': '__common__',
'parent': 'Leave Control Panel', 'parent': u'Leave Control Panel',
'parentfield': 'permissions', 'parentfield': u'permissions',
'parenttype': 'DocType', 'parenttype': u'DocType',
'read': 1 'read': 1
}, },
# DocType, Leave Control Panel # DocType, Leave Control Panel
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Leave Control Panel' 'name': u'Leave Control Panel'
}, },
# DocPerm # DocPerm
{ {
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 1,
'permlevel': 0, 'permlevel': 0,
'role': 'System Manager', 'role': u'System Manager',
'write': 1 'write': 1
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 2,
'permlevel': 1, 'permlevel': 1,
'role': 'System Manager' 'role': u'System Manager'
}, },
# DocPerm # DocPerm
{ {
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 3,
'permlevel': 0, 'permlevel': 0,
'role': 'HR User', 'role': u'HR User',
'write': 1 'write': 1
}, },
# DocPerm # DocPerm
{ {
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 4,
'permlevel': 0, 'permlevel': 0,
'role': 'HR Manager', 'role': u'HR Manager',
'write': 1 'write': 1
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 5,
'permlevel': 1, 'permlevel': 1,
'role': 'HR User' 'role': u'HR User'
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 6,
'permlevel': 1, 'permlevel': 1,
'role': 'HR Manager' 'role': u'HR Manager'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'column_break1', 'fieldtype': u'Column Break',
'fieldtype': 'Column Break', 'width': u'50%'
'idx': 1,
'width': '50%'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'description': 'Leave blank if considered for all employee types', 'description': u'Leave blank if considered for all employee types',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'employee_type', 'fieldname': u'employee_type',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 2, 'label': u'Employee Type',
'label': 'Employee Type', 'options': u'link:Employment Type'
'options': 'link:Employment Type'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'description': 'Leave blank if considered for all branches', 'description': u'Leave blank if considered for all branches',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'branch', 'fieldname': u'branch',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 3, 'label': u'Branch',
'label': 'Branch', 'options': u'link:Branch'
'options': 'link:Branch'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'description': 'Leave blank if considered for all departments', 'description': u'Leave blank if considered for all departments',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'department', 'fieldname': u'department',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 4, 'label': u'Department',
'label': 'Department', 'options': u'link:Department'
'options': 'link:Department'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'description': 'Leave blank if considered for all designations', 'description': u'Leave blank if considered for all designations',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'designation', 'fieldname': u'designation',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 5, 'label': u'Designation',
'label': 'Designation', 'options': u'link:Designation'
'options': 'link:Designation'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'description': 'Leave blank if considered for all grades', 'description': u'Leave blank if considered for all grades',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'grade', 'fieldname': u'grade',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 6, 'label': u'Grade',
'label': 'Grade', 'options': u'link:Grade'
'options': 'link:Grade'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'column_break7', 'fieldtype': u'Column Break',
'fieldtype': 'Column Break', 'width': u'50%'
'idx': 7,
'width': '50%'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'fiscal_year', 'fieldname': u'fiscal_year',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 8,
'in_filter': 1, 'in_filter': 1,
'label': 'Fiscal Year', 'label': u'Fiscal Year',
'options': 'link:Fiscal Year', 'options': u'link:Fiscal Year',
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'leave_type', 'fieldname': u'leave_type',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 9, 'label': u'Leave Type',
'label': 'Leave Type', 'options': u'link:Leave Type',
'options': 'link:Leave Type',
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'description': "Please select Carry Forward if you also want to include previous fiscal year's balance leaves to this fiscal year", 'description': u"Please select Carry Forward if you also want to include previous fiscal year's balance leaves to this fiscal year",
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'carry_forward', 'fieldname': u'carry_forward',
'fieldtype': 'Check', 'fieldtype': u'Check',
'idx': 10, 'label': u'Carry Forward'
'label': 'Carry Forward'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'no_of_days', 'fieldname': u'no_of_days',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'idx': 11, 'label': u'New Leaves Allocated (In Days)',
'label': 'New Leaves Allocated (In Days)',
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Button', 'fieldtype': u'Button',
'idx': 12, 'label': u'Allocate',
'label': 'Allocate', 'options': u'allocate_leave',
'options': 'allocate_leave', 'trigger': u'Server'
'trigger': 'Server'
} }
] ]

View File

@ -1,111 +0,0 @@
// ERPNext - web based ERP (http://erpnext.com)
// Copyright (C) 2012 Web Notes Technologies Pvt Ltd
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//omload function to set values in select field
cur_frm.cscript.onload = function(doc, cdt, cdn){
var mydoc = doc
doc.select_master = 'Salary Structure';
refresh_field('select_master');
var call_back_master2 = function(mydoc){
$c('runserverobj', args={'method':'get_masters', 'docs':compress_doclist (make_doclist (doc.doctype,doc.name))},
function(r, rt) {
var doc = locals[mydoc.doctype][mydoc.name];
get_field(doc.doctype, 'select_master2' , doc.name).options = r.message;
refresh_field('select_master2');
}
);
}
$c('runserverobj', args={'method':'maindoc_field', 'arg':doc.select_master,'docs':compress_doclist (make_doclist (doc.doctype,doc.name))},
function(r, rt) {
var doc = locals[mydoc.doctype][mydoc.name];
get_field(doc.doctype, 'select_field' , doc.name).options = r.message;
refresh_field('select_field');
call_back_master2(mydoc);
}
);
}
//select_master2 onchanged event function: it will add values to select_field2 based on select_master2 field
cur_frm.cscript.select_master2 = function(doc, cdt, cdn){
var mydoc = doc
doc.select_field2 ='';
refresh_field('select_field2');
doc.select_value='';
refresh_field('select_value');
$c('runserverobj', args={'method':'maindoc_field', 'arg':doc.select_master2, 'docs':compress_doclist (make_doclist (doc.doctype,doc.name))},
function(r, rt) {
var doc = locals[mydoc.doctype][mydoc.name];
get_field(doc.doctype, 'select_field2' , doc.name).options = r.message;
refresh_field('select_field2');
get_field(doc.doctype, 'select_value' , doc.name).options = '';
refresh_field('select_value');
}
);
}
//select_field2 onchanged event function: used to add records values of selected master & their field_name
cur_frm.cscript.select_field2 = function(doc, cdt, cdn){
var mydoc = doc
doc.select_value='';
refresh_field('select_value');
$c('runserverobj', args={'method':'get_values','docs':compress_doclist (make_doclist (doc.doctype,doc.name))},
function(r, rt) {
var doc = locals[mydoc.doctype][mydoc.name];
get_field(doc.doctype, 'select_value' , doc.name).options = r.message;
refresh_field('select_value');
}
);
}
//transaction onchanged event function: used to add transaction terms to transaction term field
cur_frm.cscript.transaction = function(doc, cdt, cdn){
var mydoc = doc
doc.transaction_term='';
refresh_field('transaction_term');
if(doc.transaction){
$c('runserverobj', args={'method':'add_transaction_terms','docs':compress_doclist (make_doclist (doc.doctype,doc.name))},
function(r, rt) {
var doc = locals[mydoc.doctype][mydoc.name];
get_field(doc.doctype, 'transaction_term' , doc.name).options = r.message;
refresh_field('transaction_term');
}
);
}
}
//right operand of condition :hide or unhide
cur_frm.cscript.right_operand = function(doc, cdt, cdn){
doc.select_master2 = "";
doc.select_field2 = "";
doc.select_value = "";
if(doc.right_operand =='Automatic'){
unhide_field('select_master2');
unhide_field('select_field2');
unhide_field('select_value');
}
else {
hide_field('select_master2');
hide_field('select_field2');
hide_field('select_value');
}
}

View File

@ -1,327 +0,0 @@
# ERPNext - web based ERP (http://erpnext.com)
# Copyright (C) 2012 Web Notes Technologies Pvt Ltd
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Please edit this list and import only required elements
import webnotes
from webnotes.utils import add_days, add_months, add_years, cint, cstr, date_diff, default_fields, flt, fmt_money, formatdate, generate_hash, getTraceback, get_defaults, get_first_day, get_last_day, getdate, has_common, month_name, now, nowdate, replace_newlines, sendmail, set_default, str_esc_quote, user_format, validate_email_add
from webnotes.model import db_exists
from webnotes.model.doc import Document, addchild, removechild, getchildren, make_autoname, SuperDocType
from webnotes.model.doclist import getlist, copy_doclist
from webnotes.model.code import get_obj, get_server_obj, run_server_obj, updatedb, check_syntax
from webnotes import session, form, is_testing, msgprint, errprint
set = webnotes.conn.set
sql = webnotes.conn.sql
get_value = webnotes.conn.get_value
in_transaction = webnotes.conn.in_transaction
convert_to_lists = webnotes.conn.convert_to_lists
# -----------------------------------------------------------------------------------------
class DocType:
def __init__(self, doc, doclist=[]):
self.doc, self.doclist = doc, doclist
#----------------------------------------------------
# list of master whose module is payroll & isnot table
def get_masters(self):
master1 = sql("select name from `tabDocType` where module = 'Payroll' and (istable = 0 or istable is null)")
ret =''
if master1:
for i in master1:
ret += "\n" + i[0]
return ret
#----------------------------------------------------
#list of all fields for which conditions can be set
def maindoc_field(self, select_form):
field_list=[]
field_info = sql("select label,fieldtype,options,fieldname from `tabDocField` where parent='%s' and fieldtype not in('Section Break','Column Break','Text','Small Text','Text Editor', 'Time', 'Check', 'Button','Code','HTML','Image','Blob','Password')"%select_form)
for f in field_info:
sl=[]
for x in f:
sl.append(x)
field_list.append(sl)
ret = ''
#=====================================================
for fi in field_list:
if fi[1] !='Select' or fi[1] !='Link' or fi[1] !='Table':
ret += "\n" + cstr(select_form) + ':' + fi[0]
elif fi[1] =='Select':
op = fi[2].split(':')
if op[0] != 'link':
ret += "\n" + cstr(select_form) + ':' +fi[0]
#========
# linked doctype field list
#=====================================================
for fi in field_list:
if fi[1] == 'Link':
flist=sql("select label from tabDocField where parent='%s' and fieldtype in ('Data', 'Int', 'Select','Currency','Float','Link')"%fi[2])
for f in flist:
ret += "\n" + fi[0] + ':' +f[0]
elif fi[1] == 'Select':
op = fi[2].split(':')
if op[0] == 'link':
flist=sql("select label from tabDocField where parent='%s' and fieldtype in ('Data', 'Select', 'Int','Currency','Float','Link')"%op[1])
for f in flist:
ret += "\n" + fi[0] + ':' +f[0]
return ret
#----------------------------------------------------
# function for finding fieldname,datatype of mentioned label
def field_info(self,label,parent):
field_name=sql("select fieldname from tabDocField where parent='%s' and label='%s'" %(parent,label))[0][0]
if field_name:
datatype=sql("select fieldtype from `tabDocField` where fieldname='%s' and parent='%s'" %(field_name,parent))[0][0]
ret={'fieldnm':field_name,'datatype':datatype}
return ret
#----------------------------------------------------
def compare_string(self,first,second,op):
if op=='Equals':
if first.lower()==second.lower():
return 'true'
else:
return 'false'
elif op=='Not Equals':
if first.lower()!=second.lower():
return 'true'
else:
return 'false'
elif op=='Greater than':
if first.lower()>second.lower():
return 'true'
else:
return 'false'
elif op=='Greater than or Equals':
if first.lower()>=second.lower():
return 'true'
else:
return 'false'
elif op=='Less than':
if first.lower()<second.lower():
return 'true'
else:
return 'false'
elif op=='Less than or Equals':
if first.lower()<=second.lower():
return 'true'
else:
return 'false'
#----------------------------------------------------
#evalute operator
def eval_operator(self,op):
op_sign =''
if op=='Equals':
op_sign='=='
elif op=='Not Equals':
op_sign='!='
elif op=='Greater than':
op_sign='>'
elif op=='Greater than or Equals':
op_sign='>='
elif op=='Less than':
op_sign='<'
elif op=='Less than or Equals':
op_sign='<='
return op_sign
#----------------------------------------------------
#evaluation condition
def eval_condition(self,field_dict,form_val,value,operator):
if field_dict['datatype']=='Data' or field_dict['datatype']=='Select' or field_dict['datatype'] =='Link':
if self.compare_string(cstr(form_val),cstr(value),operator)=='false':
cond_hold='No'
else:
cond_hold='Yes'
else:
op_sign = self.eval_operator(operator)
chk_cond=str(form_val) + str(op_sign) + str(value)
errprint(chk_cond)
if eval(chk_cond):
cond_hold='Yes'
else:
cond_hold='No'
return cond_hold
#----------------------------------------------------
# fetching the value from the form
def find_value(self,fld_nm,tab_nm,rec_nm,child=0):
if child == 0:
form_val=sql("select %s from `tab%s` where name='%s'"%(fld_nm,tab_nm,rec_nm))
elif child == 1:
form_val=sql("select %s from `tab%s` where parent='%s'"%(fld_nm,tab_nm,rec_nm))
return form_val and form_val[0][0]
#----------------------------------------------------
# checking with main doctype
def chk_from_main_dt(self,master,label1,value,operator,form_obj):
cond_hold = ''
field_dict = self.field_info(label1,master) #getting fieldname info
form_val=self.find_value(field_dict['fieldnm'],master,form_obj.doc.name) # find value
if form_val :
cond_hold = self.eval_condition(field_dict,form_val,value,operator)
elif not form_val and field_dict['datatype'] =='Currency' or field_dict['datatype'] =='Float' or field_dict['datatype'] =='Int':
form_val = 0.0
cond_hold = self.eval_condition(field_dict,form_val,value,operator)
return cond_hold
#----------------------------------------------------
#checking with child doctype
def chk_from_child_dt(self,first_label,second_label,value,operator,form_obj):
cond_hold = ''
field_dict = self.field_info(second_label,first_label)
form_val=self.find_value(field_dict['fieldnm'],first_label,form_obj.doc.name,1) #fetching the value in current form from a table
if form_val or form_val==0:
cond_hold = self.eval_condition(field_dict,form_val,value,operator)
return cond_hold
#----------------------------------------------------
# if checking is with any linked doctype means first_label field from the doctype for which rule is given and second_label field from the doctype with which first_label is linked
def chk_from_link_dt(self,master,first_label,second_label,form_obj,value,operator):
cond_hold=''
field_list=[]
field_dict_first = self.field_info(first_label,master)
field_info = sql("select label,fieldtype,options,fieldname from `tabDocField` where parent='%s' and fieldtype not in('Section Break','Column Break','Text','Small Text','Text Editor', 'Time', 'Check', 'Button','Code','HTML','Image','Blob','Password')"%master)
for f in field_info:
sl=[]
for x in f:
sl.append(x)
field_list.append(sl)
for x in field_list:
if x[3] == field_dict_first['fieldnm']:
linked_to = x[2]
lt = linked_to.split(':')
#=================================================
if lt[0] == 'link':
field_dict_second = self.field_info(second_label,lt[1])
link_val=sql("select %s from `tab%s` where name='%s'"%(field_dict_first['fieldnm'],master,form_obj.doc.name))
if link_val and link_val[0][0]:
form_val = self.find_value(field_dict_second['fieldnm'],lt[1],link_val[0][0])
if form_val :
cond_hold = self.eval_condition(field_dict_second,form_val,value,operator)
else:
field_dict_second = self.field_info(second_label,lt[0])
link_val=sql("select %s from `tab%s` where name='%s'"%(field_dict_first['fieldnm'],master,form_obj.doc.name))
if link_val and link_val[0][0]:
form_val = self.find_value(field_dict_second['fieldnm'],lt[0],link_val[0][0])
if form_val :
cond_hold = self.eval_condition(field_dict_second,form_val,value,operator)
return cond_hold
#----------------------------------------------------
def evalute_rule(self,form_obj):
all_cond_hold='Yes'
for d in getlist(self.doclist,'condition_details'):
master = d.rule_master
label = d.rule_field.split(':') #break up checking condition
#findout the value with which condition will be checked
if d.value:
chk_with_value = d.value
# label[0] is doctype name for which rule is given, label[1] field name of that doctype
if label[0] == master:
cond_hold = self.chk_from_main_dt(master,label[1],chk_with_value,d.operator,form_obj)
if cond_hold =='No':
all_cond_hold = 'No'
break
elif cond_hold =='Yes':
all_cond_hold ='Yes'
#=====================================================
# if checking is with any linked doctype means label[0] field from the doctype for which rule is given and label[1] field from the doctype with which label[0] is linked
else:
cond_hold=self.chk_from_link_dt(master,label[0],label[1],form_obj,chk_with_value,d.operator)
if cond_hold =='No':
if d.exception == 'Yes':
msgprint(d.message)
raise Exception
elif d.exception=='No' or d.exception=='':
msgprint(d.message)
all_cond_hold = 'No'
break
elif cond_hold =='Yes':
all_cond_hold ='Yes'
return all_cond_hold
#----------------------------------------------------
#list of values of label & fieldname of selected master
def get_values(self):
op = self.doc.select_field2.split(':')
if op[0] == self.doc.master2:
field_info = sql("select label,fieldname from `tabDocField` where parent= '%s' AND label = '%s'" %(self.doc.select_master2,op[1]))
else:
field_info = sql("select label,fieldname from `tabDocField` where parent= '%s' AND label = '%s'" %(op[0],op[1]))
comp = sql("SELECT DISTINCT %s FROM `tab%s`" %(field_info[0][1],op[0]))
res = ''
for i in comp:
res += "\n" + str(i[0])
return cstr(res)
#----------------------------------------------------
#add_details function add records in condition detail table
def add_details(self):
if((self.doc.select_master) and (self.doc.select_field)):
if((self.doc.right_operand=='Automatic') and (self.doc.select_value=='')):
msgprint("Please select value")
else:
ch = addchild(self.doc,'condition_details','Condition Detail',0, self.doclist)
ch.rule_master = self.doc.select_master
ch.rule_field = self.doc.select_field
ch.operator = 'Equals'
ch.value = self.doc.select_value
ch.save()
else:
msgprint("Please select form, select field")

File diff suppressed because one or more lines are too long

View File

@ -15,13 +15,13 @@
'doctype': 'Page', 'doctype': 'Page',
'module': 'Knowledge Base', 'module': 'Knowledge Base',
'name': '__common__', 'name': '__common__',
'page_name': 'questions', 'page_name': 'Questions',
'standard': 'Yes' 'standard': 'Yes'
}, },
# Page, questions # Page, questions
{ {
'doctype': 'Page', 'doctype': 'Page',
'name': 'questions' 'name': 'Questions'
} }
] ]

View File

@ -0,0 +1,124 @@
def execute():
import webnotes
from webnotes.model import rename, delete_doc
from webnotes.model.code import get_obj
from wnf import replace_code
import os
# delete dt
#-------------
deldt = ['Widget Control', 'Update Delivery Date Detail', 'Update Delivery Date', 'Tag Detail', 'Supplier rating', 'Stylesheet', 'Question Tag', 'PRO PP Detail', 'PRO Detail', 'PPW Detail', 'PF Detail', 'Personalize', 'Patch Util', 'Page Template', 'Module Def Role', 'Module Def Item', 'File Group', 'File Browser Control', 'File', 'Educational Qualifications', 'Earn Deduction Detail', 'DocType Property Setter', 'DocFormat', 'Contact Detail', 'BOM Report Detail', 'BOM Replace Utility Detail', 'BOM Replace Utility', 'Absent Days Detail', 'Activity Dashboard Control', 'Raw Materials Supplied', 'Setup Wizard Control', 'Company Group']
for d in deldt:
delete_doc('DocType', d)
# Rename dt
#-------------
rendt = {
'Receivable Voucher' : 'Sales Invoice',
'RV Detail' : 'Sales Invoice Item',
'RV Tax Detail' : 'Sales Taxes and Charges',
'Payable Voucher' : 'Purchase Invoice',
'PV Detail' : 'Purchase Invoice Item',
'Purchase Tax Detail' : 'Purchase Taxes and Charges',
'Indent' : 'Purchase Request',
'Indent Detail' : 'Purchase Request Item',
'QA Inspection Report' : 'Quality Inspection',
'Ticket' : 'Task',
'Manage Account' : 'Global Defaults',
'DocLayer' : 'Customize Form View',
'DocLayerField' : 'CFV Field',
'ToDo Item' : 'ToDo',
'Term' : 'Terms and Conditions',
'Static Parameter Detail' : 'SMS Parameter',
'SS Earning Detail' : 'Salary Slip Earning',
'SS Deduction Detail' : 'Salary Slip Deduction',
'Sales Order Detail' : 'Sales Order Item',
'Sales BOM Detail' : 'Sales BOM Item',
'Return Detail' : 'Sales and Purchase Return Item',
'Ref Rate Detail' : 'Item Price',
'Receiver Detail' : 'SMS Receiver',
'Quotation Detail' : 'Quotation Item',
'QA Specification Detail' : 'Quality Inspection Reading',
'Purchase Receipt Detail' : 'Purchase Receipt Item',
'Purchase Other Charges' : 'Purchase Taxes and Charges Master',
'PR Raw Material Detail' : 'Purchase Receipt Item Supplied',
'PP SO Detail' : 'Production Plan Sales Order',
'PP Detail' : 'Production Plan Item',
'PO Raw Material Detail' : 'Purchase Order Item Supplied',
'PO Detail' : 'Purchase Order Item',
'Packing Slip Detail' : 'Packing Slip Item',
'Other Charges' : 'Sales Taxes and Charges Master',
'Order Lost Reason' : 'Quotation Lost Reason',
'Manage Account' : 'Global Defaults',
'Maintenance Visit Detail' : 'Maintenance Visit Purpose',
'Ledger Balance Export' : 'Multi Ledger Report',
'LC PR Detail' : 'Landed Cost Purchase Receipt',
'Landed Cost Detail' : 'Landed Cost Item',
'KRA Template' : 'Appraisal Template',
'KRA Sheet' : 'Appraisal Template Goal',
'Item Specification Detail' : 'Item Quality Inspection Parameter',
'Item Maintenance Detail' : 'Maintenance Schedule Item',
'IR Payment Detail' : 'Payment to Invoice Matching Tool Detail',
'Internal Reconciliation' : 'Payment to Invoice Matching Tool',
'Installed Item Details' : 'Installation Note Item',
'Holiday List Detail' : 'Holiday',
'Follow up' : 'Communication Log',
'Flat BOM Detail' : 'BOM Explosion Item',
'Expense Voucher Detail' : 'Expense Claim Detail',
'Expense Voucher' : 'Expense Claim',
'Expense Type' : 'Expense Claim Type',
'Enquiry Detail' : 'Opportunity Item',
'Enquiry' : 'Opportunity',
'Earning Detail' : 'Salary Structure Earning',
'DocLayerField' : 'Customize Form Field',
'DocLayer' : 'Customize Form',
'Delivery Note Detail' : 'Delivery Note Item',
'Deduction Detail' : 'Salary Structure Deduction',
'Comment Widget Record' : 'Comment',
'BOM Material' : 'BOM Item',
'Bill Of Materials' : 'BOM',
'Appraisal Detail' : 'Appraisal Goal',
'Advance Allocation Detail' : 'Purchase Invoice Advance',
'Advance Adjustment Detail' : 'Sales Invoice Advance'
'Ledger Detail' : 'Multi Ledger Report Detail',
'TA Control' : 'Trend Analyzer Control',
'Sales and Purchase Return Wizard' : 'Sales and Purchase Return Tool',
'Educational Qualifications Detail' : 'Employee Education',
'Delivery Note Packing Detail' : 'Delivery Note Packing Item',
'Experience In Company Detail' : 'Employee Internal Work History',
'Professional Training Details' : 'Employee Training',
'Previous Experience Detail' : 'Employee External Work History',
}
for d in rendt:
#rename
rename('DocType', d, rendt[d], 1)
# update txt
obj = get_obj('DocType', rendt[d])
obj.doc.save()
# RUN ONLY IN LOCAL
######################
# replace dt in js/py file
for extn in ['js', 'py', 'txt']:
replace_code('/var/www/erpnext/', d, rendt[d], extn)
#------TO-DO--------
# remove dir
# git remove
# dt mapper rename
# change in gl mapper

View File

@ -0,0 +1,15 @@
def execute():
import webnotes
sql = webnotes.conn.sql
from webnotes.model import delete_doc
del_rec = {
'DocType' : ['Update Series', 'File', 'File Browser Control', 'File Group', 'Tag Detail', 'DocType Property Setter', 'Company Group'],
'Page' : ['File Browser']
}
for d in del_rec:
for r in del_rec[d]:
delete_doc(d, r)
sql("delete from tabDocField where label='Repair Indent' and parent = 'Indent'")

View File

@ -1,21 +0,0 @@
// ERPNext - web based ERP (http://erpnext.com)
// Copyright (C) 2012 Web Notes Technologies Pvt Ltd
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//get query select Territory
//=======================================================================================================================
cur_frm.fields_dict['territory'].get_query = function(doc,cdt,cdn) {
return 'SELECT `tabTerritory`.`name`,`tabTerritory`.`parent_territory` FROM `tabTerritory` WHERE `tabTerritory`.`is_group` = "No" AND `tabTerritory`.`docstatus`!= 2 AND `tabTerritory`.%(key)s LIKE "%s" ORDER BY `tabTerritory`.`name` ASC LIMIT 50';
}

View File

@ -1,71 +0,0 @@
# ERPNext - web based ERP (http://erpnext.com)
# Copyright (C) 2012 Web Notes Technologies Pvt Ltd
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Please edit this list and import only required elements
import webnotes
from webnotes.utils import add_days, add_months, add_years, cint, cstr, date_diff, default_fields, flt, fmt_money, formatdate, generate_hash, getTraceback, get_defaults, get_first_day, get_last_day, getdate, has_common, month_name, now, nowdate, replace_newlines, sendmail, set_default, str_esc_quote, user_format, validate_email_add
from webnotes.model import db_exists
from webnotes.model.doc import Document, addchild, removechild, getchildren, make_autoname, SuperDocType
from webnotes.model.doclist import getlist, copy_doclist
from webnotes.model.code import get_obj, get_server_obj, run_server_obj, updatedb, check_syntax
from webnotes import session, form, is_testing, msgprint, errprint
set = webnotes.conn.set
sql = webnotes.conn.sql
get_value = webnotes.conn.get_value
in_transaction = webnotes.conn.in_transaction
convert_to_lists = webnotes.conn.convert_to_lists
# -----------------------------------------------------------------------------------------
class DocType:
def __init__(self, d, dl):
self.doc, self.doclist = d, dl
def get_open_sales_order(self):
if not (self.doc.from_date and self.doc.to_date):
msgprint("From Date and To Date are Mandatory")
return
cond = ''
if self.doc.customer:
cond += " AND t1.customer = '%s' " % self.doc.customer
if self.doc.sales_order:
cond += " AND t1.name = '%s' " % self.doc.sales_order
if self.doc.territory:
cond += " AND t1.territory = '%s' " %self.doc.territory
dl = sql("select distinct t1.name, t1.customer, t1.delivery_date, t1.territory, t1.rounded_total from `tabSales Order` t1, `tabSales Order Detail` t2 where t1.transaction_date >= '%s' and t1.transaction_date <= '%s' and t1.docstatus=1 and t1.status != 'Completed' and t1.name = t2.parent and t2.docstatus =1 and t2.qty > t2.delivered_qty and (t2.confirmation_date is null or t2.confirmation_date= '' or t2.confirmation_date='0000-00-00') %s"% (self.doc.from_date, self.doc.to_date, cond))
self.doc.clear_table(self.doclist, 'entries')
count = 0
for d in dl:
nl = addchild(self.doc, 'entries', 'Update Delivery Date Detail', 1, self.doclist)
nl.sales_order_no = str(d[0])
nl.customer = str(d[1])
nl.territory = str(d[3])
nl.rounded_total = str(d[4])
nl.delivery_date = str(d[2])
count = count +1
if not count:
msgprint("No Sales Order found as per filters set.")
def update_sales_order(self):
for d in getlist(self.doclist, 'entries'):
if d.confirmation_date:
sql("update `tabSales Order Detail` set confirmation_date = %s where parent = %s ", (d.confirmation_date, d.sales_order_no))
msgprint("Updated")

View File

@ -1,150 +0,0 @@
# DocType, Update Delivery Date
[
# These values are common in all dictionaries
{
'creation': '2010-08-08 17:09:29',
'docstatus': 0,
'modified': '2010-09-20 14:06:57',
'modified_by': 'Administrator',
'owner': 'jai@webnotestech.com'
},
# These values are common for all DocType
{
'colour': 'White:FFF',
'doctype': 'DocType',
'issingle': 1,
'module': 'Production',
'name': '__common__',
'section_style': 'Simple',
'server_code_error': ' ',
'version': 5
},
# These values are common for all DocField
{
'doctype': 'DocField',
'name': '__common__',
'parent': 'Update Delivery Date',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0
},
# These values are common for all DocPerm
{
'create': 1,
'doctype': 'DocPerm',
'idx': 1,
'name': '__common__',
'parent': 'Update Delivery Date',
'parentfield': 'permissions',
'parenttype': 'DocType',
'permlevel': 0,
'read': 1,
'role': 'System Manager',
'write': 1
},
# DocType, Update Delivery Date
{
'doctype': 'DocType',
'name': 'Update Delivery Date'
},
# DocPerm
{
'doctype': 'DocPerm'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'from_date',
'fieldtype': 'Date',
'idx': 1,
'label': 'From Date',
'reqd': 1
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'to_date',
'fieldtype': 'Date',
'idx': 2,
'label': 'To Date',
'reqd': 1
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'customer',
'fieldtype': 'Link',
'idx': 3,
'label': 'Customer',
'options': 'Customer'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'sales_order',
'fieldtype': 'Link',
'idx': 4,
'label': 'Sales Order',
'options': 'Sales Order'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'company',
'fieldtype': 'Select',
'idx': 5,
'label': 'Company',
'options': 'link:Company'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'territory',
'fieldtype': 'Link',
'idx': 6,
'label': 'Territory',
'options': 'Territory',
'print_hide': 1
},
# DocField
{
'doctype': 'DocField',
'fieldtype': 'Button',
'idx': 7,
'label': 'Get Open Sales Order',
'options': 'get_open_sales_order'
},
# DocField
{
'default': 'No Toolbar',
'doctype': 'DocField',
'fieldname': 'entries',
'fieldtype': 'Table',
'idx': 8,
'label': 'Entries',
'options': 'Update Delivery Date Detail'
},
# DocField
{
'doctype': 'DocField',
'fieldtype': 'Button',
'idx': 9,
'label': 'Update Sales Order',
'options': 'update_sales_order'
}
]

View File

@ -1,143 +0,0 @@
# DocType, Update Delivery Date Detail
[
# These values are common in all dictionaries
{
'creation': '2010-08-08 17:09:29',
'docstatus': 0,
'modified': '2010-09-20 14:06:57',
'modified_by': 'Administrator',
'owner': 'jai@webnotestech.com'
},
# These values are common for all DocType
{
'colour': 'White:FFF',
'doctype': 'DocType',
'istable': 1,
'module': 'Production',
'name': '__common__',
'section_style': 'Simple',
'server_code_error': ' ',
'version': 1
},
# These values are common for all DocField
{
'doctype': 'DocField',
'name': '__common__',
'parent': 'Update Delivery Date Detail',
'parentfield': 'fields',
'parenttype': 'DocType'
},
# DocType, Update Delivery Date Detail
{
'doctype': 'DocType',
'name': 'Update Delivery Date Detail'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'sales_order_no',
'fieldtype': 'Link',
'idx': 1,
'label': 'Sales Order No',
'oldfieldname': 'sales_order_no',
'oldfieldtype': 'Link',
'options': 'Sales Order',
'permlevel': 1
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'customer',
'fieldtype': 'Data',
'idx': 2,
'label': 'Customer',
'oldfieldname': 'customer',
'oldfieldtype': 'Data',
'options': 'Customer',
'permlevel': 1
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'city',
'fieldtype': 'Data',
'idx': 3,
'label': 'City',
'oldfieldname': 'city',
'oldfieldtype': 'Data',
'permlevel': 0,
'reqd': 0
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'state',
'fieldtype': 'Link',
'idx': 4,
'label': 'State',
'oldfieldname': 'state',
'oldfieldtype': 'Link',
'options': 'State',
'permlevel': 0,
'search_index': 0
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'territory',
'fieldtype': 'Link',
'idx': 5,
'label': 'Territory',
'oldfieldname': 'territory',
'oldfieldtype': 'Link',
'options': 'Territory',
'permlevel': 1,
'print_hide': 1,
'search_index': 0
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'rounded_total',
'fieldtype': 'Data',
'idx': 6,
'label': 'Total Amount',
'oldfieldname': 'rounded_total',
'oldfieldtype': 'Data',
'permlevel': 0
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'delivery_date',
'fieldtype': 'Date',
'idx': 7,
'label': 'Expected Delivery Date',
'oldfieldname': 'delivery_date',
'oldfieldtype': 'Date',
'permlevel': 1
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'confirmation_date',
'fieldtype': 'Date',
'idx': 8,
'label': 'Confirmation Date',
'oldfieldname': 'confirmation_date',
'oldfieldtype': 'Date',
'permlevel': 0
}
]

View File

@ -5,14 +5,14 @@
{ {
'creation': '2010-08-08 17:09:14', 'creation': '2010-08-08 17:09:14',
'docstatus': 0, 'docstatus': 0,
'modified': '2012-03-12 16:07:48', 'modified': '2012-03-22 14:39:13',
'modified_by': u'Administrator', 'modified_by': u'Administrator',
'owner': u'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'_last_update': u'1331542508', '_last_update': u'1305714062',
'allow_attach': 1, 'allow_attach': 1,
'allow_trash': 1, 'allow_trash': 1,
'autoname': u'field:project_name', 'autoname': u'field:project_name',
@ -29,7 +29,7 @@
'show_in_menu': 0, 'show_in_menu': 0,
'subject': u' ', 'subject': u' ',
'tag_fields': u'status', 'tag_fields': u'status',
'version': 38 'version': 33
}, },
# These values are common for all DocField # These values are common for all DocField
@ -91,6 +91,7 @@
'fieldname': u'project_name', 'fieldname': u'project_name',
'fieldtype': u'Data', 'fieldtype': u'Data',
'label': u'Project Name', 'label': u'Project Name',
'no_copy': 0,
'oldfieldname': u'project_name', 'oldfieldname': u'project_name',
'oldfieldtype': u'Data', 'oldfieldtype': u'Data',
'permlevel': 0, 'permlevel': 0,
@ -121,10 +122,12 @@
'fieldname': u'is_active', 'fieldname': u'is_active',
'fieldtype': u'Select', 'fieldtype': u'Select',
'label': u'Is Active', 'label': u'Is Active',
'no_copy': 0,
'oldfieldname': u'is_active', 'oldfieldname': u'is_active',
'oldfieldtype': u'Select', 'oldfieldtype': u'Select',
'options': u'Yes\nNo', 'options': u'Yes\nNo',
'permlevel': 0 'permlevel': 0,
'search_index': 0
}, },
# DocField # DocField
@ -133,17 +136,69 @@
'fieldname': u'priority', 'fieldname': u'priority',
'fieldtype': u'Select', 'fieldtype': u'Select',
'label': u'Priority', 'label': u'Priority',
'no_copy': 0,
'oldfieldname': u'priority', 'oldfieldname': u'priority',
'oldfieldtype': u'Select', 'oldfieldtype': u'Select',
'options': u'Medium\nLow\nHigh', 'options': u'Medium\nLow\nHigh',
'permlevel': 0 'permlevel': 0,
'search_index': 0
}, },
# DocField # DocField
{ {
'doctype': u'DocField', 'doctype': u'DocField',
'fieldtype': u'Column Break', 'fieldname': u'project_value',
'permlevel': 0 'fieldtype': u'Currency',
'label': u'Project Value',
'no_copy': 0,
'oldfieldname': u'project_value',
'oldfieldtype': u'Currency',
'permlevel': 0,
'reqd': 1,
'search_index': 0,
'trigger': u'Client'
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'gross_margin_value',
'fieldtype': u'Currency',
'label': u'Gross Margin Value',
'no_copy': 0,
'oldfieldname': u'gross_margin_value',
'oldfieldtype': u'Currency',
'permlevel': 0,
'reqd': 1,
'search_index': 0
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'per_gross_margin',
'fieldtype': u'Currency',
'label': u'Gross Margin %',
'no_copy': 0,
'oldfieldname': u'per_gross_margin',
'oldfieldtype': u'Currency',
'permlevel': 0,
'reqd': 1,
'search_index': 0
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'est_material_cost',
'fieldtype': u'Currency',
'label': u'Estimated Material Cost',
'no_copy': 0,
'oldfieldname': u'est_material_cost',
'oldfieldtype': u'Currency',
'permlevel': 0,
'search_index': 0,
'trigger': u'Client'
}, },
# DocField # DocField
@ -152,9 +207,11 @@
'fieldname': u'project_type', 'fieldname': u'project_type',
'fieldtype': u'Data', 'fieldtype': u'Data',
'label': u'Project Type', 'label': u'Project Type',
'no_copy': 0,
'oldfieldname': u'project_type', 'oldfieldname': u'project_type',
'oldfieldtype': u'Data', 'oldfieldtype': u'Data',
'permlevel': 0 'permlevel': 0,
'search_index': 0
}, },
# DocField # DocField
@ -164,9 +221,11 @@
'fieldtype': u'Date', 'fieldtype': u'Date',
'in_filter': 1, 'in_filter': 1,
'label': u'Project Start Date', 'label': u'Project Start Date',
'no_copy': 0,
'oldfieldname': u'project_start_date', 'oldfieldname': u'project_start_date',
'oldfieldtype': u'Date', 'oldfieldtype': u'Date',
'permlevel': 0 'permlevel': 0,
'search_index': 0
}, },
# DocField # DocField
@ -175,9 +234,11 @@
'fieldname': u'completion_date', 'fieldname': u'completion_date',
'fieldtype': u'Date', 'fieldtype': u'Date',
'label': u'Completion Date', 'label': u'Completion Date',
'no_copy': 0,
'oldfieldname': u'completion_date', 'oldfieldname': u'completion_date',
'oldfieldtype': u'Date', 'oldfieldtype': u'Date',
'permlevel': 0 'permlevel': 0,
'search_index': 0
}, },
# DocField # DocField
@ -186,22 +247,11 @@
'fieldname': u'act_completion_date', 'fieldname': u'act_completion_date',
'fieldtype': u'Date', 'fieldtype': u'Date',
'label': u'Actual Completion Date', 'label': u'Actual Completion Date',
'no_copy': 0,
'oldfieldname': u'act_completion_date', 'oldfieldname': u'act_completion_date',
'oldfieldtype': u'Date', 'oldfieldtype': u'Date',
'permlevel': 0 'permlevel': 0,
}, 'search_index': 0
# DocField
{
'doctype': u'DocField',
'fieldname': u'amemdment_date',
'fieldtype': u'Date',
'hidden': 1,
'label': u'Amemdment Date',
'no_copy': 1,
'oldfieldname': u'amemdment_date',
'oldfieldtype': u'Date',
'permlevel': 1
}, },
# DocField # DocField
@ -215,15 +265,49 @@
'oldfieldname': u'amended_from', 'oldfieldname': u'amended_from',
'oldfieldtype': u'Data', 'oldfieldtype': u'Data',
'permlevel': 1, 'permlevel': 1,
'print_hide': 0 'print_hide': 0,
'search_index': 0
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'amemdment_date',
'fieldtype': u'Date',
'hidden': 1,
'label': u'Amemdment Date',
'no_copy': 1,
'oldfieldname': u'amemdment_date',
'oldfieldtype': u'Date',
'permlevel': 1,
'search_index': 0
}, },
# DocField # DocField
{ {
'doctype': u'DocField', 'doctype': u'DocField',
'fieldtype': u'Section Break', 'fieldtype': u'Section Break',
'label': u'Details', 'label': u'Project Details',
'oldfieldtype': u'Section Break', 'oldfieldtype': u'Section Break',
'options': u'Simple',
'permlevel': 0
},
# DocField
{
'doctype': u'DocField',
'fieldtype': u'Column Break',
'oldfieldtype': u'Column Break',
'permlevel': 0,
'width': u'50%'
},
# DocField
{
'doctype': u'DocField',
'fieldtype': u'Section Break',
'oldfieldtype': u'Section Break',
'options': u'Simple',
'permlevel': 0 'permlevel': 0
}, },
@ -233,77 +317,11 @@
'fieldname': u'notes', 'fieldname': u'notes',
'fieldtype': u'Text Editor', 'fieldtype': u'Text Editor',
'label': u'Notes', 'label': u'Notes',
'no_copy': 0,
'oldfieldname': u'notes', 'oldfieldname': u'notes',
'oldfieldtype': u'Text Editor', 'oldfieldtype': u'Text Editor',
'permlevel': 0
},
# DocField
{
'doctype': u'DocField',
'fieldtype': u'Section Break',
'label': u'Financials',
'oldfieldtype': u'Section Break',
'permlevel': 0
},
# DocField
{
'colour': u'White:FFF',
'doctype': u'DocField',
'fieldname': u'project_value',
'fieldtype': u'Currency',
'label': u'Project Value',
'oldfieldname': u'project_value',
'oldfieldtype': u'Currency',
'permlevel': 0, 'permlevel': 0,
'reqd': 0, 'search_index': 0
'trigger': u'Client'
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'est_material_cost',
'fieldtype': u'Currency',
'label': u'Estimated Material Cost',
'oldfieldname': u'est_material_cost',
'oldfieldtype': u'Currency',
'permlevel': 0,
'trigger': u'Client'
},
# DocField
{
'doctype': u'DocField',
'fieldtype': u'Column Break',
'permlevel': 0
},
# DocField
{
'colour': u'White:FFF',
'doctype': u'DocField',
'fieldname': u'per_gross_margin',
'fieldtype': u'Currency',
'label': u'Gross Margin %',
'oldfieldname': u'per_gross_margin',
'oldfieldtype': u'Currency',
'permlevel': 0,
'reqd': 0
},
# DocField
{
'colour': u'White:FFF',
'doctype': u'DocField',
'fieldname': u'gross_margin_value',
'fieldtype': u'Currency',
'label': u'Gross Margin Value',
'oldfieldname': u'gross_margin_value',
'oldfieldtype': u'Currency',
'permlevel': 0,
'reqd': 0
}, },
# DocField # DocField
@ -324,6 +342,7 @@
'fieldtype': u'Link', 'fieldtype': u'Link',
'in_filter': 1, 'in_filter': 1,
'label': u'Customer', 'label': u'Customer',
'no_copy': 0,
'oldfieldname': u'customer', 'oldfieldname': u'customer',
'oldfieldtype': u'Link', 'oldfieldtype': u'Link',
'options': u'Customer', 'options': u'Customer',
@ -341,6 +360,7 @@
'fieldtype': u'Data', 'fieldtype': u'Data',
'in_filter': 1, 'in_filter': 1,
'label': u'Customer Name', 'label': u'Customer Name',
'no_copy': 0,
'oldfieldname': u'customer_name', 'oldfieldname': u'customer_name',
'oldfieldtype': u'Data', 'oldfieldtype': u'Data',
'permlevel': 1, 'permlevel': 1,
@ -353,9 +373,11 @@
'fieldname': u'customer_address', 'fieldname': u'customer_address',
'fieldtype': u'Small Text', 'fieldtype': u'Small Text',
'label': u'Customer Address', 'label': u'Customer Address',
'no_copy': 0,
'oldfieldname': u'customer_address', 'oldfieldname': u'customer_address',
'oldfieldtype': u'Small Text', 'oldfieldtype': u'Small Text',
'permlevel': 1 'permlevel': 1,
'search_index': 0
}, },
# DocField # DocField
@ -366,10 +388,12 @@
'fieldtype': u'Link', 'fieldtype': u'Link',
'in_filter': 1, 'in_filter': 1,
'label': u'Contact Person', 'label': u'Contact Person',
'no_copy': 0,
'oldfieldname': u'contact_person', 'oldfieldname': u'contact_person',
'oldfieldtype': u'Link', 'oldfieldtype': u'Link',
'permlevel': 0, 'permlevel': 0,
'reqd': 0, 'reqd': 0,
'search_index': 0,
'trigger': u'Client' 'trigger': u'Client'
}, },
@ -386,6 +410,7 @@
'options': u'Territory', 'options': u'Territory',
'permlevel': 0, 'permlevel': 0,
'reqd': 0, 'reqd': 0,
'search_index': 0,
'trigger': u'Client' 'trigger': u'Client'
}, },
@ -395,9 +420,11 @@
'fieldname': u'contact_no', 'fieldname': u'contact_no',
'fieldtype': u'Data', 'fieldtype': u'Data',
'label': u'Contact No', 'label': u'Contact No',
'no_copy': 0,
'oldfieldname': u'contact_no', 'oldfieldname': u'contact_no',
'oldfieldtype': u'Data', 'oldfieldtype': u'Data',
'permlevel': 1 'permlevel': 1,
'search_index': 0
}, },
# DocField # DocField
@ -406,9 +433,11 @@
'fieldname': u'email_id', 'fieldname': u'email_id',
'fieldtype': u'Data', 'fieldtype': u'Data',
'label': u'Email Id', 'label': u'Email Id',
'no_copy': 0,
'oldfieldname': u'email_id', 'oldfieldname': u'email_id',
'oldfieldtype': u'Data', 'oldfieldtype': u'Data',
'permlevel': 1 'permlevel': 1,
'search_index': 0
}, },
# DocField # DocField
@ -417,10 +446,12 @@
'fieldname': u'customer_group', 'fieldname': u'customer_group',
'fieldtype': u'Link', 'fieldtype': u'Link',
'label': u'Customer Group', 'label': u'Customer Group',
'no_copy': 0,
'oldfieldname': u'customer_group', 'oldfieldname': u'customer_group',
'oldfieldtype': u'Link', 'oldfieldtype': u'Link',
'options': u'Customer Group', 'options': u'Customer Group',
'permlevel': 1 'permlevel': 1,
'search_index': 0
}, },
# DocField # DocField
@ -440,10 +471,12 @@
'fieldname': u'project_milestones', 'fieldname': u'project_milestones',
'fieldtype': u'Table', 'fieldtype': u'Table',
'label': u'Project Milestones', 'label': u'Project Milestones',
'no_copy': 0,
'oldfieldname': u'project_milestones', 'oldfieldname': u'project_milestones',
'oldfieldtype': u'Table', 'oldfieldtype': u'Table',
'options': u'Project Milestone', 'options': u'Project Milestone',
'permlevel': 0 'permlevel': 0,
'search_index': 0
}, },
# DocField # DocField
@ -453,22 +486,22 @@
'fieldtype': u'Small Text', 'fieldtype': u'Small Text',
'hidden': 1, 'hidden': 1,
'label': u'Trash Reason', 'label': u'Trash Reason',
'no_copy': 0,
'oldfieldname': u'trash_reason', 'oldfieldname': u'trash_reason',
'oldfieldtype': u'Small Text', 'oldfieldtype': u'Small Text',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1 'print_hide': 1,
'search_index': 0
}, },
# DocField # DocField
{ {
'colour': u'White:FFF',
'doctype': u'DocField', 'doctype': u'DocField',
'fieldname': u'file_list', 'fieldname': u'file_list',
'fieldtype': u'Small Text', 'fieldtype': u'Small Text',
'hidden': 1,
'label': u'File List', 'label': u'File List',
'no_copy': 1, 'no_copy': 1,
'permlevel': 0, 'permlevel': 0,
'print_hide': 1 'search_index': 0
} }
] ]

View File

@ -1 +0,0 @@
[{'section_style': 'Simple', 'is_transaction_doc': None, 'creation': '2009-12-11 11:45:55', 'search_fields': None, 'module': 'CRM', 'doctype': 'DocType', 'change_log': None, 'print_outline': '', 'owner': 'dhanalekshmi@webnotestech.com', 'in_dialog': None, 'in_create': None, 'read_only': None, 'allow_email': None, 'dt_template': None, 'hide_heading': None, 'issingle': None, 'allow_rename': None, 'smallicon': None, 'allow_attach': None, 'show_in_menu': 0, 'max_attachments': None, 'version': 5, 'menu_index': None, 'docstatus': 0, 'allow_copy': None, 'istable': 1, 'description': None, 'parent': None, 'server_code': None, 'allow_trash': None, 'allow_print': None, 'autoname': None, 'client_script_core': None, 'client_string': None, 'use_template': None, 'modified_by': 'ashwini@webnotestech.com', 'document_type': None, 'name': 'Enquiry SMS Detail', 'idx': None, 'hide_toolbar': None, 'colour': 'White:FFF', 'client_script': None, 'modified': '2010-09-20 14:06:57', 'server_code_error': None, 'name_case': '', 'parenttype': None, 'read_only_onload': None, 'server_code_core': None, 'server_code_compiled': None, 'parent_node': None, 'parentfield': None}, {'no_copy': None, 'oldfieldtype': 'Data', 'creation': '2009-12-11 11:45:55', 'doctype': 'DocField', 'oldfieldname': 'other_mobile_no', 'owner': 'dhanalekshmi@webnotestech.com', 'reqd': None, 'in_filter': None, 'print_hide': None, 'modified_by': 'ashwini@webnotestech.com', 'label': 'Mobile No', 'width': '200px', 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'Enquiry SMS Detail', 'search_index': None, 'allow_on_submit': 1, 'icon': None, 'name': 'FL03494', 'idx': 1, 'default': None, 'colour': None, 'modified': '2010-08-08 11:13:11', 'parenttype': 'DocType', 'fieldname': 'other_mobile_no', 'fieldtype': 'Data', 'options': None, 'report_hide': None, 'parentfield': 'fields'}]

View File

@ -5,49 +5,50 @@
{ {
'creation': '2010-08-08 17:09:04', 'creation': '2010-08-08 17:09:04',
'docstatus': 0, 'docstatus': 0,
'modified': '2011-05-17 16:34:30', 'modified': '2012-03-21 14:08:59',
'modified_by': 'Administrator', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'_last_update': '1308741898', '_last_update': u'1306480044',
'autoname': 'IN/.####', 'autoname': u'IN/.####',
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'module': 'Selling', 'module': u'Selling',
'name': '__common__', 'name': '__common__',
'section_style': 'Simple', 'section_style': u'Simple',
'server_code_error': ' ', 'server_code_error': u' ',
'show_in_menu': 0, 'show_in_menu': 0,
'subject': 'At %(customer_name)s on %(inst_date)s', 'subject': u'At %(customer_name)s on %(inst_date)s',
'version': 96 'version': 97
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Installation Note', 'parent': u'Installation Note',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType' 'parenttype': u'DocType'
}, },
# These values are common for all DocPerm # These values are common for all DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'name': '__common__', 'name': '__common__',
'parent': 'Installation Note', 'parent': u'Installation Note',
'parentfield': 'permissions', 'parentfield': u'permissions',
'parenttype': 'DocType', 'parenttype': u'DocType',
'read': 1 'read': 1
}, },
# DocType, Installation Note # DocType, Installation Note
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Installation Note' 'name': u'Installation Note'
}, },
# DocPerm # DocPerm
@ -55,20 +56,18 @@
'amend': 1, 'amend': 1,
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 1,
'permlevel': 0, 'permlevel': 0,
'role': 'System Manager', 'role': u'System Manager',
'submit': 1, 'submit': 1,
'write': 1 'write': 1
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 2,
'permlevel': 1, 'permlevel': 1,
'role': 'System Manager' 'role': u'System Manager'
}, },
# DocPerm # DocPerm
@ -76,20 +75,18 @@
'amend': 1, 'amend': 1,
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 3,
'permlevel': 0, 'permlevel': 0,
'role': 'Sales User', 'role': u'Sales User',
'submit': 1, 'submit': 1,
'write': 1 'write': 1
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 4,
'permlevel': 1, 'permlevel': 1,
'role': 'Sales User' 'role': u'Sales User'
}, },
# DocPerm # DocPerm
@ -97,108 +94,99 @@
'amend': 1, 'amend': 1,
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 5,
'permlevel': 0, 'permlevel': 0,
'role': 'Sales Manager', 'role': u'Sales Manager',
'submit': 1, 'submit': 1,
'write': 1 'write': 1
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 6,
'permlevel': 1, 'permlevel': 1,
'role': 'Sales Manager' 'role': u'Sales Manager'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'idx': 1, 'label': u'Installation Note',
'label': 'Installation Note', 'oldfieldtype': u'Section Break',
'oldfieldtype': 'Section Break',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Column Break', 'fieldtype': u'Column Break',
'idx': 2, 'oldfieldtype': u'Column Break',
'oldfieldtype': 'Column Break',
'permlevel': 0, 'permlevel': 0,
'width': '50%' 'width': u'50%'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'naming_series', 'fieldname': u'naming_series',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 3, 'label': u'Series',
'label': 'Series',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'naming_series', 'oldfieldname': u'naming_series',
'oldfieldtype': 'Select', 'oldfieldtype': u'Select',
'options': '\nIN', 'options': u'\nIN',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'customer', 'fieldname': u'customer',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 4, 'label': u'Customer',
'label': 'Customer', 'oldfieldname': u'customer',
'oldfieldname': 'customer', 'oldfieldtype': u'Link',
'oldfieldtype': 'Link', 'options': u'Customer',
'options': 'Customer',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
'reqd': 1, 'reqd': 1,
'search_index': 1, 'search_index': 1,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'customer_address', 'fieldname': u'customer_address',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 5, 'label': u'Customer Address',
'label': 'Customer Address', 'options': u'Address',
'options': 'Address',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1 'print_hide': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'contact_person', 'fieldname': u'contact_person',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 6, 'label': u'Contact Person',
'label': 'Contact Person', 'options': u'Contact',
'options': 'Contact',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1 'print_hide': 1
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'customer_name', 'fieldname': u'customer_name',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 7, 'label': u'Name',
'label': 'Name', 'oldfieldname': u'customer_name',
'oldfieldname': 'customer_name', 'oldfieldtype': u'Data',
'oldfieldtype': 'Data',
'permlevel': 1, 'permlevel': 1,
'reqd': 0, 'reqd': 0,
'search_index': 0 'search_index': 0
@ -206,91 +194,83 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'address_display', 'fieldname': u'address_display',
'fieldtype': 'Small Text', 'fieldtype': u'Small Text',
'idx': 8, 'label': u'Address',
'label': 'Address',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'contact_display', 'fieldname': u'contact_display',
'fieldtype': 'Small Text', 'fieldtype': u'Small Text',
'idx': 9, 'label': u'Contact',
'label': 'Contact',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'contact_mobile', 'fieldname': u'contact_mobile',
'fieldtype': 'Text', 'fieldtype': u'Text',
'idx': 10, 'label': u'Mobile No',
'label': 'Mobile No',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'contact_email', 'fieldname': u'contact_email',
'fieldtype': 'Text', 'fieldtype': u'Text',
'idx': 11, 'label': u'Contact Email',
'label': 'Contact Email',
'permlevel': 1, 'permlevel': 1,
'print_hide': 1 'print_hide': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'territory', 'fieldname': u'territory',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 12,
'in_filter': 1, 'in_filter': 1,
'label': 'Territory', 'label': u'Territory',
'options': 'Territory', 'options': u'Territory',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
'reqd': 1, 'reqd': 1,
'search_index': 0 'search_index': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'customer_group', 'fieldname': u'customer_group',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 13, 'label': u'Customer Group',
'label': 'Customer Group', 'options': u'Customer Group',
'options': 'Customer Group',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1 'print_hide': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Column Break', 'fieldtype': u'Column Break',
'idx': 14, 'oldfieldtype': u'Column Break',
'oldfieldtype': 'Column Break',
'permlevel': 0, 'permlevel': 0,
'width': '50%' 'width': u'50%'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'inst_date', 'fieldname': u'inst_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'idx': 15, 'label': u'Installation Date',
'label': 'Installation Date', 'oldfieldname': u'inst_date',
'oldfieldname': 'inst_date', 'oldfieldtype': u'Date',
'oldfieldtype': 'Date',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1,
'search_index': 1 'search_index': 1
@ -298,28 +278,26 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'inst_time', 'fieldname': u'inst_time',
'fieldtype': 'Time', 'fieldtype': u'Time',
'idx': 16, 'label': u'Installation Time',
'label': 'Installation Time', 'oldfieldname': u'inst_time',
'oldfieldname': 'inst_time', 'oldfieldtype': u'Time',
'oldfieldtype': 'Time',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'default': 'Draft', 'default': u'Draft',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'status', 'fieldname': u'status',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 17, 'label': u'Status',
'label': 'Status',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'status', 'oldfieldname': u'status',
'oldfieldtype': 'Select', 'oldfieldtype': u'Select',
'options': 'Draft\nSubmitted\nCancelled', 'options': u'Draft\nSubmitted\nCancelled',
'permlevel': 1, 'permlevel': 1,
'print_hide': 1, 'print_hide': 1,
'reqd': 1 'reqd': 1
@ -327,35 +305,33 @@
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'description': 'Select the relevant company name if you have multiple companies.', 'description': u'Select the relevant company name if you have multiple companies.',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'company', 'fieldname': u'company',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 18,
'in_filter': 1, 'in_filter': 1,
'label': 'Company', 'label': u'Company',
'oldfieldname': 'company', 'oldfieldname': u'company',
'oldfieldtype': 'Select', 'oldfieldtype': u'Select',
'options': 'link:Company', 'options': u'link:Company',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
'reqd': 1, 'reqd': 1,
'search_index': 0, 'search_index': 0,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'fiscal_year', 'fieldname': u'fiscal_year',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 19,
'in_filter': 1, 'in_filter': 1,
'label': 'Fiscal Year', 'label': u'Fiscal Year',
'oldfieldname': 'fiscal_year', 'oldfieldname': u'fiscal_year',
'oldfieldtype': 'Select', 'oldfieldtype': u'Select',
'options': 'link:Fiscal Year', 'options': u'link:Fiscal Year',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
'reqd': 1 'reqd': 1
@ -363,117 +339,121 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'amended_from', 'fieldname': u'amended_from',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 20, 'label': u'Amended From',
'label': 'Amended From',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'amended_from', 'oldfieldname': u'amended_from',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'permlevel': 1, 'permlevel': 1,
'print_hide': 1 'print_hide': 1
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'description': 'The date at which current entry is corrected in the system.', 'description': u'The date at which current entry is corrected in the system.',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'amendment_date', 'fieldname': u'amendment_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'hidden': 1, 'hidden': 1,
'idx': 21, 'label': u'Amendment Date',
'label': 'Amendment Date',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'amendment_date', 'oldfieldname': u'amendment_date',
'oldfieldtype': 'Date', 'oldfieldtype': u'Date',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1 'print_hide': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'remarks', 'fieldname': u'remarks',
'fieldtype': 'Small Text', 'fieldtype': u'Small Text',
'idx': 22, 'label': u'Remarks',
'label': 'Remarks', 'oldfieldname': u'remarks',
'oldfieldname': 'remarks', 'oldfieldtype': u'Small Text',
'oldfieldtype': 'Small Text',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1 'print_hide': 1
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'cancel_reason', 'fieldname': u'cancel_reason',
'fieldtype': 'Data', 'fieldtype': u'Data',
'hidden': 1, 'hidden': 1,
'idx': 23, 'label': u'Cancel Reason',
'label': 'Cancel Reason',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'cancel_reason', 'oldfieldname': u'cancel_reason',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'permlevel': 1, 'permlevel': 1,
'print_hide': 1 'print_hide': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'idx': 24, 'label': u'Item Details',
'label': 'Item Details', 'oldfieldtype': u'Section Break',
'oldfieldtype': 'Section Break', 'options': u'Simple',
'options': 'Simple',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'delivery_note_no', 'fieldname': u'delivery_note_no',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 25, 'label': u'Delivery Note No',
'label': 'Delivery Note No',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'delivery_note_no', 'oldfieldname': u'delivery_note_no',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'Delivery Note', 'options': u'Delivery Note',
'permlevel': 0, 'permlevel': 0,
'print_hide': 0, 'print_hide': 0,
'reqd': 1, 'reqd': 1,
'search_index': 1, 'search_index': 1,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Button', 'fieldtype': u'Button',
'hidden': 0, 'hidden': 0,
'idx': 26, 'label': u'Get Items',
'label': 'Get Items', 'oldfieldtype': u'Button',
'oldfieldtype': 'Button', 'options': u'pull_delivery_note_details',
'options': 'pull_delivery_note_details',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1 'print_hide': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'installed_item_details', 'fieldtype': u'Button',
'fieldtype': 'Table', 'hidden': 0,
'idx': 27, 'label': u'Get Items',
'label': 'Installed Item Details', 'oldfieldtype': u'Button',
'oldfieldname': 'installed_item_details', 'options': u'pull_delivery_note_details',
'oldfieldtype': 'Table', 'permlevel': 0,
'options': 'Installed Item Details', 'print_hide': 1
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'installed_item_details',
'fieldtype': u'Table',
'label': u'Installed Item Details',
'oldfieldname': u'installed_item_details',
'oldfieldtype': u'Table',
'options': u'Installed Item Details',
'permlevel': 0 'permlevel': 0
} }
] ]

View File

@ -5,154 +5,148 @@
{ {
'creation': '2010-08-08 17:09:05', 'creation': '2010-08-08 17:09:05',
'docstatus': 0, 'docstatus': 0,
'modified': '2010-09-20 14:06:57', 'modified': '2012-03-21 14:52:10',
'modified_by': 'abhishek@webnotestech.com', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'autoname': 'IID/.#####', 'autoname': u'IID/.#####',
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'istable': 1, 'istable': 1,
'module': 'Selling', 'module': u'Selling',
'name': '__common__', 'name': '__common__',
'section_style': 'Simple', 'section_style': u'Simple',
'server_code_error': ' ', 'server_code_error': u' ',
'version': 24 'show_in_menu': 0,
'version': 25
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Installed Item Details', 'parent': u'Installed Item Details',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType' 'parenttype': u'DocType'
}, },
# DocType, Installed Item Details # DocType, Installed Item Details
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Installed Item Details' 'name': u'Installed Item Details'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'item_code', 'fieldname': u'item_code',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 1, 'label': u'Item Code',
'label': 'Item Code', 'oldfieldname': u'item_code',
'oldfieldname': 'item_code', 'oldfieldtype': u'Link',
'oldfieldtype': 'Link', 'options': u'Item',
'options': 'Item',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'description', 'fieldname': u'description',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 2, 'label': u'Description',
'label': 'Description', 'oldfieldname': u'description',
'oldfieldname': 'description', 'oldfieldtype': u'Data',
'oldfieldtype': 'Data',
'permlevel': 1, 'permlevel': 1,
'width': '300px' 'width': u'300px'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'prevdoc_date', 'fieldname': u'prevdoc_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'hidden': 0, 'hidden': 0,
'idx': 3, 'label': u'Delivery Date',
'label': 'Delivery Date', 'oldfieldname': u'prevdoc_date',
'oldfieldname': 'prevdoc_date', 'oldfieldtype': u'Date',
'oldfieldtype': 'Date',
'permlevel': 1, 'permlevel': 1,
'print_hide': 0 'print_hide': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'serial_no', 'fieldname': u'serial_no',
'fieldtype': 'Small Text', 'fieldtype': u'Small Text',
'idx': 5, 'label': u'Serial No',
'label': 'Serial No', 'oldfieldname': u'serial_no',
'oldfieldname': 'serial_no', 'oldfieldtype': u'Small Text',
'oldfieldtype': 'Small Text',
'permlevel': 0, 'permlevel': 0,
'width': '180px' 'width': u'180px'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'prevdoc_detail_docname', 'fieldname': u'prevdoc_detail_docname',
'fieldtype': 'Data', 'fieldtype': u'Data',
'hidden': 1, 'hidden': 1,
'idx': 6, 'label': u'Against Document Detail No',
'label': 'Against Document Detail No',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'prevdoc_detail_docname', 'oldfieldname': u'prevdoc_detail_docname',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'permlevel': 1, 'permlevel': 1,
'print_hide': 1, 'print_hide': 1,
'width': '150px' 'width': u'150px'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'prevdoc_docname', 'fieldname': u'prevdoc_docname',
'fieldtype': 'Data', 'fieldtype': u'Data',
'hidden': 1, 'hidden': 1,
'idx': 7,
'in_filter': 1, 'in_filter': 1,
'label': 'Against Document No', 'label': u'Against Document No',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'prevdoc_docname', 'oldfieldname': u'prevdoc_docname',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'permlevel': 1, 'permlevel': 1,
'print_hide': 1, 'print_hide': 1,
'search_index': 1, 'search_index': 1,
'width': '150px' 'width': u'150px'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'prevdoc_doctype', 'fieldname': u'prevdoc_doctype',
'fieldtype': 'Data', 'fieldtype': u'Data',
'hidden': 1, 'hidden': 1,
'idx': 8,
'in_filter': 1, 'in_filter': 1,
'label': 'Document Type', 'label': u'Document Type',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'prevdoc_doctype', 'oldfieldname': u'prevdoc_doctype',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'permlevel': 1, 'permlevel': 1,
'print_hide': 1, 'print_hide': 1,
'search_index': 0, 'search_index': 1,
'width': '150px' 'width': u'150px'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'qty', 'fieldname': u'qty',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'idx': 9, 'label': u'Installed Qty',
'label': 'Installed Qty', 'oldfieldname': u'qty',
'oldfieldname': 'qty', 'oldfieldtype': u'Currency',
'oldfieldtype': 'Currency',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
} }

File diff suppressed because it is too large Load Diff

View File

@ -1 +0,0 @@
[{'section_style': 'Simple', 'is_transaction_doc': None, 'creation': '2009-10-06 12:12:21', 'search_fields': None, 'module': 'CRM', 'doctype': 'DocType', 'change_log': None, 'print_outline': '', 'owner': 'Administrator', 'in_dialog': None, 'in_create': None, 'read_only': None, 'allow_email': None, 'dt_template': None, 'hide_heading': None, 'issingle': None, 'allow_rename': None, 'smallicon': None, 'allow_attach': None, 'show_in_menu': 0, 'max_attachments': None, 'version': 2, 'menu_index': None, 'docstatus': 0, 'allow_copy': None, 'istable': 1, 'description': None, 'parent': None, 'server_code': None, 'allow_trash': None, 'allow_print': None, 'autoname': None, 'client_script_core': None, 'client_string': None, 'use_template': None, 'modified_by': 'Administrator', 'document_type': None, 'name': 'Lead Attachment Detail', 'idx': None, 'hide_toolbar': None, 'colour': 'White:FFF', 'client_script': None, 'modified': '2010-09-20 14:06:57', 'server_code_error': ' ', 'name_case': '', 'parenttype': None, 'read_only_onload': None, 'server_code_core': None, 'server_code_compiled': None, 'parent_node': None, 'parentfield': None}, {'no_copy': None, 'oldfieldtype': 'Link', 'creation': '2009-10-06 12:12:21', 'doctype': 'DocField', 'oldfieldname': 'select_file', 'owner': 'Administrator', 'reqd': None, 'in_filter': None, 'print_hide': None, 'modified_by': 'Administrator', 'label': 'Select File For Attachment', 'width': '200px', 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'Lead Attachment Detail', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL03137', 'idx': 1, 'default': None, 'colour': None, 'modified': '2009-10-06 12:35:51', 'parenttype': 'DocType', 'fieldname': 'select_file', 'fieldtype': 'Link', 'options': 'File', 'report_hide': None, 'parentfield': 'fields'}]

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
[{'section_style': 'Simple', 'is_transaction_doc': None, 'creation': '2009-10-06 12:10:26', 'search_fields': None, 'module': 'CRM', 'doctype': 'DocType', 'change_log': None, 'print_outline': '', 'owner': 'Administrator', 'in_dialog': None, 'in_create': None, 'read_only': None, 'allow_email': None, 'dt_template': None, 'hide_heading': None, 'issingle': None, 'allow_rename': None, 'smallicon': None, 'allow_attach': None, 'show_in_menu': 0, 'max_attachments': None, 'version': 2, 'menu_index': None, 'docstatus': 0, 'allow_copy': None, 'istable': 1, 'description': None, 'parent': None, 'server_code': None, 'allow_trash': None, 'allow_print': None, 'autoname': None, 'client_script_core': None, 'client_string': None, 'use_template': None, 'modified_by': 'Administrator', 'document_type': None, 'name': 'Lead SMS Detail', 'idx': None, 'hide_toolbar': None, 'colour': 'White:FFF', 'client_script': None, 'modified': '2010-09-20 14:06:57', 'server_code_error': ' ', 'name_case': '', 'parenttype': None, 'read_only_onload': None, 'server_code_core': None, 'server_code_compiled': None, 'parent_node': None, 'parentfield': None}, {'no_copy': None, 'oldfieldtype': 'Data', 'creation': '2009-10-06 12:10:26', 'doctype': 'DocField', 'oldfieldname': 'other_mobile_no', 'owner': 'Administrator', 'reqd': None, 'in_filter': None, 'print_hide': None, 'modified_by': 'Administrator', 'label': 'Mobile No', 'width': '200px', 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'Lead SMS Detail', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL03136', 'idx': 1, 'default': None, 'colour': None, 'modified': '2009-10-06 17:26:45', 'parenttype': 'DocType', 'fieldname': 'other_mobile_no', 'fieldtype': 'Data', 'options': None, 'report_hide': None, 'parentfield': 'fields'}]

View File

@ -515,7 +515,7 @@ class DocType(TransactionBase):
dt = webnotes.conn.sql("select posting_date from `tab%s` where name = '%s'" % (d.prevdoc_doctype, d.prevdoc_docname)) dt = webnotes.conn.sql("select posting_date from `tab%s` where name = '%s'" % (d.prevdoc_doctype, d.prevdoc_docname))
else: else:
dt = webnotes.conn.sql("select transaction_date from `tab%s` where name = '%s'" % (d.prevdoc_doctype, d.prevdoc_docname)) dt = webnotes.conn.sql("select transaction_date from `tab%s` where name = '%s'" % (d.prevdoc_doctype, d.prevdoc_docname))
d.prevdoc_date = dt and dt[0][0].strftime('%Y-%m-%d') or '' d.prevdoc_date = (dt and dt[0][0]) and dt[0][0].strftime('%Y-%m-%d') or ''
def update_prevdoc_detail(self, is_submit, obj): def update_prevdoc_detail(self, is_submit, obj):
StatusUpdater(obj, is_submit).update() StatusUpdater(obj, is_submit).update()

View File

@ -5,66 +5,66 @@
{ {
'creation': '2011-01-11 17:52:26', 'creation': '2011-01-11 17:52:26',
'docstatus': 0, 'docstatus': 0,
'modified': '2011-02-15 17:06:33', 'modified': '2012-03-21 13:06:26',
'modified_by': 'Administrator', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'_last_update': '1300788634', '_last_update': u'1322549700',
'allow_attach': 0, 'allow_attach': 0,
'allow_copy': 1, 'allow_copy': 1,
'allow_email': 1, 'allow_email': 1,
'allow_print': 1, 'allow_print': 1,
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'hide_heading': 0, 'hide_heading': 0,
'hide_toolbar': 0, 'hide_toolbar': 0,
'in_create': 0, 'in_create': 0,
'issingle': 1, 'issingle': 1,
'menu_index': 4, 'menu_index': 4,
'module': 'Selling', 'module': u'Selling',
'name': '__common__', 'name': '__common__',
'read_only': 1, 'read_only': 1,
'section_style': 'Simple', 'section_style': u'Simple',
'server_code_error': ' ', 'server_code_error': u' ',
'show_in_menu': 1, 'show_in_menu': 1,
'version': 39 'version': 41
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'SMS Center', 'parent': u'SMS Center',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType', 'parenttype': u'DocType',
'permlevel': 0 'permlevel': 0
}, },
# These values are common for all DocPerm # These values are common for all DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'name': '__common__', 'name': '__common__',
'parent': 'SMS Center', 'parent': u'SMS Center',
'parentfield': 'permissions', 'parentfield': u'permissions',
'parenttype': 'DocType', 'parenttype': u'DocType',
'read': 1, 'read': 1,
'role': 'System Manager' 'role': u'System Manager'
}, },
# DocType, SMS Center # DocType, SMS Center
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'SMS Center' 'name': u'SMS Center'
}, },
# DocPerm # DocPerm
{ {
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 1,
'permlevel': 0, 'permlevel': 0,
'write': 1 'write': 1
}, },
@ -72,124 +72,112 @@
# DocPerm # DocPerm
{ {
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 2,
'permlevel': 1, 'permlevel': 1,
'write': 0 'write': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'column_break1', 'fieldname': u'column_break1',
'fieldtype': 'Column Break', 'fieldtype': u'Column Break',
'idx': 1, 'width': u'50%'
'width': '50%'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'send_to', 'fieldname': u'send_to',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 2, 'label': u'Send To',
'label': 'Send To', 'options': u'\nAll Contact\nAll Customer Contact\nAll Supplier Contact\nAll Sales Partner Contact\nAll Lead (Open)\nAll Employee (Active)\nAll Sales Person',
'options': '\nAll Contact\nAll Customer Contact\nAll Supplier Contact\nAll Sales Partner Contact\nAll Lead (Open)\nAll Employee (Active)\nAll Sales Person', 'trigger': u'Client'
'trigger': 'Client'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'depends_on': "eval:doc.send_to=='All Customer Contact'", 'depends_on': u"eval:doc.send_to=='All Customer Contact'",
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'customer', 'fieldname': u'customer',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 3, 'label': u'Customer',
'label': 'Customer', 'options': u'Customer'
'options': 'Customer'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'depends_on': "eval:doc.send_to=='All Supplier Contact'", 'depends_on': u"eval:doc.send_to=='All Supplier Contact'",
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'supplier', 'fieldname': u'supplier',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 4, 'label': u'Supplier',
'label': 'Supplier', 'options': u'Supplier'
'options': 'Supplier'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'depends_on': "eval:doc.send_to=='All Employee (Active)'", 'depends_on': u"eval:doc.send_to=='All Employee (Active)'",
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'department', 'fieldname': u'department',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 5, 'label': u'Department',
'label': 'Department', 'options': u'link:Department'
'options': 'link:Department'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'depends_on': "eval:doc.send_to=='All Employee (Active)'", 'depends_on': u"eval:doc.send_to=='All Employee (Active)'",
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'branch', 'fieldname': u'branch',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 6, 'label': u'Branch',
'label': 'Branch', 'options': u'link:Branch'
'options': 'link:Branch'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Button', 'fieldtype': u'Button',
'idx': 7, 'label': u'Create Receiver List',
'label': 'Create Receiver List', 'options': u'create_receiver_list'
'options': 'create_receiver_list'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'receiver_list', 'fieldname': u'receiver_list',
'fieldtype': 'Code', 'fieldtype': u'Code',
'idx': 8, 'label': u'Receiver List'
'label': 'Receiver List'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'column_break9', 'fieldname': u'column_break9',
'fieldtype': 'Column Break', 'fieldtype': u'Column Break',
'idx': 9, 'width': u'50%'
'width': '50%'
}, },
# DocField # DocField
{ {
'description': 'Message greater than 160 character will be splitted into multiple mesage', 'description': u'Message greater than 160 character will be splitted into multiple mesage',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'message', 'fieldname': u'message',
'fieldtype': 'Text', 'fieldtype': u'Text',
'idx': 10, 'label': u'Message',
'label': 'Message',
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Button', 'fieldtype': u'Button',
'idx': 11, 'label': u'Send SMS',
'label': 'Send SMS', 'options': u'send_sms'
'options': 'send_sms'
} }
] ]

View File

@ -5,45 +5,47 @@
{ {
'creation': '2010-08-08 17:08:57', 'creation': '2010-08-08 17:08:57',
'docstatus': 0, 'docstatus': 0,
'modified': '2010-09-20 14:06:57', 'modified': '2012-03-21 14:52:40',
'modified_by': 'yogesh@webnotestech.com', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'_last_update': u'1294214943',
'allow_trash': 1, 'allow_trash': 1,
'autoname': 'field:customer_group_name', 'autoname': u'field:customer_group_name',
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'document_type': 'Master', 'document_type': u'Master',
'in_create': 1, 'in_create': 1,
'module': 'Setup', 'module': u'Setup',
'name': '__common__', 'name': '__common__',
'search_fields': 'name,parent_customer_group', 'search_fields': u'name,parent_customer_group',
'section_style': 'Simple', 'section_style': u'Simple',
'server_code_error': ' ', 'server_code_error': u' ',
'show_in_menu': 0, 'show_in_menu': 0,
'version': 33 'version': 34
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Customer Group', 'parent': u'Customer Group',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType' 'parenttype': u'DocType'
}, },
# These values are common for all DocPerm # These values are common for all DocPerm
{ {
'amend': 0, 'amend': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'name': '__common__', 'name': '__common__',
'parent': 'Customer Group', 'parent': u'Customer Group',
'parentfield': 'permissions', 'parentfield': u'permissions',
'parenttype': 'DocType', 'parenttype': u'DocType',
'read': 1, 'read': 1,
'submit': 0 'submit': 0
}, },
@ -51,17 +53,16 @@
# DocType, Customer Group # DocType, Customer Group
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Customer Group' 'name': u'Customer Group'
}, },
# DocPerm # DocPerm
{ {
'cancel': 0, 'cancel': 0,
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 1,
'permlevel': 1, 'permlevel': 1,
'role': 'Sales Manager', 'role': u'Sales Manager',
'write': 0 'write': 0
}, },
@ -69,10 +70,9 @@
{ {
'cancel': 0, 'cancel': 0,
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 2,
'permlevel': 0, 'permlevel': 0,
'role': 'Sales Manager', 'role': u'Sales Manager',
'write': 0 'write': 0
}, },
@ -80,10 +80,9 @@
{ {
'cancel': 0, 'cancel': 0,
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 3,
'permlevel': 1, 'permlevel': 1,
'role': 'Sales Master Manager', 'role': u'Sales Master Manager',
'write': 0 'write': 0
}, },
@ -91,10 +90,9 @@
{ {
'cancel': 0, 'cancel': 0,
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 4,
'permlevel': 1, 'permlevel': 1,
'role': 'Sales User', 'role': u'Sales User',
'write': 0 'write': 0
}, },
@ -102,10 +100,9 @@
{ {
'cancel': 0, 'cancel': 0,
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 5,
'permlevel': 0, 'permlevel': 0,
'role': 'Sales User', 'role': u'Sales User',
'write': 0 'write': 0
}, },
@ -113,95 +110,88 @@
{ {
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 6,
'permlevel': 0, 'permlevel': 0,
'role': 'Sales Master Manager', 'role': u'Sales Master Manager',
'write': 1 'write': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'trash_reason', 'fieldname': u'trash_reason',
'fieldtype': 'Small Text', 'fieldtype': u'Small Text',
'idx': 1, 'label': u'Trash Reason',
'label': 'Trash Reason', 'oldfieldname': u'trash_reason',
'oldfieldname': 'trash_reason', 'oldfieldtype': u'Small Text',
'oldfieldtype': 'Small Text',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'customer_group_name', 'fieldname': u'customer_group_name',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 2, 'label': u'Customer Group Name',
'label': 'Customer Group Name',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'customer_group_name', 'oldfieldname': u'customer_group_name',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'description', 'fieldname': u'description',
'fieldtype': 'Text', 'fieldtype': u'Text',
'idx': 3, 'label': u'Description',
'label': 'Description', 'oldfieldname': u'description',
'oldfieldname': 'description', 'oldfieldtype': u'Text',
'oldfieldtype': 'Text',
'permlevel': 0, 'permlevel': 0,
'width': '300px' 'width': u'300px'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'parent_customer_group', 'fieldname': u'parent_customer_group',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 4, 'label': u'Parent Customer Group',
'label': 'Parent Customer Group', 'oldfieldname': u'parent_customer_group',
'oldfieldname': 'parent_customer_group', 'oldfieldtype': u'Link',
'oldfieldtype': 'Link', 'options': u'Customer Group',
'options': 'Customer Group',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'description': 'Only leaf nodes are allowed in transaction', 'description': u'Only leaf nodes are allowed in transaction',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'is_group', 'fieldname': u'is_group',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 5, 'label': u'Has Child Node',
'label': 'Has Child Node', 'oldfieldname': u'is_group',
'oldfieldname': 'is_group', 'oldfieldtype': u'Select',
'oldfieldtype': 'Select', 'options': u'\nYes\nNo',
'options': '\nYes\nNo',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'lft', 'fieldname': u'lft',
'fieldtype': 'Int', 'fieldtype': u'Int',
'hidden': 1, 'hidden': 1,
'idx': 6, 'label': u'lft',
'label': 'lft',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'lft', 'oldfieldname': u'lft',
'oldfieldtype': 'Int', 'oldfieldtype': u'Int',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
'report_hide': 1, 'report_hide': 1,
@ -210,15 +200,14 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'rgt', 'fieldname': u'rgt',
'fieldtype': 'Int', 'fieldtype': u'Int',
'hidden': 1, 'hidden': 1,
'idx': 7, 'label': u'rgt',
'label': 'rgt',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'rgt', 'oldfieldname': u'rgt',
'oldfieldtype': 'Int', 'oldfieldtype': u'Int',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
'report_hide': 1, 'report_hide': 1,
@ -227,15 +216,15 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'old_parent', 'fieldname': u'old_parent',
'fieldtype': 'Data', 'fieldtype': u'Link',
'hidden': 1, 'hidden': 1,
'idx': 8, 'label': u'old_parent',
'label': 'old_parent',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'old_parent', 'oldfieldname': u'old_parent',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'options': u'Customer Group',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
'report_hide': 1 'report_hide': 1

View File

@ -5,7 +5,7 @@
{ {
'creation': '2010-08-08 17:09:06', 'creation': '2010-08-08 17:09:06',
'docstatus': 0, 'docstatus': 0,
'modified': '2012-02-06 17:38:00', 'modified': '2012-03-22 14:40:03',
'modified_by': u'Administrator', 'modified_by': u'Administrator',
'owner': u'Administrator' 'owner': u'Administrator'
}, },
@ -27,7 +27,7 @@
'section_style': u'Simple', 'section_style': u'Simple',
'server_code_error': u' ', 'server_code_error': u' ',
'show_in_menu': 0, 'show_in_menu': 0,
'version': 58 'version': 59
}, },
# These values are common for all DocField # These values are common for all DocField
@ -129,10 +129,12 @@
'fieldname': u'item_group_name', 'fieldname': u'item_group_name',
'fieldtype': u'Data', 'fieldtype': u'Data',
'label': u'Item Group Name', 'label': u'Item Group Name',
'no_copy': 0,
'oldfieldname': u'item_group_name', 'oldfieldname': u'item_group_name',
'oldfieldtype': u'Data', 'oldfieldtype': u'Data',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1,
'search_index': 0
}, },
# DocField # DocField
@ -141,9 +143,11 @@
'fieldname': u'description', 'fieldname': u'description',
'fieldtype': u'Text', 'fieldtype': u'Text',
'label': u'Description', 'label': u'Description',
'no_copy': 0,
'oldfieldname': u'description', 'oldfieldname': u'description',
'oldfieldtype': u'Text', 'oldfieldtype': u'Text',
'permlevel': 0, 'permlevel': 0,
'search_index': 0,
'width': u'300px' 'width': u'300px'
}, },
@ -155,7 +159,22 @@
'fieldname': u'show_in_website', 'fieldname': u'show_in_website',
'fieldtype': u'Check', 'fieldtype': u'Check',
'label': u'Show in Website', 'label': u'Show in Website',
'permlevel': 0 'no_copy': 0,
'permlevel': 0,
'search_index': 0
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'show_in_catalogue',
'fieldtype': u'Check',
'label': u'Show in catalogue',
'no_copy': 0,
'oldfieldname': u'show_in_catalogue',
'oldfieldtype': u'Check',
'permlevel': 0,
'search_index': 0
}, },
# DocField # DocField
@ -164,11 +183,13 @@
'fieldname': u'parent_item_group', 'fieldname': u'parent_item_group',
'fieldtype': u'Link', 'fieldtype': u'Link',
'label': u'Parent Item Group', 'label': u'Parent Item Group',
'no_copy': 0,
'oldfieldname': u'parent_item_group', 'oldfieldname': u'parent_item_group',
'oldfieldtype': u'Link', 'oldfieldtype': u'Link',
'options': u'Item Group', 'options': u'Item Group',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1,
'search_index': 0,
'trigger': u'Client' 'trigger': u'Client'
}, },
@ -180,11 +201,13 @@
'fieldname': u'is_group', 'fieldname': u'is_group',
'fieldtype': u'Select', 'fieldtype': u'Select',
'label': u'Has Child Node', 'label': u'Has Child Node',
'no_copy': 0,
'oldfieldname': u'is_group', 'oldfieldname': u'is_group',
'oldfieldtype': u'Select', 'oldfieldtype': u'Select',
'options': u'\nYes\nNo', 'options': u'\nYes\nNo',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1,
'search_index': 0
}, },
# DocField # DocField
@ -193,9 +216,11 @@
'fieldname': u'trash_reason', 'fieldname': u'trash_reason',
'fieldtype': u'Small Text', 'fieldtype': u'Small Text',
'label': u'Trash Reason', 'label': u'Trash Reason',
'no_copy': 0,
'oldfieldname': u'trash_reason', 'oldfieldname': u'trash_reason',
'oldfieldtype': u'Small Text', 'oldfieldtype': u'Small Text',
'permlevel': 1 'permlevel': 1,
'search_index': 0
}, },
# DocField # DocField
@ -245,6 +270,7 @@
'options': u'Item Group', 'options': u'Item Group',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
'report_hide': 1 'report_hide': 1,
'search_index': 0
} }
] ]

View File

@ -5,79 +5,78 @@
{ {
'creation': '2010-12-14 10:23:17', 'creation': '2010-12-14 10:23:17',
'docstatus': 0, 'docstatus': 0,
'modified': '2010-09-20 14:06:57', 'modified': '2012-03-21 14:53:21',
'modified_by': 'yogesh@webnotestech.com', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'autoname': '__NSO.#####', 'autoname': u'__NSO.#####',
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'in_create': 1, 'in_create': 1,
'module': 'Setup', 'module': u'Setup',
'name': '__common__', 'name': '__common__',
'read_only': 0, 'read_only': 0,
'section_style': 'Simple', 'section_style': u'Simple',
'server_code_error': ' ', 'server_code_error': u' ',
'version': 4 'show_in_menu': 0,
'version': 5
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Naming Series Options', 'parent': u'Naming Series Options',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType', 'parenttype': u'DocType',
'permlevel': 0 'permlevel': 0
}, },
# These values are common for all DocPerm # These values are common for all DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 1,
'name': '__common__', 'name': '__common__',
'parent': 'Naming Series Options', 'parent': u'Naming Series Options',
'parentfield': 'permissions', 'parentfield': u'permissions',
'parenttype': 'DocType', 'parenttype': u'DocType',
'permlevel': 0, 'permlevel': 0,
'read': 1, 'read': 1,
'role': 'System Manager' 'role': u'System Manager'
}, },
# DocType, Naming Series Options # DocType, Naming Series Options
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Naming Series Options' 'name': u'Naming Series Options'
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm' 'doctype': u'DocPerm'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'doc_type', 'fieldname': u'doc_type',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 1, 'label': u'Doc Type',
'label': 'Doc Type', 'oldfieldname': u'doc_type',
'oldfieldname': 'doc_type', 'oldfieldtype': u'Data',
'oldfieldtype': 'Data',
'search_index': 1 'search_index': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'series_options', 'fieldname': u'series_options',
'fieldtype': 'Text', 'fieldtype': u'Text',
'idx': 2, 'label': u'Series Options',
'label': 'Series Options', 'oldfieldname': u'series_options',
'oldfieldname': 'series_options', 'oldfieldtype': u'Text'
'oldfieldtype': 'Text'
} }
] ]

View File

@ -5,49 +5,51 @@
{ {
'creation': '2010-08-08 17:09:11', 'creation': '2010-08-08 17:09:11',
'docstatus': 0, 'docstatus': 0,
'modified': '2011-01-07 11:04:07', 'modified': '2012-03-21 14:51:06',
'modified_by': 'rakesh@iwebnotes.com', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'_last_update': u'1322549700',
'allow_trash': 1, 'allow_trash': 1,
'autoname': 'field:title', 'autoname': u'field:title',
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'document_type': 'Master', 'document_type': u'Master',
'module': 'Setup', 'module': u'Setup',
'name': '__common__', 'name': '__common__',
'section_style': 'Tabbed', 'section_style': u'Tabbed',
'server_code_error': ' ', 'server_code_error': u' ',
'show_in_menu': 0, 'show_in_menu': 0,
'version': 56 'version': 57
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Other Charges', 'parent': u'Other Charges',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType' 'parenttype': u'DocType'
}, },
# These values are common for all DocPerm # These values are common for all DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'name': '__common__', 'name': '__common__',
'parent': 'Other Charges', 'parent': u'Other Charges',
'parentfield': 'permissions', 'parentfield': u'permissions',
'parenttype': 'DocType', 'parenttype': u'DocType',
'read': 1 'read': 1
}, },
# DocType, Other Charges # DocType, Other Charges
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Other Charges' 'name': u'Other Charges'
}, },
# DocPerm # DocPerm
@ -55,10 +57,9 @@
'amend': 0, 'amend': 0,
'cancel': 0, 'cancel': 0,
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 1,
'permlevel': 1, 'permlevel': 1,
'role': 'Sales Master Manager', 'role': u'Sales Master Manager',
'submit': 0, 'submit': 0,
'write': 0 'write': 0
}, },
@ -68,10 +69,9 @@
'amend': 0, 'amend': 0,
'cancel': 0, 'cancel': 0,
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 2,
'permlevel': 1, 'permlevel': 1,
'role': 'Sales User', 'role': u'Sales User',
'submit': 0, 'submit': 0,
'write': 0 'write': 0
}, },
@ -81,10 +81,9 @@
'amend': 0, 'amend': 0,
'cancel': 0, 'cancel': 0,
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 3,
'permlevel': 0, 'permlevel': 0,
'role': 'Sales User', 'role': u'Sales User',
'submit': 0, 'submit': 0,
'write': 0 'write': 0
}, },
@ -94,10 +93,9 @@
'amend': 0, 'amend': 0,
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 4,
'permlevel': 0, 'permlevel': 0,
'role': 'Accounts Manager', 'role': u'Accounts Manager',
'submit': 0, 'submit': 0,
'write': 1 'write': 1
}, },
@ -106,10 +104,9 @@
{ {
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 5,
'permlevel': 0, 'permlevel': 0,
'role': 'System Manager', 'role': u'System Manager',
'write': 1 'write': 1
}, },
@ -118,46 +115,42 @@
'amend': 0, 'amend': 0,
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 6,
'permlevel': 0, 'permlevel': 0,
'role': 'Sales Master Manager', 'role': u'Sales Master Manager',
'submit': 0, 'submit': 0,
'write': 1 'write': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'trash_reason', 'fieldname': u'trash_reason',
'fieldtype': 'Small Text', 'fieldtype': u'Small Text',
'idx': 1, 'label': u'Trash Reason',
'label': 'Trash Reason', 'oldfieldname': u'trash_reason',
'oldfieldname': 'trash_reason', 'oldfieldtype': u'Small Text',
'oldfieldtype': 'Small Text',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'idx': 2, 'label': u'Other Charges Details',
'label': 'Other Charges Details', 'oldfieldtype': u'Section Break',
'oldfieldtype': 'Section Break',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'title', 'fieldname': u'title',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 3,
'in_filter': 1, 'in_filter': 1,
'label': 'Title', 'label': u'Title',
'oldfieldname': 'title', 'oldfieldname': u'title',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1,
'search_index': 0 'search_index': 0
@ -165,25 +158,23 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'is_default', 'fieldname': u'is_default',
'fieldtype': 'Check', 'fieldtype': u'Check',
'idx': 4, 'label': u'Default',
'label': 'Default',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'company', 'fieldname': u'company',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 5,
'in_filter': 1, 'in_filter': 1,
'label': 'Company', 'label': u'Company',
'oldfieldname': 'company', 'oldfieldname': u'company',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'Company', 'options': u'Company',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1,
'search_index': 0 'search_index': 0
@ -191,14 +182,13 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'other_charges', 'fieldname': u'other_charges',
'fieldtype': 'Table', 'fieldtype': u'Table',
'idx': 6, 'label': u'Other Charges',
'label': 'Other Charges', 'oldfieldname': u'other_charges',
'oldfieldname': 'other_charges', 'oldfieldtype': u'Table',
'oldfieldtype': 'Table', 'options': u'RV Tax Detail',
'options': 'RV Tax Detail',
'permlevel': 0 'permlevel': 0
} }
] ]

View File

@ -5,52 +5,53 @@
{ {
'creation': '2010-08-08 17:09:22', 'creation': '2010-08-08 17:09:22',
'docstatus': 0, 'docstatus': 0,
'modified': '2011-05-17 14:32:10', 'modified': '2012-03-21 14:53:54',
'modified_by': 'Administrator', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'_last_update': '1307707462', '_last_update': u'1322549700',
'allow_trash': 1, 'allow_trash': 1,
'autoname': 'field:partner_name', 'autoname': u'field:partner_name',
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'document_type': 'Master', 'document_type': u'Master',
'in_create': 0, 'in_create': 0,
'module': 'Setup', 'module': u'Setup',
'name': '__common__', 'name': '__common__',
'read_only': 0, 'read_only': 0,
'section_style': 'Tabbed', 'section_style': u'Tabbed',
'server_code_error': ' ', 'server_code_error': u' ',
'show_in_menu': 0, 'show_in_menu': 0,
'version': 72 'version': 73
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Sales Partner', 'parent': u'Sales Partner',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType' 'parenttype': u'DocType'
}, },
# These values are common for all DocPerm # These values are common for all DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'name': '__common__', 'name': '__common__',
'parent': 'Sales Partner', 'parent': u'Sales Partner',
'parentfield': 'permissions', 'parentfield': u'permissions',
'parenttype': 'DocType', 'parenttype': u'DocType',
'read': 1 'read': 1
}, },
# DocType, Sales Partner # DocType, Sales Partner
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Sales Partner' 'name': u'Sales Partner'
}, },
# DocPerm # DocPerm
@ -58,10 +59,9 @@
'amend': 0, 'amend': 0,
'cancel': 0, 'cancel': 0,
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 1,
'permlevel': 1, 'permlevel': 1,
'role': 'Sales Manager', 'role': u'Sales Manager',
'submit': 0, 'submit': 0,
'write': 0 'write': 0
}, },
@ -71,10 +71,9 @@
'amend': 0, 'amend': 0,
'cancel': 0, 'cancel': 0,
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 2,
'permlevel': 0, 'permlevel': 0,
'role': 'Sales Manager', 'role': u'Sales Manager',
'submit': 0, 'submit': 0,
'write': 0 'write': 0
}, },
@ -84,10 +83,9 @@
'amend': 0, 'amend': 0,
'cancel': 0, 'cancel': 0,
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 3,
'permlevel': 1, 'permlevel': 1,
'role': 'Sales User', 'role': u'Sales User',
'submit': 0, 'submit': 0,
'write': 0 'write': 0
}, },
@ -97,10 +95,9 @@
'amend': 0, 'amend': 0,
'cancel': 0, 'cancel': 0,
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 4,
'permlevel': 0, 'permlevel': 0,
'role': 'Sales User', 'role': u'Sales User',
'submit': 0, 'submit': 0,
'write': 0 'write': 0
}, },
@ -110,10 +107,9 @@
'amend': 0, 'amend': 0,
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 5,
'permlevel': 0, 'permlevel': 0,
'role': 'Sales Master Manager', 'role': u'Sales Master Manager',
'submit': 0, 'submit': 0,
'write': 1 'write': 1
}, },
@ -123,10 +119,9 @@
'amend': 0, 'amend': 0,
'cancel': 0, 'cancel': 0,
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 6,
'permlevel': 1, 'permlevel': 1,
'role': 'Sales Master Manager', 'role': u'Sales Master Manager',
'submit': 0, 'submit': 0,
'write': 0 'write': 0
}, },
@ -135,45 +130,41 @@
{ {
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 7,
'permlevel': 0, 'permlevel': 0,
'role': 'System Manager', 'role': u'System Manager',
'write': 1 'write': 1
}, },
# DocPerm # DocPerm
{ {
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 8,
'permlevel': 1, 'permlevel': 1,
'role': 'System Manager', 'role': u'System Manager',
'write': 0 'write': 0
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'description': 'Note: You Can Manage Multiple Address or Contacts via Addresses & Contacts', 'description': u'Note: You Can Manage Multiple Address or Contacts via Addresses & Contacts',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'idx': 1, 'label': u'Basic Info',
'label': 'Basic Info', 'oldfieldtype': u'Section Break',
'oldfieldtype': 'Section Break',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'partner_name', 'fieldname': u'partner_name',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 2,
'in_filter': 1, 'in_filter': 1,
'label': 'Sales Partner Name', 'label': u'Sales Partner Name',
'oldfieldname': 'partner_name', 'oldfieldname': u'partner_name',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1,
'search_index': 1 'search_index': 1
@ -181,193 +172,176 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'partner_type', 'fieldname': u'partner_type',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 3,
'in_filter': 1, 'in_filter': 1,
'label': 'Partner Type', 'label': u'Partner Type',
'oldfieldname': 'partner_type', 'oldfieldname': u'partner_type',
'oldfieldtype': 'Select', 'oldfieldtype': u'Select',
'options': '\nChannel Partner\nDistributor\nDealer\nAgent\nRetailer\nImplementation Partner\nReseller', 'options': u'\nChannel Partner\nDistributor\nDealer\nAgent\nRetailer\nImplementation Partner\nReseller',
'permlevel': 0, 'permlevel': 0,
'search_index': 0 'search_index': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Column Break', 'fieldtype': u'Column Break',
'idx': 4, 'oldfieldtype': u'Column Break',
'oldfieldtype': 'Column Break',
'permlevel': 0, 'permlevel': 0,
'width': '50%' 'width': u'50%'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'commission_rate', 'fieldname': u'commission_rate',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'idx': 5, 'label': u'Commission Rate',
'label': 'Commission Rate', 'oldfieldname': u'commission_rate',
'oldfieldname': 'commission_rate', 'oldfieldtype': u'Currency',
'oldfieldtype': 'Currency',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'territory', 'fieldname': u'territory',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 6, 'label': u'Territory',
'label': 'Territory', 'options': u'Territory',
'options': 'Territory',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'idx': 7, 'label': u'Address & Contacts',
'label': 'Address & Contacts',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'depends_on': 'eval:doc.__islocal', 'depends_on': u'eval:doc.__islocal',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'HTML', 'fieldtype': u'HTML',
'idx': 8, 'label': u'Address Desc',
'label': 'Address Desc', 'options': u'<em>Addresses will appear only when you save the customer</em>',
'options': '<em>Addresses will appear only when you save the customer</em>',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'HTML', 'fieldtype': u'HTML',
'idx': 9, 'label': u'Address HTML',
'label': 'Address HTML',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Column Break', 'fieldtype': u'Column Break',
'idx': 10,
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'depends_on': 'eval:doc.__islocal', 'depends_on': u'eval:doc.__islocal',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'HTML', 'fieldtype': u'HTML',
'idx': 11, 'label': u'Contact Desc',
'label': 'Contact Desc', 'options': u'<em>Contact Details will appear only when you save the customer</em>',
'options': '<em>Contact Details will appear only when you save the customer</em>',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'HTML', 'fieldtype': u'HTML',
'idx': 12, 'label': u'Contact HTML',
'label': 'Contact HTML',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'idx': 13, 'label': u'Partner Target Details',
'label': 'Partner Target Details', 'oldfieldtype': u'Section Break',
'oldfieldtype': 'Section Break',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'distribution_id', 'fieldname': u'distribution_id',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 14, 'label': u'Distribution Id',
'label': 'Distribution Id', 'oldfieldname': u'distribution_id',
'oldfieldname': 'distribution_id', 'oldfieldtype': u'Link',
'oldfieldtype': 'Link', 'options': u'Budget Distribution',
'options': 'Budget Distribution',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'partner_target_details', 'fieldname': u'partner_target_details',
'fieldtype': 'Table', 'fieldtype': u'Table',
'idx': 15, 'label': u'Partner Target Detail',
'label': 'Partner Target Detail', 'oldfieldname': u'partner_target_details',
'oldfieldname': 'partner_target_details', 'oldfieldtype': u'Table',
'oldfieldtype': 'Table', 'options': u'Target Detail',
'options': 'Target Detail',
'permlevel': 0, 'permlevel': 0,
'reqd': 0 'reqd': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'HTML', 'fieldtype': u'HTML',
'hidden': 1, 'hidden': 1,
'idx': 16, 'label': u'Manage HTML',
'label': 'Manage HTML', 'oldfieldtype': u'HTML',
'oldfieldtype': 'HTML',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1 'print_hide': 1
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'depends_on': 'eval:!doc.__islocal', 'depends_on': u'eval:!doc.__islocal',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'idx': 17, 'label': u'Transaction History',
'label': 'Transaction History', 'oldfieldtype': u'Section Break',
'oldfieldtype': 'Section Break',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'HTML', 'fieldtype': u'HTML',
'idx': 18, 'label': u'History HTML',
'label': 'History HTML', 'oldfieldtype': u'HTML',
'oldfieldtype': 'HTML',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'trash_reason', 'fieldname': u'trash_reason',
'fieldtype': 'Small Text', 'fieldtype': u'Small Text',
'idx': 19, 'label': u'Trash Reason',
'label': 'Trash Reason', 'oldfieldname': u'trash_reason',
'oldfieldname': 'trash_reason', 'oldfieldtype': u'Small Text',
'oldfieldtype': 'Small Text',
'permlevel': 1 'permlevel': 1
} }
] ]

View File

@ -5,48 +5,51 @@
{ {
'creation': '2010-08-08 17:09:27', 'creation': '2010-08-08 17:09:27',
'docstatus': 0, 'docstatus': 0,
'modified': '2010-09-20 14:06:57', 'modified': '2012-03-21 14:54:12',
'modified_by': 'yogesh@webnotestech.com', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'_last_update': u'1322549700',
'allow_trash': 1, 'allow_trash': 1,
'autoname': 'field:title', 'autoname': u'field:title',
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'document_type': 'Master', 'document_type': u'Master',
'module': 'Setup', 'module': u'Setup',
'name': '__common__', 'name': '__common__',
'section_style': 'Simple', 'section_style': u'Simple',
'server_code_error': ' ', 'server_code_error': u' ',
'version': 10 'show_in_menu': 0,
'version': 11
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Term', 'parent': u'Term',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType' 'parenttype': u'DocType'
}, },
# These values are common for all DocPerm # These values are common for all DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'name': '__common__', 'name': '__common__',
'parent': 'Term', 'parent': u'Term',
'parentfield': 'permissions', 'parentfield': u'permissions',
'parenttype': 'DocType', 'parenttype': u'DocType',
'read': 1 'read': 1
}, },
# DocType, Term # DocType, Term
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Term' 'name': u'Term'
}, },
# DocPerm # DocPerm
@ -54,10 +57,9 @@
'amend': 0, 'amend': 0,
'cancel': 0, 'cancel': 0,
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 1,
'permlevel': 1, 'permlevel': 1,
'role': 'Sales Master Manager', 'role': u'Sales Master Manager',
'submit': 0, 'submit': 0,
'write': 0 'write': 0
}, },
@ -67,10 +69,9 @@
'amend': 0, 'amend': 0,
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 2,
'permlevel': 0, 'permlevel': 0,
'role': 'Sales Master Manager', 'role': u'Sales Master Manager',
'submit': 0, 'submit': 0,
'write': 1 'write': 1
}, },
@ -80,10 +81,9 @@
'amend': 0, 'amend': 0,
'cancel': 0, 'cancel': 0,
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 3,
'permlevel': 1, 'permlevel': 1,
'role': 'Sales User', 'role': u'Sales User',
'submit': 0, 'submit': 0,
'write': 0 'write': 0
}, },
@ -93,30 +93,27 @@
'amend': 0, 'amend': 0,
'cancel': 0, 'cancel': 0,
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 4,
'permlevel': 0, 'permlevel': 0,
'role': 'Sales User', 'role': u'Sales User',
'submit': 0, 'submit': 0,
'write': 0 'write': 0
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 5,
'permlevel': 1, 'permlevel': 1,
'role': 'All' 'role': u'All'
}, },
# DocPerm # DocPerm
{ {
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 6,
'permlevel': 0, 'permlevel': 0,
'role': 'System Manager', 'role': u'System Manager',
'write': 1 'write': 1
}, },
@ -124,35 +121,32 @@
{ {
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 7,
'permlevel': 0, 'permlevel': 0,
'role': 'Accounts User', 'role': u'Accounts User',
'write': 1 'write': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'trash_reason', 'fieldname': u'trash_reason',
'fieldtype': 'Small Text', 'fieldtype': u'Small Text',
'idx': 1, 'label': u'Trash Reason',
'label': 'Trash Reason', 'oldfieldname': u'trash_reason',
'oldfieldname': 'trash_reason', 'oldfieldtype': u'Small Text',
'oldfieldtype': 'Small Text',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'title', 'fieldname': u'title',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 2,
'in_filter': 1, 'in_filter': 1,
'label': 'Title', 'label': u'Title',
'oldfieldname': 'title', 'oldfieldname': u'title',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1,
'search_index': 0 'search_index': 0
@ -160,13 +154,12 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'terms', 'fieldname': u'terms',
'fieldtype': 'Text Editor', 'fieldtype': u'Text Editor',
'idx': 3, 'label': u'Terms',
'label': 'Terms', 'oldfieldname': u'terms',
'oldfieldname': 'terms', 'oldfieldtype': u'Text Editor',
'oldfieldtype': 'Text Editor',
'permlevel': 0 'permlevel': 0
} }
] ]

View File

@ -5,47 +5,48 @@
{ {
'creation': '2010-08-08 17:09:28', 'creation': '2010-08-08 17:09:28',
'docstatus': 0, 'docstatus': 0,
'modified': '2010-12-24 12:09:17', 'modified': '2012-03-21 14:46:04',
'modified_by': 'abhishek@webnotestech.com', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'_last_update': '1307707462', '_last_update': u'1311621379',
'allow_trash': 1, 'allow_trash': 1,
'autoname': 'field:territory_name', 'autoname': u'field:territory_name',
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'document_type': 'Master', 'document_type': u'Master',
'in_create': 1, 'in_create': 1,
'module': 'Setup', 'module': u'Setup',
'name': '__common__', 'name': '__common__',
'name_case': 'Title Case', 'name_case': u'Title Case',
'search_fields': 'name,parent_territory,territory_manager', 'search_fields': u'name,parent_territory,territory_manager',
'section_style': 'Simple', 'section_style': u'Simple',
'server_code_error': ' ', 'server_code_error': u' ',
'show_in_menu': 0, 'show_in_menu': 0,
'version': 85 'version': 86
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Territory', 'parent': u'Territory',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType' 'parenttype': u'DocType'
}, },
# These values are common for all DocPerm # These values are common for all DocPerm
{ {
'amend': 0, 'amend': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'name': '__common__', 'name': '__common__',
'parent': 'Territory', 'parent': u'Territory',
'parentfield': 'permissions', 'parentfield': u'permissions',
'parenttype': 'DocType', 'parenttype': u'DocType',
'read': 1, 'read': 1,
'submit': 0 'submit': 0
}, },
@ -53,17 +54,16 @@
# DocType, Territory # DocType, Territory
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Territory' 'name': u'Territory'
}, },
# DocPerm # DocPerm
{ {
'cancel': 0, 'cancel': 0,
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 1,
'permlevel': 1, 'permlevel': 1,
'role': 'Sales Manager', 'role': u'Sales Manager',
'write': 0 'write': 0
}, },
@ -71,10 +71,9 @@
{ {
'cancel': 0, 'cancel': 0,
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 2,
'permlevel': 0, 'permlevel': 0,
'role': 'Sales Manager', 'role': u'Sales Manager',
'write': 0 'write': 0
}, },
@ -82,10 +81,9 @@
{ {
'cancel': 0, 'cancel': 0,
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 3,
'permlevel': 1, 'permlevel': 1,
'role': 'Sales Master Manager', 'role': u'Sales Master Manager',
'write': 0 'write': 0
}, },
@ -93,10 +91,9 @@
{ {
'cancel': 0, 'cancel': 0,
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 4,
'permlevel': 1, 'permlevel': 1,
'role': 'Sales User', 'role': u'Sales User',
'write': 0 'write': 0
}, },
@ -104,10 +101,9 @@
{ {
'cancel': 0, 'cancel': 0,
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 5,
'permlevel': 0, 'permlevel': 0,
'role': 'Sales User', 'role': u'Sales User',
'write': 0 'write': 0
}, },
@ -115,108 +111,100 @@
{ {
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 6,
'permlevel': 0, 'permlevel': 0,
'role': 'Sales Master Manager', 'role': u'Sales Master Manager',
'write': 1 'write': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'trash_reason', 'fieldname': u'trash_reason',
'fieldtype': 'Small Text', 'fieldtype': u'Small Text',
'idx': 1, 'label': u'Trash Reason',
'label': 'Trash Reason', 'oldfieldname': u'trash_reason',
'oldfieldname': 'trash_reason', 'oldfieldtype': u'Small Text',
'oldfieldtype': 'Small Text',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'territory_name', 'fieldname': u'territory_name',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 2, 'label': u'Territory Name',
'label': 'Territory Name',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'territory_name', 'oldfieldname': u'territory_name',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'territory_manager', 'fieldname': u'territory_manager',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 3,
'in_filter': 1, 'in_filter': 1,
'label': 'Territory Manager', 'label': u'Territory Manager',
'oldfieldname': 'territory_manager', 'oldfieldname': u'territory_manager',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'Sales Person', 'options': u'Sales Person',
'permlevel': 0, 'permlevel': 0,
'search_index': 0 'search_index': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'parent_territory', 'fieldname': u'parent_territory',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 4, 'label': u'Parent Territory',
'label': 'Parent Territory', 'oldfieldname': u'parent_territory',
'oldfieldname': 'parent_territory', 'oldfieldtype': u'Link',
'oldfieldtype': 'Link', 'options': u'Territory',
'options': 'Territory',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'HTML', 'fieldtype': u'HTML',
'idx': 5, 'label': u'TerritoryHelp',
'label': 'TerritoryHelp', 'oldfieldtype': u'HTML',
'oldfieldtype': 'HTML', 'options': u'<a href="javascript:cur_frm.cscript.TerritoryHelp();">To manage Territory, click here</a>',
'options': '<a href="javascript:cur_frm.cscript.TerritoryHelp();">To manage Territory, click here</a>',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'description': 'Only leaf nodes are allowed in transaction', 'description': u'Only leaf nodes are allowed in transaction',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'is_group', 'fieldname': u'is_group',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 6, 'label': u'Has Child Node',
'label': 'Has Child Node', 'oldfieldname': u'is_group',
'oldfieldname': 'is_group', 'oldfieldtype': u'Select',
'oldfieldtype': 'Select', 'options': u'\nYes\nNo',
'options': '\nYes\nNo',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'lft', 'fieldname': u'lft',
'fieldtype': 'Int', 'fieldtype': u'Int',
'hidden': 1, 'hidden': 1,
'idx': 7,
'in_filter': 1, 'in_filter': 1,
'label': 'lft', 'label': u'lft',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'lft', 'oldfieldname': u'lft',
'oldfieldtype': 'Int', 'oldfieldtype': u'Int',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
'report_hide': 0, 'report_hide': 0,
@ -225,16 +213,15 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'rgt', 'fieldname': u'rgt',
'fieldtype': 'Int', 'fieldtype': u'Int',
'hidden': 1, 'hidden': 1,
'idx': 8,
'in_filter': 1, 'in_filter': 1,
'label': 'rgt', 'label': u'rgt',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'rgt', 'oldfieldname': u'rgt',
'oldfieldtype': 'Int', 'oldfieldtype': u'Int',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
'report_hide': 0, 'report_hide': 0,
@ -243,15 +230,15 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'old_parent', 'fieldname': u'old_parent',
'fieldtype': 'Data', 'fieldtype': u'Link',
'hidden': 1, 'hidden': 1,
'idx': 9, 'label': u'old_parent',
'label': 'old_parent',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'old_parent', 'oldfieldname': u'old_parent',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'options': u'Territory',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
'report_hide': 1 'report_hide': 1
@ -259,38 +246,34 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'distribution_id', 'fieldname': u'distribution_id',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 10, 'label': u'Distribution Id',
'label': 'Distribution Id', 'oldfieldname': u'distribution_id',
'oldfieldname': 'distribution_id', 'oldfieldtype': u'Link',
'oldfieldtype': 'Link', 'options': u'Budget Distribution',
'options': 'Budget Distribution',
'permlevel': 0,
'search_index': 0
},
# DocField
{
'doctype': 'DocField',
'fieldtype': 'Section Break',
'idx': 11,
'label': 'Target Details',
'oldfieldtype': 'Section Break',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'target_details', 'fieldtype': u'Section Break',
'fieldtype': 'Table', 'label': u'Target Details',
'idx': 12, 'oldfieldtype': u'Section Break',
'label': 'Target Details1', 'permlevel': 0
'oldfieldname': 'target_details', },
'oldfieldtype': 'Table',
'options': 'Target Detail', # DocField
{
'doctype': u'DocField',
'fieldname': u'target_details',
'fieldtype': u'Table',
'label': u'Target Details1',
'oldfieldname': u'target_details',
'oldfieldtype': u'Table',
'options': u'Target Detail',
'permlevel': 0 'permlevel': 0
} }
] ]

View File

@ -1,57 +0,0 @@
# ERPNext - web based ERP (http://erpnext.com)
# Copyright (C) 2012 Web Notes Technologies Pvt Ltd
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Please edit this list and import only required elements
import webnotes
from webnotes.utils import add_days, add_months, add_years, cint, cstr, date_diff, default_fields, flt, fmt_money, formatdate, generate_hash, getTraceback, get_defaults, get_first_day, get_last_day, getdate, has_common, month_name, now, nowdate, replace_newlines, sendmail, set_default, str_esc_quote, user_format, validate_email_add
from webnotes.model import db_exists
from webnotes.model.doc import Document, addchild, removechild, getchildren, make_autoname, SuperDocType
from webnotes.model.doclist import getlist, copy_doclist
from webnotes.model.code import get_obj, get_server_obj, run_server_obj, updatedb, check_syntax
from webnotes import session, form, is_testing, msgprint, errprint
set = webnotes.conn.set
sql = webnotes.conn.sql
get_value = webnotes.conn.get_value
in_transaction = webnotes.conn.in_transaction
convert_to_lists = webnotes.conn.convert_to_lists
# -----------------------------------------------------------------------------------------
class DocType:
def __init__(self, doc, doclist=[]):
self.doc = doc
self.doclist = doclist
def update_series(self):
series = sql("select name,current from `tabSeries` where name = %s", self.doc.prefix,as_dict = 1)
if series:
msgprint("This is going to update Series with Prefix : " + series[0]['name'] + " from Current : " + cstr(series[0]['current']) + " to Current : "+ cstr(self.doc.current))
sql("update `tabSeries` set current = '%s' where name = '%s'" % (self.doc.current,series[0]['name']))
msgprint("Series Updated Successfully")
else:
msgprint("Please Check Prefix as there is no such Prefix : "+ self.doc.prefix +" Or Try Insert Button")
def insert_series(self):
#sql("start transaction")
series = sql("select name,current from `tabSeries` where name = %s", self.doc.prefix, as_dict = 1)
if series:
msgprint("Series with Prefix : " + series[0]['name'] + "already in the system . Try Update Button")
else:
msgprint("This is going to Insert Series with Prefix : " + cstr(self.doc.prefix) + " Current: " + cstr(self.doc.current))
sql("insert into `tabSeries` (name,current) values ('%s','%s')" % (self.doc.prefix, self.doc.current))
msgprint("Series Inserted Successfully")

View File

@ -1,104 +0,0 @@
# DocType, Update Series
[
# These values are common in all dictionaries
{
'creation': '2010-08-08 17:09:29',
'docstatus': 0,
'modified': '2010-09-20 14:06:57',
'modified_by': 'Administrator',
'owner': 'Administrator'
},
# These values are common for all DocType
{
'allow_copy': 1,
'allow_email': 1,
'allow_print': 1,
'colour': 'White:FFF',
'doctype': 'DocType',
'hide_toolbar': 0,
'in_create': 1,
'issingle': 1,
'module': 'Setup',
'name': '__common__',
'read_only': 1,
'section_style': 'Simple',
'server_code': 'class DocType:\n def __init__(self, doc, doclist=[]):\n self.doc = doc\n self.doclist = doclist\n\n def update_series(self):\n series = sql("select name,current from `tabSeries` where name = %s", self.doc.prefix,as_dict = 1)\n if series:\n msgprint("This is going to update Series with Prefix : " + series[0][\'name\'] + " from Current : " + cstr(series[0][\'current\']) + " to Current : "+ cstr(self.doc.current))\n sql("update `tabSeries` set current = \'%s\' where name = \'%s\'" % (self.doc.current,series[0][\'name\']))\n msgprint("Series Updated Successfully")\n else:\n msgprint("Please Check Prefix as there is no such Prefix : "+ self.doc.prefix +" Or Try Insert Button")\n\n def insert_series(self):\n #sql("start transaction")\n series = sql("select name,current from `tabSeries` where name = %s", self.doc.prefix, as_dict = 1)\n if series:\n msgprint("Series with Prefix : " + series[0][\'name\'] + "already in the system . Try Update Button")\n else:\n msgprint("This is going to Insert Series with Prefix : " + cstr(self.doc.prefix) + " Current: " + cstr(self.doc.current))\n sql("insert into `tabSeries` (name,current) values (\'%s\',\'%s\')" % (self.doc.prefix, self.doc.current))\n msgprint("Series Inserted Successfully")',
'server_code_error': ' ',
'show_in_menu': 0,
'version': 5
},
# These values are common for all DocField
{
'doctype': 'DocField',
'name': '__common__',
'parent': 'Update Series',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0
},
# These values are common for all DocPerm
{
'create': 0,
'doctype': 'DocPerm',
'idx': 1,
'name': '__common__',
'parent': 'Update Series',
'parentfield': 'permissions',
'parenttype': 'DocType',
'permlevel': 0,
'read': 1,
'role': 'System Manager',
'write': 1
},
# DocType, Update Series
{
'doctype': 'DocType',
'name': 'Update Series'
},
# DocPerm
{
'doctype': 'DocPerm'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'prefix',
'fieldtype': 'Data',
'idx': 1,
'label': 'Prefix'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'current',
'fieldtype': 'Int',
'idx': 2,
'label': 'Current'
},
# DocField
{
'doctype': 'DocField',
'fieldtype': 'Button',
'idx': 3,
'label': 'Update',
'options': 'update_series'
},
# DocField
{
'doctype': 'DocField',
'fieldtype': 'Button',
'idx': 4,
'label': 'Insert',
'options': 'insert_series'
}
]

View File

@ -1,34 +0,0 @@
// ERPNext - web based ERP (http://erpnext.com)
// Copyright (C) 2012 Web Notes Technologies Pvt Ltd
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//--------- ONLOAD -------------
cur_frm.cscript.onload = function(doc, cdt, cdn) {
}
cur_frm.cscript.refresh = function(doc, cdt, cdn) {
if(!doc.file_list) {
set_field_options('Upload Accounts Transactions Help', '<div class="help_box">To upload transactions, please attach a (.csv) file with 5 columns - <b>Date, Transaction Number, Account, Debit Amount, Credit Amount</b> (no headings necessary). See attachments box in the right column</div>')
} else {
set_field_options('Upload Accounts Transactions Help', '<div class="help_box">To update transactions from the attachment, please click on "Upload Accounts Transactions"</div>')
}
}
cur_frm.cscript['Upload Accounts Transactions'] = function(doc, cdt, cdn) {
if(confirm("This action will append all transactions and cannot be un-done. Are you sure you want to continue?")) {
$c_obj([doc], 'upload_accounts_transactions', '', function(r, rt) { });
}
}

View File

@ -1,120 +0,0 @@
# ERPNext - web based ERP (http://erpnext.com)
# Copyright (C) 2012 Web Notes Technologies Pvt Ltd
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Please edit this list and import only required elements
import webnotes
from webnotes.utils import add_days, add_months, add_years, cint, cstr, date_diff, default_fields, flt, fmt_money, formatdate, generate_hash, getTraceback, get_defaults, get_first_day, get_last_day, getdate, has_common, month_name, now, nowdate, replace_newlines, sendmail, set_default, str_esc_quote, user_format, validate_email_add
from webnotes.model import db_exists
from webnotes.model.doc import Document, addchild, removechild, getchildren, make_autoname, SuperDocType
from webnotes.model.doclist import getlist, copy_doclist
from webnotes.model.code import get_obj, get_server_obj, run_server_obj, updatedb, check_syntax
from webnotes import session, form, is_testing, msgprint, errprint
set = webnotes.conn.set
sql = webnotes.conn.sql
get_value = webnotes.conn.get_value
in_transaction = webnotes.conn.in_transaction
convert_to_lists = webnotes.conn.convert_to_lists
# -----------------------------------------------------------------------------------------
class DocType:
def __init__(self, d, dl):
self.doc, self.doclist = d, dl
self.cl = []
# upload transactions
def upload_accounts_transactions(self):
import csv
data = csv.reader(self.get_csv_data().splitlines())
abbr = sql("select concat(' - ',abbr) as abbr from tabCompany where name=%s",self.doc.company)
updated = 0
jv_name=''
# jv = Document('Journal Voucher')
global line,jv,name,jv_go
for line in data:
if len(line)>=7: #Minimum no of fields
if line[3]!=jv_name: #Create JV
if jv_name!='':
jv_go = get_obj('Journal Voucher',name, with_children=1)
jv_go.validate()
jv_go.on_submit()
jv_name=line[3]
jv = Document('Journal Voucher')
jv.voucher_type = line[0]
jv.naming_series = line[1]
jv.voucher_date = formatdate(line[2])
jv.posting_date = formatdate(line[2])
# jv.name = line[3]
jv.fiscal_year = self.doc.fiscal_year
jv.company = self.doc.company
jv.remark = len(line)==8 and line[3]+' '+line[7] or line[3]+' Uploaded Record'
jv.docstatus=1
jv.save(1)
name=jv.name
jc = addchild(jv,'entries','Journal Voucher Detail',0)
jc.account = line[4]+abbr[0][0]
jc.cost_center=len(line)==9 and line[8] or self.doc.default_cost_center
if line[5]!='':
jc.debit = line[5]
else:
jc.credit = line[6]
jc.save()
else: #Create JV Child
jc = addchild(jv,'entries','Journal Voucher Detail',0)
jc.account = line[4]+abbr[0][0]
jc.cost_center=len(line)==9 and line[8] or self.doc.default_cost_center
if line[5]!='':
jc.debit = line[5]
else:
jc.credit = line[6]
jc.save()
else:
msgprint("[Ignored] Incorrect format: %s" % str(line))
if jv_name!='':
jv_go = get_obj('Journal Voucher',name, with_children=1)
jv_go.validate()
jv_go.on_submit()
msgprint("<b>%s</b> items updated" % updated)
# clear prices
def clear_prices(self):
cnt = sql("select count(*) from `tabRef Rate Detail` where price_list_name = %s", self.doc.name)
sql("delete from `tabRef Rate Detail` where price_list_name = %s", self.doc.name)
msgprint("%s prices cleared" % cnt[0][0])
# Update CSV data
def get_csv_data(self):
if not self.doc.file_list:
msgprint("File not attached!")
raise Exception
fid = self.doc.file_list.split(',')[1]
from webnotes.utils import file_manager
fn, content = file_manager.get_file(fid)
# NOTE: Don't know why this condition exists
if not isinstance(content, basestring) and hasattr(content, 'tostring'):
content = content.tostring()
return content

View File

@ -1,126 +0,0 @@
# DocType, Upload Accounts Transactions
[
# These values are common in all dictionaries
{
'creation': '2011-07-18 14:56:48',
'docstatus': 0,
'modified': '2011-07-19 12:19:13',
'modified_by': 'Administrator',
'owner': 'Administrator'
},
# These values are common for all DocType
{
'_last_update': '1310985428',
'allow_attach': 1,
'colour': 'White:FFF',
'doctype': 'DocType',
'issingle': 1,
'max_attachments': 1,
'module': 'Setup',
'name': '__common__',
'section_style': 'Simple',
'show_in_menu': 1,
'version': 5
},
# These values are common for all DocField
{
'doctype': 'DocField',
'name': '__common__',
'parent': 'Upload Accounts Transactions',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0
},
# These values are common for all DocPerm
{
'cancel': 1,
'create': 1,
'doctype': 'DocPerm',
'execute': 1,
'idx': 1,
'name': '__common__',
'parent': 'Upload Accounts Transactions',
'parentfield': 'permissions',
'parenttype': 'DocType',
'permlevel': 0,
'read': 1,
'role': 'Accounts Manager',
'submit': 1,
'write': 1
},
# DocType, Upload Accounts Transactions
{
'doctype': 'DocType',
'name': 'Upload Accounts Transactions'
},
# DocPerm
{
'doctype': 'DocPerm'
},
# DocField
{
'doctype': 'DocField',
'fieldtype': 'HTML',
'idx': 1,
'label': 'Usage',
'options': '<div class="help_box">\n<b>Upload Account Transactions Help</b>\n<p>To update the account transactions, upload a CSV file with five columns Date, Transaction Number, Account Name, Credit and Debit amount and click on the "Upload Account Transactions" button. The system will add the transactions.\n</div>'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'fiscal_year',
'fieldtype': 'Link',
'idx': 2,
'label': 'Fiscal Year',
'options': 'Fiscal Year',
'reqd': 1
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'company',
'fieldtype': 'Link',
'idx': 3,
'label': 'Company',
'options': 'Company',
'reqd': 1
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'default_cost_center',
'fieldtype': 'Link',
'idx': 4,
'label': 'Default Cost Center',
'options': 'Cost Center',
'reqd': 1
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'file_list',
'fieldtype': 'Small Text',
'hidden': 1,
'idx': 5,
'label': 'File List'
},
# DocField
{
'doctype': 'DocField',
'fieldtype': 'Button',
'idx': 6,
'label': 'Upload Accounts Transactions'
}
]

View File

@ -5,253 +5,237 @@
{ {
'creation': '2010-08-08 17:09:31', 'creation': '2010-08-08 17:09:31',
'docstatus': 0, 'docstatus': 0,
'modified': '2010-09-20 14:06:57', 'modified': '2012-03-21 14:58:16',
'modified_by': 'Administrator', 'modified_by': u'Administrator',
'owner': 'swarnalata@webnotestech.com' 'owner': u'swarnalata@webnotestech.com'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'_last_update': '1308741898', 'autoname': u'field:rule_name',
'autoname': 'field:rule_name', 'colour': u'White:FFF',
'colour': 'White:FFF', 'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'document_type': 'Master', 'document_type': u'Master',
'module': 'Setup', 'module': u'Setup',
'name': '__common__', 'name': '__common__',
'search_fields': 'select_form,rule_status', 'search_fields': u'select_form,rule_status',
'section_style': 'Tray', 'section_style': u'Tray',
'server_code_error': ' ', 'server_code_error': u' ',
'show_in_menu': 0, 'show_in_menu': 0,
'version': 30 'version': 31
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Workflow Rule', 'parent': u'Workflow Rule',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType', 'parenttype': u'DocType',
'permlevel': 0 'permlevel': 0
}, },
# These values are common for all DocPerm # These values are common for all DocPerm
{ {
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 1,
'name': '__common__', 'name': '__common__',
'parent': 'Workflow Rule', 'parent': u'Workflow Rule',
'parentfield': 'permissions', 'parentfield': u'permissions',
'parenttype': 'DocType', 'parenttype': u'DocType',
'permlevel': 0, 'permlevel': 0,
'read': 1, 'read': 1,
'role': 'System Manager', 'role': u'System Manager',
'write': 1 'write': 1
}, },
# DocType, Workflow Rule # DocType, Workflow Rule
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Workflow Rule' 'name': u'Workflow Rule'
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm' 'doctype': u'DocPerm'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'idx': 1, 'label': u'Rule Definition',
'label': 'Rule Definition', 'oldfieldtype': u'Section Break'
'oldfieldtype': 'Section Break'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'HTML', 'fieldtype': u'HTML',
'idx': 2, 'label': u'Intro HTML',
'label': 'Intro HTML', 'oldfieldtype': u'HTML',
'oldfieldtype': 'HTML', 'options': u'<b>Select form for which you want to define rules,set priority & status.</b>'
'options': '<b>Select form for which you want to define rules,set priority & status.</b>'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'rule_name', 'fieldname': u'rule_name',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 3, 'label': u'Rule Name',
'label': 'Rule Name', 'oldfieldname': u'rule_name',
'oldfieldname': 'rule_name', 'oldfieldtype': u'Data',
'oldfieldtype': 'Data',
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'rule_status', 'fieldname': u'rule_status',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 4,
'in_filter': 1, 'in_filter': 1,
'label': 'Rule Status', 'label': u'Rule Status',
'oldfieldname': 'rule_status', 'oldfieldname': u'rule_status',
'oldfieldtype': 'Select', 'oldfieldtype': u'Select',
'options': '\nActive\nInactive', 'options': u'\nActive\nInactive',
'reqd': 1, 'reqd': 1,
'search_index': 0 'search_index': 0
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'select_form', 'fieldname': u'select_form',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 5,
'in_filter': 1, 'in_filter': 1,
'label': 'Select Form', 'label': u'Select Form',
'oldfieldname': 'select_form', 'oldfieldname': u'select_form',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'DocType', 'options': u'DocType',
'reqd': 1, 'reqd': 1,
'search_index': 1, 'search_index': 1,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'rule_priority', 'fieldname': u'rule_priority',
'fieldtype': 'Int', 'fieldtype': u'Int',
'idx': 6, 'label': u'Rule Priority',
'label': 'Rule Priority', 'oldfieldname': u'rule_priority',
'oldfieldname': 'rule_priority', 'oldfieldtype': u'Int',
'oldfieldtype': 'Int',
'reqd': 0 'reqd': 0
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'idx': 7, 'label': u'Define Rule',
'label': 'Define Rule', 'oldfieldtype': u'Section Break',
'oldfieldtype': 'Section Break', 'options': u'Simple'
'options': 'Simple'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'workflow_rule_details', 'fieldname': u'workflow_rule_details',
'fieldtype': 'Table', 'fieldtype': u'Table',
'idx': 8, 'label': u'Workflow Rule Details',
'label': 'Workflow Rule Details', 'oldfieldname': u'workflow_rule_details',
'oldfieldname': 'workflow_rule_details', 'oldfieldtype': u'Table',
'oldfieldtype': 'Table', 'options': u'Workflow Rule Detail',
'options': 'Workflow Rule Detail', 'width': u'100px'
'width': '100px'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'extra_condition', 'fieldname': u'extra_condition',
'fieldtype': 'Code', 'fieldtype': u'Code',
'hidden': 1, 'hidden': 1,
'idx': 9, 'label': u'Extra Condition',
'label': 'Extra Condition', 'oldfieldname': u'extra_condition',
'oldfieldname': 'extra_condition', 'oldfieldtype': u'Code',
'oldfieldtype': 'Code',
'print_hide': 1 'print_hide': 1
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'idx': 10, 'label': u'Action Detail',
'label': 'Action Detail', 'oldfieldtype': u'Section Break'
'oldfieldtype': 'Section Break'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'HTML', 'fieldtype': u'HTML',
'idx': 11, 'label': u'Action html',
'label': 'Action html', 'oldfieldtype': u'HTML',
'oldfieldtype': 'HTML', 'options': u'<b>Specify actions to be taken when conditions hold satisfied</b>'
'options': '<b>Specify actions to be taken when conditions hold satisfied</b>'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'workflow_action_details', 'fieldname': u'workflow_action_details',
'fieldtype': 'Table', 'fieldtype': u'Table',
'idx': 12, 'label': u'Workflow Action Details',
'label': 'Workflow Action Details', 'oldfieldname': u'workflow_action_details',
'oldfieldname': 'workflow_action_details', 'oldfieldtype': u'Table',
'oldfieldtype': 'Table', 'options': u'Workflow Action Detail'
'options': 'Workflow Action Detail'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'HTML', 'fieldtype': u'HTML',
'hidden': 1, 'hidden': 1,
'idx': 13, 'label': u'Reject HTML',
'label': 'Reject HTML',
'no_copy': 1, 'no_copy': 1,
'oldfieldtype': 'HTML', 'oldfieldtype': u'HTML',
'options': "<b>If any condition holds false the following message will be displayed . If you wish to stop rule engine when condition holds false then set 'Raise Exception' as 'Yes' otherwise keep this field blank or 'No'.</b>", 'options': u"<b>If any condition holds false the following message will be displayed . If you wish to stop rule engine when condition holds false then set 'Raise Exception' as 'Yes' otherwise keep this field blank or 'No'.</b>",
'print_hide': 1, 'print_hide': 1,
'report_hide': 1 'report_hide': 1
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'message', 'fieldname': u'message',
'fieldtype': 'Text', 'fieldtype': u'Text',
'hidden': 1, 'hidden': 1,
'idx': 14, 'label': u'Enter message',
'label': 'Enter message',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'message', 'oldfieldname': u'message',
'oldfieldtype': 'Text', 'oldfieldtype': u'Text',
'print_hide': 1, 'print_hide': 1,
'report_hide': 1 'report_hide': 1
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'raise_exception', 'fieldname': u'raise_exception',
'fieldtype': 'Select', 'fieldtype': u'Select',
'hidden': 1, 'hidden': 1,
'idx': 15, 'label': u'Raise Exception',
'label': 'Raise Exception',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'raise_exception', 'oldfieldname': u'raise_exception',
'oldfieldtype': 'Select', 'oldfieldtype': u'Select',
'options': '\nYes\nNo', 'options': u'\nYes\nNo',
'print_hide': 1, 'print_hide': 1,
'report_hide': 1 'report_hide': 1
} }

View File

@ -1 +0,0 @@
<div id="setup_wizard_wrapper" class="layout_wrapper"></div>

View File

@ -1,183 +0,0 @@
// ERPNext - web based ERP (http://erpnext.com)
// Copyright (C) 2012 Web Notes Technologies Pvt Ltd
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
pscript['onload_Setup Wizard'] = function()
{
// header and toolbar
var h = new PageHeader('setup_wizard_wrapper','Setup Wizard','All important setup items in one place');
pscript.setup_wizard_callback();
}
// ==================================================================================================
pscript.setup_wizard_callback = function(){
var items = {};
items['Customer'] = new pscript.Setup_Wizard_Obj('Customer', 'customer_name', 0, '', 'Customer', 'Manage your customers',1);
items['Supplier'] = new pscript.Setup_Wizard_Obj('Supplier', 'supplier_name', 0, '', 'Supplier', 'Manage your supplier',1);
items['Item'] = new pscript.Setup_Wizard_Obj('Item', 'item_name', 0, '', 'Item', 'Create your items',1);
//items['Customer Group'] = new pscript.Setup_Wizard_Obj('Customer Group', 'group_name', 0, '', 'Customer Group', 'Organizes your customers for better analysis');
items['Price List'] = new pscript.Setup_Wizard_Obj('Price List', 'price_list_name', 0, '', 'Price List', 'Helps you maintain different prices for different customers, currencies etc.');
items['Supplier Type'] = new pscript.Setup_Wizard_Obj('Supplier Type', 'supplier_type', 0, '', 'Supplier Type', 'Organizes your suppliers for better analysis');
//items['Item Group'] = new pscript.Setup_Wizard_Obj('Item Group', 'group_name', 0, '', 'Item Group', 'Organizes your items for better analysis');
items['UoM'] = new pscript.Setup_Wizard_Obj('UOM', 'uom_name', 0, '', 'UOM', 'Maintain multiple Units of Measure (UOM)');
items['Warehouse Type'] = new pscript.Setup_Wizard_Obj('Warehouse Type', 'warehouse_type', 0, '', 'Warehouse Type', 'Define types of warehouses');
items['Warehouse'] = new pscript.Setup_Wizard_Obj('Warehouse', 'warehouse_name', 'warehouse_type', 'Warehouse Type', 'Warehouse', 'Manage stock across different warehouses');
items['Print Heading'] = new pscript.Setup_Wizard_Obj('Print Heading', 'print_heading', 'transaction', 'Transaction', 'Print Heading', 'Define print heading for various transaction.');
items['Warehouse Type'].onmake = function(){
items['Warehouse'].refresh_select('warehouse_type', 'Warehouse Type', 'Warehouse');
}
items['Print Heading'].onmake = function(){
items['Print Heading'].refresh_select('transaction', 'Transaction', 'Print Heading');
}
}
// ==================================================================================================
pscript.Setup_Wizard_Obj = function(lbl, name_field, opt_fieldname, opt_field_tbl, dt, desc, important)
{
this.lbl = lbl;
this.make_body(lbl, important);
if(lbl != 'Item')
this.make_input(name_field);
if(opt_fieldname){
this.make_select(opt_fieldname, opt_field_tbl, dt);
}
this.show_description(desc);
this.make_button();
this.create_doc_link(dt);
}
pscript.Setup_Wizard_Obj.prototype.make_body = function(lbl, important) {
var wrapper = $a($i('setup_wizard_wrapper'), 'div', '', {padding:'8px', borderBottom: '1px solid #AAA'});
if(important)$y(wrapper, {backgroundColor:'#FFD'});
this.tab = make_table(wrapper,1,3,'90%',['20%','50%','30%'], {padding:'2px 0px', verticalAlign:'middle'});
this.desc_area = $a(wrapper,'div','comment');
$td(this.tab,0,0).innerHTML = lbl.bold();
}
pscript.Setup_Wizard_Obj.prototype.make_input = function(name_field){
this.input = $a_input($td(this.tab,0,1), 'text');
this.name_field = name_field;
}
pscript.Setup_Wizard_Obj.prototype.make_select = function(fn, ft, dt){
this.select = $a($td(this.tab,0,1), 'select', '', {width:'120px', marginLeft:'8px'});
this.opt_field = fn;
this.sel_field = 'Select ' + ft + '...';
this.refresh_select(fn, ft, dt);
}
pscript.Setup_Wizard_Obj.prototype.refresh_select = function(fn, ft, dt){
var me = this;
if(ft == 'Transaction'){
empty_select(me.select);
add_sel_options(me.select, ['Select Transaction ...','Purchase Order','Sales Order','Service Order','Purchase Receipt','Delivery Note','Receivable Voucher','Payable Voucher','Journal Voucher']);
}
else{
$c_obj('Setup Wizard Control', 'get_master_lists','', function(r,rt){
var ft_lst = [];
if(r.message) ft_lst = r.message;
ft_lst.push('Select Warehouse Type ...');
empty_select(me.select);
add_sel_options(me.select, ft_lst.reverse(), 'Warehouse Type');
});
}
}
pscript.Setup_Wizard_Obj.prototype.make_button = function(){
var me = this;
var create = $a($td(this.tab,0,1), 'button', '', {marginLeft:'8px'});
create.innerHTML = 'Create';
create.onclick = function(){
me.create_record(this);
}
}
// show description
pscript.Setup_Wizard_Obj.prototype.show_description=function(desc){
this.desc_area.innerHTML = desc;
}
// create link to show listing of all records
pscript.Setup_Wizard_Obj.prototype.create_doc_link = function(doc_link){
this.obj_link = $a($td(this.tab,0,2), 'span', 'link_type',{marginLeft:'8px'});
this.obj_link.innerHTML = 'View ' + doc_link + ' list';
this.dt = doc_link;
this.obj_link.onclick = function(){
if(doc_link == 'Customer') doc_lst = 'customer_group'+NEWLINE+'country';
else if(doc_link == 'Supplier') doc_lst = 'supplier_type'+NEWLINE+'supplier_status'+NEWLINE+'company';
else if(doc_link == 'Item') doc_lst = 'item_group'+NEWLINE+'description';
if(doc_link == 'Customer' || doc_link == 'Supplier' || doc_link == 'Item')
loaddocbrowser(doc_link,doc_link, doc_lst);
else
loaddocbrowser(doc_link);
}
}
pscript.Setup_Wizard_Obj.prototype.create_record = function(cur_obj)
{
var me = this;
if(me.lbl == 'Item'){ me.create_master_rec(); }
else{
if(this.input.value) { //check for input value
if (this.select && (this.sel_field == this.select.value)){ //check for value is selected or not
alert('Please select '+this.select.value);
this.input.value = '';
}
else{
args = {};
args['Doctype'] = this.dt;
if(strip(this.input.value) == ''){ alert("Please enter proper name."); me.input.value = '';}
else{
if(me.lbl == 'Customer' || me.lbl == 'Supplier'){ this.create_master_rec(); }
else{
args[this.name_field] = this.input.value;
args[this.opt_field] = this.opt_field ? this.select.value : '';
$c_obj('Setup Wizard Control', 'create_record', JSON.stringify(args), function(r,rt){
alert(r.message);
me.input.value = '';
if(me.onmake) me.onmake();
});
}
}
}
}
else
alert("Please enter " +this.dt);
}
}
pscript.Setup_Wizard_Obj.prototype.create_master_rec = function(){
var me = this;
var fn = function(new_docname) {
var new_doc = locals[me.lbl][new_docname];
if(me.lbl == 'Customer')
new_doc.customer_name = me.input.value;
else if(me.lbl == 'Supplier')
new_doc.supplier_name = me.input.value;
}
new_doc(me.lbl, fn);
}

View File

@ -1,44 +0,0 @@
# Page, Setup Wizard
[
# These values are common in all dictionaries
{
'creation': '2010-10-12 15:19:32',
'docstatus': 0,
'modified': '2010-09-25 00:00:00',
'modified_by': 'Administrator',
'owner': 'Administrator'
},
# These values are common for all Page
{
'doctype': 'Page',
'module': 'Setup',
'name': '__common__',
'page_name': 'Setup Wizard',
'show_in_menu': 0,
'standard': 'Yes'
},
# These values are common for all Page Role
{
'doctype': 'Page Role',
'idx': 1,
'name': '__common__',
'parent': 'Setup Wizard',
'parentfield': 'roles',
'parenttype': 'Page',
'role': 'System Manager'
},
# Page, Setup Wizard
{
'doctype': 'Page',
'name': 'Setup Wizard'
},
# Page Role
{
'doctype': 'Page Role'
}
]

View File

@ -1 +0,0 @@
<div></div>

View File

@ -5,244 +5,224 @@
{ {
'creation': '2010-08-08 17:08:52', 'creation': '2010-08-08 17:08:52',
'docstatus': 0, 'docstatus': 0,
'modified': '2010-12-16 23:57:05', 'modified': '2012-03-21 14:07:49',
'modified_by': 'nabin@webnotestech.com', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'_last_update': '1308741898', '_last_update': u'1322549701',
'autoname': 'BIN/.#######', 'autoname': u'BIN/.#######',
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'hide_toolbar': 1, 'hide_toolbar': 1,
'in_create': 1, 'in_create': 1,
'module': 'Stock', 'module': u'Stock',
'name': '__common__', 'name': '__common__',
'read_only': 0, 'read_only': 0,
'search_fields': 'item_code,warehouse', 'search_fields': u'item_code,warehouse',
'section_style': 'Simple', 'section_style': u'Simple',
'server_code_error': ' ', 'server_code_error': u' ',
'show_in_menu': 0, 'show_in_menu': 0,
'version': 114 'version': 115
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Bin', 'parent': u'Bin',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType', 'parenttype': u'DocType',
'permlevel': 1 'permlevel': 1
}, },
# These values are common for all DocPerm # These values are common for all DocPerm
{ {
'doctype': 'DocPerm', 'amend': 0,
'cancel': 0,
'create': 0,
'doctype': u'DocPerm',
'name': '__common__', 'name': '__common__',
'parent': 'Bin', 'parent': u'Bin',
'parentfield': 'permissions', 'parentfield': u'permissions',
'parenttype': 'DocType', 'parenttype': u'DocType',
'read': 1 'read': 1,
'submit': 0,
'write': 0
}, },
# DocType, Bin # DocType, Bin
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Bin' 'name': u'Bin'
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 1,
'permlevel': 1, 'permlevel': 1,
'role': 'Sales Manager' 'role': u'Sales Manager'
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 2,
'permlevel': 1, 'permlevel': 1,
'role': 'Sales User' 'role': u'Sales User'
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 3,
'permlevel': 1, 'permlevel': 1,
'role': 'Purchase Manager' 'role': u'Purchase Manager'
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 4,
'permlevel': 1, 'permlevel': 1,
'role': 'Purchase User' 'role': u'Purchase User'
}, },
# DocPerm # DocPerm
{ {
'amend': 0, 'doctype': u'DocPerm',
'cancel': 0,
'create': 0,
'doctype': 'DocPerm',
'idx': 5,
'permlevel': 1, 'permlevel': 1,
'role': 'Material User', 'role': u'Material User'
'submit': 0,
'write': 0
}, },
# DocPerm # DocPerm
{ {
'amend': 0, 'doctype': u'DocPerm',
'cancel': 0,
'create': 0,
'doctype': 'DocPerm',
'idx': 6,
'permlevel': 0, 'permlevel': 0,
'role': 'Material Manager', 'role': u'Material Manager'
'submit': 0,
'write': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'warehouse', 'fieldname': u'warehouse',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 1,
'in_filter': 1, 'in_filter': 1,
'label': 'Warehouse', 'label': u'Warehouse',
'oldfieldname': 'warehouse', 'oldfieldname': u'warehouse',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'Warehouse', 'options': u'Warehouse',
'search_index': 1 'search_index': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'warehouse_type', 'fieldname': u'warehouse_type',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 2, 'label': u'Warehouse Type',
'label': 'Warehouse Type', 'oldfieldname': u'warehouse_type',
'oldfieldname': 'warehouse_type', 'oldfieldtype': u'Data'
'oldfieldtype': 'Data'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'item_code', 'fieldname': u'item_code',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 3,
'in_filter': 1, 'in_filter': 1,
'label': 'Item Code', 'label': u'Item Code',
'oldfieldname': 'item_code', 'oldfieldname': u'item_code',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'Item', 'options': u'Item',
'search_index': 1 'search_index': 1
}, },
# DocField # DocField
{ {
'default': '0.00', 'default': u'0.00',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'reserved_qty', 'fieldname': u'reserved_qty',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'idx': 5,
'in_filter': 1,
'label': 'Reserved Quantity',
'oldfieldname': 'reserved_qty',
'oldfieldtype': 'Currency',
'search_index': 0
},
# DocField
{
'default': '0.00',
'doctype': 'DocField',
'fieldname': 'actual_qty',
'fieldtype': 'Currency',
'idx': 6,
'in_filter': 1,
'label': 'Actual Quantity',
'oldfieldname': 'actual_qty',
'oldfieldtype': 'Currency',
'search_index': 0
},
# DocField
{
'default': '0.00',
'doctype': 'DocField',
'fieldname': 'ordered_qty',
'fieldtype': 'Currency',
'idx': 7,
'in_filter': 1,
'label': 'Ordered Quantity',
'oldfieldname': 'ordered_qty',
'oldfieldtype': 'Currency',
'search_index': 0
},
# DocField
{
'default': '0.00',
'doctype': 'DocField',
'fieldname': 'indented_qty',
'fieldtype': 'Currency',
'idx': 8,
'in_filter': 1,
'label': 'Indented Quantity',
'oldfieldname': 'indented_qty',
'oldfieldtype': 'Currency',
'search_index': 0
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'planned_qty',
'fieldtype': 'Currency',
'idx': 9,
'in_filter': 1,
'label': 'Planned Qty',
'oldfieldname': 'planned_qty',
'oldfieldtype': 'Currency',
'search_index': 0
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'projected_qty',
'fieldtype': 'Currency',
'idx': 10,
'in_filter': 1,
'label': 'Projected Qty',
'oldfieldname': 'projected_qty',
'oldfieldtype': 'Currency'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'ma_rate',
'fieldtype': 'Currency',
'hidden': 1,
'idx': 11,
'in_filter': 0, 'in_filter': 0,
'label': 'Moving Average Rate', 'label': u'Reserved Quantity',
'oldfieldname': 'ma_rate', 'oldfieldname': u'reserved_qty',
'oldfieldtype': 'Currency', 'oldfieldtype': u'Currency',
'search_index': 0
},
# DocField
{
'default': u'0.00',
'doctype': u'DocField',
'fieldname': u'actual_qty',
'fieldtype': u'Currency',
'in_filter': 0,
'label': u'Actual Quantity',
'oldfieldname': u'actual_qty',
'oldfieldtype': u'Currency',
'search_index': 0
},
# DocField
{
'default': u'0.00',
'doctype': u'DocField',
'fieldname': u'ordered_qty',
'fieldtype': u'Currency',
'in_filter': 0,
'label': u'Ordered Quantity',
'oldfieldname': u'ordered_qty',
'oldfieldtype': u'Currency',
'search_index': 0
},
# DocField
{
'default': u'0.00',
'doctype': u'DocField',
'fieldname': u'indented_qty',
'fieldtype': u'Currency',
'in_filter': 0,
'label': u'Indented Quantity',
'oldfieldname': u'indented_qty',
'oldfieldtype': u'Currency',
'search_index': 0
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'planned_qty',
'fieldtype': u'Currency',
'in_filter': 0,
'label': u'Planned Qty',
'oldfieldname': u'planned_qty',
'oldfieldtype': u'Currency',
'search_index': 0
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'projected_qty',
'fieldtype': u'Currency',
'in_filter': 0,
'label': u'Projected Qty',
'oldfieldname': u'projected_qty',
'oldfieldtype': u'Currency'
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'ma_rate',
'fieldtype': u'Currency',
'hidden': 1,
'in_filter': 0,
'label': u'Moving Average Rate',
'oldfieldname': u'ma_rate',
'oldfieldtype': u'Currency',
'print_hide': 1, 'print_hide': 1,
'report_hide': 1, 'report_hide': 1,
'search_index': 0 'search_index': 0
@ -250,50 +230,46 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'stock_uom', 'fieldname': u'stock_uom',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 12,
'in_filter': 1, 'in_filter': 1,
'label': 'UOM', 'label': u'UOM',
'oldfieldname': 'stock_uom', 'oldfieldname': u'stock_uom',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'search_index': 0 'search_index': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'fcfs_rate', 'fieldname': u'fcfs_rate',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'hidden': 1, 'hidden': 1,
'idx': 12, 'label': u'FCFS Rate',
'label': 'FCFS Rate', 'oldfieldname': u'fcfs_rate',
'oldfieldname': 'fcfs_rate', 'oldfieldtype': u'Currency',
'oldfieldtype': 'Currency',
'print_hide': 1, 'print_hide': 1,
'report_hide': 1 'report_hide': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'valuation_rate', 'fieldname': u'valuation_rate',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'idx': 13, 'label': u'Valuation Rate',
'label': 'Valuation Rate', 'oldfieldname': u'valuation_rate',
'oldfieldname': 'valuation_rate', 'oldfieldtype': u'Currency'
'oldfieldtype': 'Currency'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'stock_value', 'fieldname': u'stock_value',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'idx': 14, 'label': u'Stock Value',
'label': 'Stock Value', 'oldfieldname': u'stock_value',
'oldfieldname': 'stock_value', 'oldfieldtype': u'Currency'
'oldfieldtype': 'Currency'
} }
] ]

View File

@ -5,31 +5,32 @@
{ {
'creation': '2010-08-08 17:09:06', 'creation': '2010-08-08 17:09:06',
'docstatus': 0, 'docstatus': 0,
'modified': '2011-06-30 18:47:46', 'modified': '2012-03-21 14:58:34',
'modified_by': 'Administrator', 'modified_by': u'Administrator',
'owner': 'wasim@webnotestech.com' 'owner': u'wasim@webnotestech.com'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'istable': 1, 'istable': 1,
'module': 'Stock', 'module': u'Stock',
'name': '__common__', 'name': '__common__',
'section_style': 'Simple', 'section_style': u'Simple',
'server_code_error': ' ', 'server_code_error': u' ',
'show_in_menu': 0, 'show_in_menu': 0,
'version': 2 'version': 2
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Landed Cost Detail', 'parent': u'Landed Cost Detail',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType', 'parenttype': u'DocType',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
@ -37,42 +38,39 @@
# DocType, Landed Cost Detail # DocType, Landed Cost Detail
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Landed Cost Detail' 'name': u'Landed Cost Detail'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'account_head', 'fieldname': u'account_head',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 1, 'label': u'Account Head',
'label': 'Account Head', 'oldfieldname': u'account_head',
'oldfieldname': 'account_head', 'oldfieldtype': u'Link',
'oldfieldtype': 'Link', 'options': u'Account',
'options': 'Account',
'search_index': 1 'search_index': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'description', 'fieldname': u'description',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 2, 'label': u'Description',
'label': 'Description', 'oldfieldname': u'description',
'oldfieldname': 'description', 'oldfieldtype': u'Data',
'oldfieldtype': 'Data', 'width': u'300px'
'width': '300px'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'amount', 'fieldname': u'amount',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'idx': 3, 'label': u'Amount',
'label': 'Amount', 'oldfieldname': u'amount',
'oldfieldname': 'amount', 'oldfieldtype': u'Currency'
'oldfieldtype': 'Currency'
} }
] ]

View File

@ -5,35 +5,36 @@
{ {
'creation': '2010-08-08 17:09:19', 'creation': '2010-08-08 17:09:19',
'docstatus': 0, 'docstatus': 0,
'modified': '2011-08-31 11:36:41', 'modified': '2012-03-21 14:57:41',
'modified_by': 'Administrator', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'autoname': 'RFD/.#####', 'autoname': u'RFD/.#####',
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'in_create': 1, 'in_create': 1,
'istable': 1, 'istable': 1,
'module': 'Stock', 'module': u'Stock',
'name': '__common__', 'name': '__common__',
'read_only': 0, 'read_only': 0,
'section_style': 'Tray', 'section_style': u'Tray',
'server_code_error': ' ', 'server_code_error': u' ',
'show_in_menu': 0, 'show_in_menu': 0,
'version': 3 'version': 3
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'in_filter': 1, 'in_filter': 1,
'name': '__common__', 'name': '__common__',
'parent': 'Ref Rate Detail', 'parent': u'Ref Rate Detail',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType', 'parenttype': u'DocType',
'permlevel': 0, 'permlevel': 0,
'search_index': 1 'search_index': 1
}, },
@ -41,42 +42,41 @@
# DocType, Ref Rate Detail # DocType, Ref Rate Detail
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Ref Rate Detail' 'name': u'Ref Rate Detail'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'price_list_name', 'fieldname': u'price_list_name',
'fieldtype': 'Select', 'fieldtype': u'Select',
'label': 'Price List Name', 'label': u'Price List Name',
'oldfieldname': 'price_list_name', 'oldfieldname': u'price_list_name',
'oldfieldtype': 'Select', 'oldfieldtype': u'Select',
'options': 'link:Price List', 'options': u'link:Price List',
'reqd': 1, 'reqd': 1
'trigger': 'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'ref_rate', 'fieldname': u'ref_rate',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'label': 'Ref Rate', 'label': u'Ref Rate',
'oldfieldname': 'ref_rate', 'oldfieldname': u'ref_rate',
'oldfieldtype': 'Currency', 'oldfieldtype': u'Currency',
'reqd': 0 'reqd': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'ref_currency', 'fieldname': u'ref_currency',
'fieldtype': 'Select', 'fieldtype': u'Select',
'label': 'Currency', 'label': u'Currency',
'oldfieldname': 'ref_currency', 'oldfieldname': u'ref_currency',
'oldfieldtype': 'Select', 'oldfieldtype': u'Select',
'options': 'link:Currency', 'options': u'link:Currency',
'reqd': 1 'reqd': 1
} }
] ]

View File

@ -5,48 +5,50 @@
{ {
'creation': '2010-08-08 17:09:21', 'creation': '2010-08-08 17:09:21',
'docstatus': 0, 'docstatus': 0,
'modified': '2010-12-23 11:43:34', 'modified': '2012-03-21 14:55:47',
'modified_by': 'umair@iwebnotes.com', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'_last_update': u'1322549701',
'allow_trash': 1, 'allow_trash': 1,
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'document_type': 'Master', 'document_type': u'Master',
'module': 'Stock', 'module': u'Stock',
'name': '__common__', 'name': '__common__',
'section_style': 'Simple', 'section_style': u'Simple',
'server_code_error': ' ', 'server_code_error': u' ',
'show_in_menu': 0, 'show_in_menu': 0,
'version': 37 'version': 40
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Sales BOM', 'parent': u'Sales BOM',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType' 'parenttype': u'DocType'
}, },
# These values are common for all DocPerm # These values are common for all DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'name': '__common__', 'name': '__common__',
'parent': 'Sales BOM', 'parent': u'Sales BOM',
'parentfield': 'permissions', 'parentfield': u'permissions',
'parenttype': 'DocType', 'parenttype': u'DocType',
'read': 1 'read': 1
}, },
# DocType, Sales BOM # DocType, Sales BOM
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Sales BOM' 'name': u'Sales BOM'
}, },
# DocPerm # DocPerm
@ -54,10 +56,9 @@
'amend': 0, 'amend': 0,
'cancel': 0, 'cancel': 0,
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 1,
'permlevel': 1, 'permlevel': 1,
'role': 'Material Manager', 'role': u'Material Manager',
'submit': 0, 'submit': 0,
'write': 0 'write': 0
}, },
@ -67,10 +68,9 @@
'amend': 1, 'amend': 1,
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 2,
'permlevel': 0, 'permlevel': 0,
'role': 'Material Manager', 'role': u'Material Manager',
'submit': 1, 'submit': 1,
'write': 1 'write': 1
}, },
@ -80,10 +80,9 @@
'amend': 0, 'amend': 0,
'cancel': 0, 'cancel': 0,
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 3,
'permlevel': 1, 'permlevel': 1,
'role': 'Material User', 'role': u'Material User',
'submit': 0, 'submit': 0,
'write': 0 'write': 0
}, },
@ -93,10 +92,9 @@
'amend': 0, 'amend': 0,
'cancel': 0, 'cancel': 0,
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 4,
'permlevel': 0, 'permlevel': 0,
'role': 'Material User', 'role': u'Material User',
'submit': 0, 'submit': 0,
'write': 0 'write': 0
}, },
@ -106,10 +104,9 @@
'amend': 0, 'amend': 0,
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 5,
'permlevel': 0, 'permlevel': 0,
'role': 'Sales User', 'role': u'Sales User',
'submit': 0, 'submit': 0,
'write': 1 'write': 1
}, },
@ -119,156 +116,143 @@
'amend': 0, 'amend': 0,
'cancel': 0, 'cancel': 0,
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 6,
'permlevel': 1, 'permlevel': 1,
'role': 'Sales User', 'role': u'Sales User',
'submit': 0, 'submit': 0,
'write': 0 'write': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'trash_reason', 'fieldname': u'trash_reason',
'fieldtype': 'Small Text', 'fieldtype': u'Small Text',
'idx': 1, 'label': u'Trash Reason',
'label': 'Trash Reason', 'oldfieldname': u'trash_reason',
'oldfieldname': 'trash_reason', 'oldfieldtype': u'Small Text',
'oldfieldtype': 'Small Text',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'new_item_code', 'fieldname': u'new_item_code',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 2, 'label': u'New Item Code',
'label': 'New Item Code',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'new_item_code', 'oldfieldname': u'new_item_code',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'permlevel': 1, 'permlevel': 1,
'reqd': 0 'reqd': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'new_item_name', 'fieldname': u'new_item_name',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 3, 'label': u'New Item Name',
'label': 'New Item Name', 'oldfieldname': u'new_item_name',
'oldfieldname': 'new_item_name', 'oldfieldtype': u'Data',
'oldfieldtype': 'Data', 'permlevel': 0
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'new_item_brand',
'fieldtype': u'Data',
'label': u'New Item Brand',
'oldfieldname': u'new_item_brand',
'oldfieldtype': u'Data',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'new_item_brand', 'fieldname': u'description',
'fieldtype': 'Data', 'fieldtype': u'Text',
'idx': 4, 'label': u'New Description',
'label': 'New Item Brand', 'oldfieldname': u'description',
'oldfieldname': 'new_item_brand', 'oldfieldtype': u'Text',
'oldfieldtype': 'Data',
'permlevel': 1
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'description',
'fieldtype': 'Text',
'idx': 5,
'label': 'New Description',
'oldfieldname': 'description',
'oldfieldtype': 'Text',
'permlevel': 1, 'permlevel': 1,
'width': '300px' 'width': u'300px'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'item_group', 'fieldname': u'item_group',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 7, 'label': u'Item Group',
'label': 'Item Group', 'oldfieldname': u'item_group',
'oldfieldname': 'item_group', 'oldfieldtype': u'Link',
'oldfieldtype': 'Link', 'options': u'Item Group',
'options': 'Item Group',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'price_list', 'fieldname': u'price_list',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 8, 'label': u'Price List',
'label': 'Price List', 'oldfieldname': u'price_list',
'oldfieldname': 'price_list', 'oldfieldtype': u'Select',
'oldfieldtype': 'Select', 'options': u'link:Price List',
'options': 'link:Price List',
'permlevel': 0, 'permlevel': 0,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'currency', 'fieldname': u'currency',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 9, 'label': u'Currency',
'label': 'Currency', 'oldfieldname': u'currency',
'oldfieldname': 'currency', 'oldfieldtype': u'Select',
'oldfieldtype': 'Select', 'options': u'link:Currency',
'options': 'link:Currency',
'permlevel': 0, 'permlevel': 0,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Button', 'fieldtype': u'Button',
'idx': 10, 'label': u'Find Sales BOM',
'label': 'Find Sales BOM', 'oldfieldtype': u'Button',
'oldfieldtype': 'Button',
'permlevel': 0, 'permlevel': 0,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'sales_bom_items', 'fieldname': u'sales_bom_items',
'fieldtype': 'Table', 'fieldtype': u'Table',
'idx': 11, 'label': u'Sales BOM Items',
'label': 'Sales BOM Items', 'oldfieldname': u'sales_bom_items',
'oldfieldname': 'sales_bom_items', 'oldfieldtype': u'Table',
'oldfieldtype': 'Table', 'options': u'Sales BOM Detail',
'options': 'Sales BOM Detail',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'stock_uom', 'fieldname': u'stock_uom',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 12, 'label': u'Stock UOM',
'label': 'Stock UOM', 'oldfieldname': u'stock_uom',
'oldfieldname': 'stock_uom', 'oldfieldtype': u'Link',
'oldfieldtype': 'Link', 'options': u'UOM',
'options': 'UOM', 'permlevel': 0
'permlevel': 0,
'search_index': 0
} }
] ]

View File

@ -5,322 +5,305 @@
{ {
'creation': '2010-08-08 17:09:25', 'creation': '2010-08-08 17:09:25',
'docstatus': 0, 'docstatus': 0,
'modified': '2011-06-02 15:42:37', 'modified': '2012-03-21 14:04:38',
'modified_by': 'Administrator', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'_last_update': '1309508840', '_last_update': u'1322549701',
'autoname': 'SLE/.########', 'autoname': u'SLE/.########',
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'hide_toolbar': 1, 'hide_toolbar': 1,
'in_create': 1, 'in_create': 1,
'module': 'Stock', 'module': u'Stock',
'name': '__common__', 'name': '__common__',
'section_style': 'Simple', 'section_style': u'Simple',
'server_code_error': ' ', 'server_code_error': u' ',
'show_in_menu': 0, 'show_in_menu': 0,
'version': 53 'version': 53
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Stock Ledger Entry', 'parent': u'Stock Ledger Entry',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType' 'parenttype': u'DocType'
}, },
# These values are common for all DocPerm # These values are common for all DocPerm
{ {
'doctype': 'DocPerm', 'amend': 0,
'cancel': 0,
'create': 0,
'doctype': u'DocPerm',
'name': '__common__', 'name': '__common__',
'parent': 'Stock Ledger Entry', 'parent': u'Stock Ledger Entry',
'parentfield': 'permissions', 'parentfield': u'permissions',
'parenttype': 'DocType', 'parenttype': u'DocType',
'read': 1 'read': 1,
'submit': 0,
'write': 0
}, },
# DocType, Stock Ledger Entry # DocType, Stock Ledger Entry
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Stock Ledger Entry' 'name': u'Stock Ledger Entry'
}, },
# DocPerm # DocPerm
{ {
'amend': 0, 'doctype': u'DocPerm',
'cancel': 0,
'create': 0,
'doctype': 'DocPerm',
'idx': 1,
'permlevel': 0, 'permlevel': 0,
'role': 'Material User', 'role': u'System Manager'
'submit': 0,
'write': 0
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 2, 'permlevel': 0,
'role': u'Material User'
},
# DocPerm
{
'doctype': u'DocPerm',
'permlevel': 1, 'permlevel': 1,
'role': 'All' 'role': u'All'
}, },
# DocPerm # DocPerm
{ {
'amend': 0, 'doctype': u'DocPerm',
'cancel': 0,
'create': 0,
'doctype': 'DocPerm',
'idx': 3,
'permlevel': 1, 'permlevel': 1,
'role': 'Material User', 'role': u'Material User'
'submit': 0,
'write': 0
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 4,
'permlevel': 2, 'permlevel': 2,
'role': 'System Manager' 'role': u'System Manager'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'item_code', 'fieldname': u'item_code',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 1,
'in_filter': 1, 'in_filter': 1,
'label': 'Item Code', 'label': u'Item Code',
'oldfieldname': 'item_code', 'oldfieldname': u'item_code',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'Item', 'options': u'Item',
'permlevel': 1, 'permlevel': 1,
'reqd': 0, 'reqd': 0,
'search_index': 1, 'search_index': 1,
'width': '100px' 'width': u'100px'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'serial_no', 'fieldname': u'serial_no',
'fieldtype': 'Text', 'fieldtype': u'Text',
'idx': 2,
'in_filter': 0, 'in_filter': 0,
'label': 'Serial No', 'label': u'Serial No',
'permlevel': 0, 'permlevel': 0,
'search_index': 0, 'search_index': 0,
'width': '100px' 'width': u'100px'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'batch_no', 'fieldname': u'batch_no',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 3, 'label': u'Batch No',
'label': 'Batch No', 'oldfieldname': u'batch_no',
'oldfieldname': 'batch_no', 'oldfieldtype': u'Data',
'oldfieldtype': 'Data',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'warehouse', 'fieldname': u'warehouse',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 4,
'in_filter': 1, 'in_filter': 1,
'label': 'Warehouse', 'label': u'Warehouse',
'oldfieldname': 'warehouse', 'oldfieldname': u'warehouse',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'Warehouse', 'options': u'Warehouse',
'permlevel': 1, 'permlevel': 1,
'search_index': 1, 'search_index': 1,
'width': '100px' 'width': u'100px'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'warehouse_type', 'fieldname': u'warehouse_type',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 5,
'in_filter': 1, 'in_filter': 1,
'label': 'Warehouse Type', 'label': u'Warehouse Type',
'oldfieldname': 'warehouse_type', 'oldfieldname': u'warehouse_type',
'oldfieldtype': 'Select', 'oldfieldtype': u'Select',
'options': 'link:Warehouse Type', 'options': u'link:Warehouse Type',
'permlevel': 1, 'permlevel': 1,
'search_index': 0 'search_index': 0
}, },
# DocField # DocField
{ {
'description': 'The date at which current entry will get or has actually executed.', 'description': u'The date at which current entry will get or has actually executed.',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'posting_date', 'fieldname': u'posting_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'idx': 6,
'in_filter': 1, 'in_filter': 1,
'label': 'Posting Date', 'label': u'Posting Date',
'oldfieldname': 'posting_date', 'oldfieldname': u'posting_date',
'oldfieldtype': 'Date', 'oldfieldtype': u'Date',
'permlevel': 1, 'permlevel': 1,
'reqd': 0, 'reqd': 0,
'search_index': 1, 'search_index': 1,
'width': '100px' 'width': u'100px'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'posting_time', 'fieldname': u'posting_time',
'fieldtype': 'Time', 'fieldtype': u'Time',
'idx': 7,
'in_filter': 0, 'in_filter': 0,
'label': 'Posting Time', 'label': u'Posting Time',
'oldfieldname': 'posting_time', 'oldfieldname': u'posting_time',
'oldfieldtype': 'Time', 'oldfieldtype': u'Time',
'permlevel': 1,
'search_index': 1,
'width': '100px'
},
# DocField
{
'description': 'The date at which current entry is made in system.',
'doctype': 'DocField',
'fieldname': 'transaction_date',
'fieldtype': 'Date',
'idx': 8,
'in_filter': 1,
'label': 'Transaction Date',
'oldfieldname': 'transaction_date',
'oldfieldtype': 'Date',
'permlevel': 1, 'permlevel': 1,
'search_index': 0, 'search_index': 0,
'width': '100px' 'width': u'100px'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'description': u'The date at which current entry is made in system.',
'fieldname': 'voucher_type', 'doctype': u'DocField',
'fieldtype': 'Data', 'fieldname': u'transaction_date',
'idx': 9, 'fieldtype': u'Date',
'in_filter': 1, 'in_filter': 1,
'label': 'Voucher Type', 'label': u'Transaction Date',
'oldfieldname': 'voucher_type', 'oldfieldname': u'transaction_date',
'oldfieldtype': 'Data', 'oldfieldtype': u'Date',
'permlevel': 1, 'permlevel': 1,
'search_index': 0, 'search_index': 0,
'width': '150px' 'width': u'100px'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'voucher_no', 'fieldname': u'voucher_type',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 10,
'in_filter': 1, 'in_filter': 1,
'label': 'Voucher No', 'label': u'Voucher Type',
'oldfieldname': 'voucher_no', 'oldfieldname': u'voucher_type',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'permlevel': 1, 'permlevel': 1,
'search_index': 0, 'search_index': 0,
'width': '150px' 'width': u'150px'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'voucher_detail_no', 'fieldname': u'voucher_no',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 11,
'label': 'Voucher Detail No',
'oldfieldname': 'voucher_detail_no',
'oldfieldtype': 'Data',
'permlevel': 1,
'width': '150px'
},
# DocField
{
'colour': 'White:FFF',
'doctype': 'DocField',
'fieldname': 'actual_qty',
'fieldtype': 'Currency',
'idx': 12,
'in_filter': 1, 'in_filter': 1,
'label': 'Actual Quantity', 'label': u'Voucher No',
'oldfieldname': 'actual_qty', 'oldfieldname': u'voucher_no',
'oldfieldtype': 'Currency', 'oldfieldtype': u'Data',
'permlevel': 1, 'permlevel': 1,
'width': '150px' 'search_index': 0,
'width': u'150px'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'incoming_rate', 'fieldname': u'voucher_detail_no',
'fieldtype': 'Currency', 'fieldtype': u'Data',
'idx': 13, 'label': u'Voucher Detail No',
'label': 'Incoming Rate', 'oldfieldname': u'voucher_detail_no',
'oldfieldname': 'incoming_rate', 'oldfieldtype': u'Data',
'oldfieldtype': 'Currency', 'permlevel': 1,
'width': u'150px'
},
# DocField
{
'colour': u'White:FFF',
'doctype': u'DocField',
'fieldname': u'actual_qty',
'fieldtype': u'Currency',
'in_filter': 1,
'label': u'Actual Quantity',
'oldfieldname': u'actual_qty',
'oldfieldtype': u'Currency',
'permlevel': 1,
'width': u'150px'
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'incoming_rate',
'fieldtype': u'Currency',
'label': u'Incoming Rate',
'oldfieldname': u'incoming_rate',
'oldfieldtype': u'Currency',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'stock_uom', 'fieldname': u'stock_uom',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 14, 'label': u'Stock UOM',
'label': 'Stock UOM', 'oldfieldname': u'stock_uom',
'oldfieldname': 'stock_uom', 'oldfieldtype': u'Data',
'oldfieldtype': 'Data',
'permlevel': 1, 'permlevel': 1,
'width': '150px' 'width': u'150px'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'bin_aqat', 'fieldname': u'bin_aqat',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'idx': 15,
'in_filter': 1, 'in_filter': 1,
'label': 'Bin Actual Qty After Transaction', 'label': u'Bin Actual Qty After Transaction',
'oldfieldname': 'bin_aqat', 'oldfieldname': u'bin_aqat',
'oldfieldtype': 'Currency', 'oldfieldtype': u'Currency',
'permlevel': 1, 'permlevel': 1,
'width': '150px' 'width': u'150px'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'ma_rate', 'fieldname': u'ma_rate',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'hidden': 1, 'hidden': 1,
'idx': 16, 'label': u'Moving Average Rate',
'label': 'Moving Average Rate', 'oldfieldname': u'ma_rate',
'oldfieldname': 'ma_rate', 'oldfieldtype': u'Currency',
'oldfieldtype': 'Currency',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
'report_hide': 1 'report_hide': 1
@ -328,14 +311,13 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'fcfs_rate', 'fieldname': u'fcfs_rate',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'hidden': 1, 'hidden': 1,
'idx': 17, 'label': u'FIFO Rate',
'label': 'FIFO Rate', 'oldfieldname': u'fcfs_rate',
'oldfieldname': 'fcfs_rate', 'oldfieldtype': u'Currency',
'oldfieldtype': 'Currency',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
'report_hide': 1 'report_hide': 1
@ -343,105 +325,99 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'valuation_rate', 'fieldname': u'valuation_rate',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'idx': 18, 'label': u'Valuation Rate',
'label': 'Valuation Rate', 'oldfieldname': u'valuation_rate',
'oldfieldname': 'valuation_rate', 'oldfieldtype': u'Currency',
'oldfieldtype': 'Currency',
'permlevel': 0, 'permlevel': 0,
'width': '150px' 'width': u'150px'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'stock_value', 'fieldname': u'stock_value',
'fieldtype': 'Currency', 'fieldtype': u'Currency',
'idx': 19, 'label': u'Stock Value',
'label': 'Stock Value', 'oldfieldname': u'stock_value',
'oldfieldname': 'stock_value', 'oldfieldtype': u'Currency',
'oldfieldtype': 'Currency',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'fcfs_stack', 'fieldname': u'fcfs_stack',
'fieldtype': 'Text', 'fieldtype': u'Text',
'hidden': 0, 'hidden': 1,
'idx': 20,
'in_filter': 0, 'in_filter': 0,
'label': 'FIFO Stack', 'label': u'FIFO Stack',
'oldfieldname': 'fcfs_stack', 'oldfieldname': u'fcfs_stack',
'oldfieldtype': 'Text', 'oldfieldtype': u'Text',
'permlevel': 0, 'permlevel': 2,
'print_hide': 1, 'print_hide': 1,
'report_hide': 0, 'report_hide': 1,
'search_index': 0 'search_index': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'company', 'fieldname': u'company',
'fieldtype': 'Data', 'fieldtype': u'Select',
'idx': 21,
'in_filter': 1, 'in_filter': 1,
'label': 'Company', 'label': u'Company',
'oldfieldname': 'company', 'oldfieldname': u'company',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'options': u'link:Company',
'permlevel': 1, 'permlevel': 1,
'search_index': 0, 'search_index': 0,
'width': '150px' 'width': u'150px'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'fiscal_year', 'fieldname': u'fiscal_year',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 22,
'in_filter': 1, 'in_filter': 1,
'label': 'Fiscal Year', 'label': u'Fiscal Year',
'oldfieldname': 'fiscal_year', 'oldfieldname': u'fiscal_year',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'permlevel': 1, 'permlevel': 1,
'search_index': 0, 'search_index': 0,
'width': '150px' 'width': u'150px'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'is_cancelled', 'fieldname': u'is_cancelled',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 23,
'in_filter': 1, 'in_filter': 1,
'label': 'Is Cancelled', 'label': u'Is Cancelled',
'oldfieldname': 'is_cancelled', 'oldfieldname': u'is_cancelled',
'oldfieldtype': 'Select', 'oldfieldtype': u'Select',
'options': '\nYes\nNo', 'options': u'\nYes\nNo',
'permlevel': 1, 'permlevel': 1,
'search_index': 0, 'search_index': 0,
'width': '100px' 'width': u'100px'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'is_stock_entry', 'fieldname': u'is_stock_entry',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 24,
'in_filter': 1, 'in_filter': 1,
'label': 'Is Stock Entry', 'label': u'Is Stock Entry',
'oldfieldname': 'is_stock_entry', 'oldfieldname': u'is_stock_entry',
'oldfieldtype': 'Select', 'oldfieldtype': u'Select',
'options': '\nYes\nNo', 'options': u'\nYes\nNo',
'permlevel': 1, 'permlevel': 1,
'search_index': 0, 'search_index': 0,
'width': '100px' 'width': u'100px'
} }
] ]

View File

@ -5,92 +5,90 @@
{ {
'creation': '2010-08-08 17:09:06', 'creation': '2010-08-08 17:09:06',
'docstatus': 0, 'docstatus': 0,
'modified': '2010-09-20 14:06:57', 'modified': '2012-03-21 14:57:06',
'modified_by': 'umair@iwebnotes.com', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'autoname': 'IMD.#####', 'autoname': u'IMD.#####',
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'istable': 1, 'istable': 1,
'module': 'Support', 'module': u'Support',
'name': '__common__', 'name': '__common__',
'section_style': 'Simple', 'section_style': u'Simple',
'server_code_error': ' ', 'server_code_error': u' ',
'version': 8 'show_in_menu': 0,
'version': 9
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Item Maintenance Detail', 'parent': u'Item Maintenance Detail',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType' 'parenttype': u'DocType'
}, },
# DocType, Item Maintenance Detail # DocType, Item Maintenance Detail
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Item Maintenance Detail' 'name': u'Item Maintenance Detail'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'item_code', 'fieldname': u'item_code',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 1,
'in_filter': 1, 'in_filter': 1,
'label': 'Item Code', 'label': u'Item Code',
'oldfieldname': 'item_code', 'oldfieldname': u'item_code',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'Item', 'options': u'Item',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1,
'search_index': 1, 'search_index': 1,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'item_name', 'fieldname': u'item_name',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 2, 'label': u'Item Name',
'label': 'Item Name', 'oldfieldname': u'item_name',
'oldfieldname': 'item_name', 'oldfieldtype': u'Data',
'oldfieldtype': 'Data',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'description', 'fieldname': u'description',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 3, 'label': u'Description',
'label': 'Description', 'oldfieldname': u'description',
'oldfieldname': 'description', 'oldfieldtype': u'Data',
'oldfieldtype': 'Data',
'permlevel': 1, 'permlevel': 1,
'width': '300px' 'width': u'300px'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'start_date', 'fieldname': u'start_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'idx': 4,
'in_filter': 1, 'in_filter': 1,
'label': 'Start Date', 'label': u'Start Date',
'oldfieldname': 'start_date', 'oldfieldname': u'start_date',
'oldfieldtype': 'Date', 'oldfieldtype': u'Date',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1,
'search_index': 1 'search_index': 1
@ -98,14 +96,13 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'end_date', 'fieldname': u'end_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'idx': 5,
'in_filter': 1, 'in_filter': 1,
'label': 'End Date', 'label': u'End Date',
'oldfieldname': 'end_date', 'oldfieldname': u'end_date',
'oldfieldtype': 'Date', 'oldfieldtype': u'Date',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1,
'search_index': 1 'search_index': 1
@ -113,41 +110,38 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'periodicity', 'fieldname': u'periodicity',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 6, 'label': u'Periodicity',
'label': 'Periodicity', 'oldfieldname': u'periodicity',
'oldfieldname': 'periodicity', 'oldfieldtype': u'Select',
'oldfieldtype': 'Select', 'options': u'\nWeekly\nMonthly\nQuarterly\nHalf Yearly\nYearly\nRandom',
'options': '\nWeekly\nMonthly\nQuarterly\nHalf Yearly\nYearly\nRandom',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'no_of_visits', 'fieldname': u'no_of_visits',
'fieldtype': 'Int', 'fieldtype': u'Int',
'idx': 7, 'label': u'No of Visits',
'label': 'No of Visits', 'oldfieldname': u'no_of_visits',
'oldfieldname': 'no_of_visits', 'oldfieldtype': u'Int',
'oldfieldtype': 'Int',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'incharge_name', 'fieldname': u'incharge_name',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 8,
'in_filter': 1, 'in_filter': 1,
'label': 'Incharge Name', 'label': u'Incharge Name',
'oldfieldname': 'incharge_name', 'oldfieldname': u'incharge_name',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'Sales Person', 'options': u'Sales Person',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1,
'search_index': 0 'search_index': 0
@ -155,30 +149,28 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'serial_no', 'fieldname': u'serial_no',
'fieldtype': 'Small Text', 'fieldtype': u'Small Text',
'idx': 9, 'label': u'Serial No',
'label': 'Serial No', 'oldfieldname': u'serial_no',
'oldfieldname': 'serial_no', 'oldfieldtype': u'Small Text',
'oldfieldtype': 'Small Text',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'prevdoc_docname', 'fieldname': u'prevdoc_docname',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 10,
'in_filter': 1, 'in_filter': 1,
'label': 'Against Docname', 'label': u'Against Docname',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'prevdoc_docname', 'oldfieldname': u'prevdoc_docname',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'permlevel': 1, 'permlevel': 1,
'print_hide': 1, 'print_hide': 1,
'search_index': 1, 'search_index': 1,
'width': '150px' 'width': u'150px'
} }
] ]

View File

@ -5,49 +5,50 @@
{ {
'creation': '2010-08-08 17:09:09', 'creation': '2010-08-08 17:09:09',
'docstatus': 0, 'docstatus': 0,
'modified': '2011-05-17 17:13:43', 'modified': '2012-03-21 14:09:46',
'modified_by': 'Administrator', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'_last_update': '1305632624', '_last_update': u'1322549701',
'autoname': 'MS.#####', 'autoname': u'MS.#####',
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'module': 'Support', 'module': u'Support',
'name': '__common__', 'name': '__common__',
'search_fields': 'status,customer,customer_name, sales_order_no', 'search_fields': u'status,customer,customer_name, sales_order_no',
'section_style': 'Simple', 'section_style': u'Simple',
'server_code_error': ' ', 'server_code_error': u' ',
'show_in_menu': 0, 'show_in_menu': 0,
'version': 155 'version': 156
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Maintenance Schedule', 'parent': u'Maintenance Schedule',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType' 'parenttype': u'DocType'
}, },
# These values are common for all DocPerm # These values are common for all DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'name': '__common__', 'name': '__common__',
'parent': 'Maintenance Schedule', 'parent': u'Maintenance Schedule',
'parentfield': 'permissions', 'parentfield': u'permissions',
'parenttype': 'DocType', 'parenttype': u'DocType',
'read': 1 'read': 1
}, },
# DocType, Maintenance Schedule # DocType, Maintenance Schedule
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Maintenance Schedule' 'name': u'Maintenance Schedule'
}, },
# DocPerm # DocPerm
@ -55,20 +56,18 @@
'amend': 1, 'amend': 1,
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 1,
'permlevel': 0, 'permlevel': 0,
'role': 'System Manager', 'role': u'System Manager',
'submit': 1, 'submit': 1,
'write': 1 'write': 1
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 2,
'permlevel': 1, 'permlevel': 1,
'role': 'System Manager' 'role': u'System Manager'
}, },
# DocPerm # DocPerm
@ -76,95 +75,87 @@
'amend': 1, 'amend': 1,
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 3,
'permlevel': 0, 'permlevel': 0,
'role': 'Maintenance Manager', 'role': u'Maintenance Manager',
'submit': 1, 'submit': 1,
'write': 1 'write': 1
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 4,
'permlevel': 1, 'permlevel': 1,
'role': 'Maintenance Manager' 'role': u'Maintenance Manager'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'idx': 1, 'label': u'Customer Details',
'label': 'Customer Details', 'oldfieldtype': u'Section Break',
'oldfieldtype': 'Section Break', 'options': u'Simple',
'options': 'Simple',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Column Break', 'fieldtype': u'Column Break',
'idx': 2, 'oldfieldtype': u'Column Break',
'oldfieldtype': 'Column Break',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'customer', 'fieldname': u'customer',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 3,
'in_filter': 1, 'in_filter': 1,
'label': 'Customer', 'label': u'Customer',
'oldfieldname': 'customer', 'oldfieldname': u'customer',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'Customer', 'options': u'Customer',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
'reqd': 1, 'reqd': 1,
'search_index': 1, 'search_index': 1,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'customer_address', 'fieldname': u'customer_address',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 4, 'label': u'Customer Address',
'label': 'Customer Address', 'options': u'Address',
'options': 'Address',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1 'print_hide': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'contact_person', 'fieldname': u'contact_person',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 5, 'label': u'Contact Person',
'label': 'Contact Person', 'options': u'Contact',
'options': 'Contact',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1 'print_hide': 1
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'customer_name', 'fieldname': u'customer_name',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 6,
'in_filter': 1, 'in_filter': 1,
'label': 'Name', 'label': u'Name',
'oldfieldname': 'customer_name', 'oldfieldname': u'customer_name',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'permlevel': 1, 'permlevel': 1,
'reqd': 0, 'reqd': 0,
'search_index': 0 'search_index': 0
@ -172,65 +163,59 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'address_display', 'fieldname': u'address_display',
'fieldtype': 'Small Text', 'fieldtype': u'Small Text',
'idx': 7, 'label': u'Address',
'label': 'Address',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'contact_display', 'fieldname': u'contact_display',
'fieldtype': 'Small Text', 'fieldtype': u'Small Text',
'idx': 8, 'label': u'Contact',
'label': 'Contact',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'contact_mobile', 'fieldname': u'contact_mobile',
'fieldtype': 'Text', 'fieldtype': u'Text',
'idx': 9, 'label': u'Mobile No',
'label': 'Mobile No',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'contact_email', 'fieldname': u'contact_email',
'fieldtype': 'Text', 'fieldtype': u'Text',
'idx': 10, 'label': u'Contact Email',
'label': 'Contact Email',
'permlevel': 1, 'permlevel': 1,
'print_hide': 1 'print_hide': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Column Break', 'fieldtype': u'Column Break',
'idx': 11, 'oldfieldtype': u'Column Break',
'oldfieldtype': 'Column Break',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'transaction_date', 'fieldname': u'transaction_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'idx': 12,
'in_filter': 1, 'in_filter': 1,
'label': 'Transaction Date', 'label': u'Transaction Date',
'oldfieldname': 'transaction_date', 'oldfieldname': u'transaction_date',
'oldfieldtype': 'Date', 'oldfieldtype': u'Date',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1,
'search_index': 0 'search_index': 0
@ -238,18 +223,17 @@
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'default': 'Draft', 'default': u'Draft',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'status', 'fieldname': u'status',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 13,
'in_filter': 1, 'in_filter': 1,
'label': 'Status', 'label': u'Status',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'status', 'oldfieldname': u'status',
'oldfieldtype': 'Select', 'oldfieldtype': u'Select',
'options': '\nDraft\nSubmitted\nCancelled', 'options': u'\nDraft\nSubmitted\nCancelled',
'permlevel': 1, 'permlevel': 1,
'reqd': 1, 'reqd': 1,
'search_index': 0 'search_index': 0
@ -257,28 +241,26 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'amended_from', 'fieldname': u'amended_from',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 14, 'label': u'Amended From',
'label': 'Amended From',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'amended_from', 'oldfieldname': u'amended_from',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'amendment_date', 'fieldname': u'amendment_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'hidden': 1, 'hidden': 1,
'idx': 15, 'label': u'Amendment Date',
'label': 'Amendment Date',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'amendment_date', 'oldfieldname': u'amendment_date',
'oldfieldtype': 'Date', 'oldfieldtype': u'Date',
'permlevel': 1, 'permlevel': 1,
'print_hide': 1, 'print_hide': 1,
'report_hide': 1 'report_hide': 1
@ -286,15 +268,14 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'company', 'fieldname': u'company',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 16,
'in_filter': 1, 'in_filter': 1,
'label': 'Company', 'label': u'Company',
'oldfieldname': 'company', 'oldfieldname': u'company',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'Company', 'options': u'Company',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1,
'search_index': 0 'search_index': 0
@ -302,15 +283,14 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'territory', 'fieldname': u'territory',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 17,
'in_filter': 1, 'in_filter': 1,
'label': 'Territory', 'label': u'Territory',
'oldfieldname': 'territory', 'oldfieldname': u'territory',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'Territory', 'options': u'Territory',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1,
'search_index': 0 'search_index': 0
@ -318,102 +298,94 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'customer_group', 'fieldname': u'customer_group',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 18, 'label': u'Customer Group',
'label': 'Customer Group', 'options': u'Customer Group',
'options': 'Customer Group',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'idx': 19, 'label': u'Items',
'label': 'Items', 'oldfieldtype': u'Section Break',
'oldfieldtype': 'Section Break', 'options': u'Simple',
'options': 'Simple',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'sales_order_no', 'fieldname': u'sales_order_no',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 20,
'in_filter': 1, 'in_filter': 1,
'label': 'Sales Order No', 'label': u'Sales Order No',
'oldfieldname': 'sales_order_no', 'oldfieldname': u'sales_order_no',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'Sales Order', 'options': u'Sales Order',
'permlevel': 0, 'permlevel': 0,
'search_index': 1, 'search_index': 1,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Button', 'fieldtype': u'Button',
'idx': 21, 'label': u'Get Items',
'label': 'Get Items', 'oldfieldtype': u'Button',
'oldfieldtype': 'Button', 'options': u'pull_sales_order_detail',
'options': 'pull_sales_order_detail',
'permlevel': 0, 'permlevel': 0,
'report_hide': 1 'report_hide': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'item_maintenance_detail', 'fieldname': u'item_maintenance_detail',
'fieldtype': 'Table', 'fieldtype': u'Table',
'idx': 22, 'label': u'Item Maintenance Detail',
'label': 'Item Maintenance Detail', 'oldfieldname': u'item_maintenance_detail',
'oldfieldname': 'item_maintenance_detail', 'oldfieldtype': u'Table',
'oldfieldtype': 'Table', 'options': u'Item Maintenance Detail',
'options': 'Item Maintenance Detail',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'idx': 23, 'label': u'Schedule',
'label': 'Schedule', 'oldfieldtype': u'Section Break',
'oldfieldtype': 'Section Break', 'options': u'Simple',
'options': 'Simple',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Button', 'fieldtype': u'Button',
'idx': 24, 'label': u'Generate Schedule',
'label': 'Generate Schedule', 'oldfieldtype': u'Button',
'oldfieldtype': 'Button',
'permlevel': 0, 'permlevel': 0,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'maintenance_schedule_detail', 'fieldname': u'maintenance_schedule_detail',
'fieldtype': 'Table', 'fieldtype': u'Table',
'idx': 25, 'label': u'Maintenance Schedule Detail',
'label': 'Maintenance Schedule Detail', 'oldfieldname': u'maintenance_schedule_detail',
'oldfieldname': 'maintenance_schedule_detail', 'oldfieldtype': u'Table',
'oldfieldtype': 'Table', 'options': u'Maintenance Schedule Detail',
'options': 'Maintenance Schedule Detail',
'permlevel': 1 'permlevel': 1
} }
] ]

View File

@ -5,50 +5,51 @@
{ {
'creation': '2010-08-08 17:09:09', 'creation': '2010-08-08 17:09:09',
'docstatus': 0, 'docstatus': 0,
'modified': '2010-09-20 14:06:57', 'modified': '2012-03-21 14:10:17',
'modified_by': 'umair@iwebnotes.com', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'autoname': 'MSD.#####', 'autoname': u'MSD.#####',
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'istable': 1, 'istable': 1,
'module': 'Support', 'module': u'Support',
'name': '__common__', 'name': '__common__',
'section_style': 'Simple', 'section_style': u'Simple',
'server_code_error': ' ', 'server_code_error': u' ',
'version': 12 'show_in_menu': 0,
'version': 13
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Maintenance Schedule Detail', 'parent': u'Maintenance Schedule Detail',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType' 'parenttype': u'DocType'
}, },
# DocType, Maintenance Schedule Detail # DocType, Maintenance Schedule Detail
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Maintenance Schedule Detail' 'name': u'Maintenance Schedule Detail'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'item_code', 'fieldname': u'item_code',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 1,
'in_filter': 1, 'in_filter': 1,
'label': 'Item Code', 'label': u'Item Code',
'oldfieldname': 'item_code', 'oldfieldname': u'item_code',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'Item', 'options': u'Item',
'permlevel': 1, 'permlevel': 1,
'reqd': 0, 'reqd': 0,
'search_index': 1 'search_index': 1
@ -56,28 +57,26 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'item_name', 'fieldname': u'item_name',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 2,
'in_filter': 0, 'in_filter': 0,
'label': 'Item Name', 'label': u'Item Name',
'oldfieldname': 'item_name', 'oldfieldname': u'item_name',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'permlevel': 1, 'permlevel': 1,
'search_index': 0 'search_index': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'scheduled_date', 'fieldname': u'scheduled_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'idx': 3,
'in_filter': 1, 'in_filter': 1,
'label': 'Scheduled Date', 'label': u'Scheduled Date',
'oldfieldname': 'scheduled_date', 'oldfieldname': u'scheduled_date',
'oldfieldtype': 'Date', 'oldfieldtype': u'Date',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1,
'search_index': 1 'search_index': 1
@ -85,15 +84,14 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'actual_date', 'fieldname': u'actual_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'hidden': 1, 'hidden': 1,
'idx': 4, 'label': u'Actual Date',
'label': 'Actual Date',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'actual_date', 'oldfieldname': u'actual_date',
'oldfieldtype': 'Date', 'oldfieldtype': u'Date',
'permlevel': 1, 'permlevel': 1,
'print_hide': 1, 'print_hide': 1,
'report_hide': 1 'report_hide': 1
@ -101,15 +99,14 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'incharge_name', 'fieldname': u'incharge_name',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 5,
'in_filter': 1, 'in_filter': 1,
'label': 'Incharge Name', 'label': u'Incharge Name',
'oldfieldname': 'incharge_name', 'oldfieldname': u'incharge_name',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'Sales Person', 'options': u'Sales Person',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1,
'search_index': 0 'search_index': 0
@ -117,17 +114,16 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'serial_no', 'fieldname': u'serial_no',
'fieldtype': 'Small Text', 'fieldtype': u'Small Text',
'idx': 6,
'in_filter': 1, 'in_filter': 1,
'label': 'Serial No', 'label': u'Serial No',
'no_copy': 0, 'no_copy': 0,
'oldfieldname': 'serial_no', 'oldfieldname': u'serial_no',
'oldfieldtype': 'Small Text', 'oldfieldtype': u'Small Text',
'permlevel': 1, 'permlevel': 1,
'search_index': 1, 'search_index': 0,
'width': '160px' 'width': u'160px'
} }
] ]

View File

@ -5,51 +5,52 @@
{ {
'creation': '2010-08-08 17:09:09', 'creation': '2010-08-08 17:09:09',
'docstatus': 0, 'docstatus': 0,
'modified': '2011-07-01 11:20:38', 'modified': '2012-03-21 14:11:12',
'modified_by': 'Administrator', 'modified_by': u'Administrator',
'owner': 'ashwini@webnotestech.com' 'owner': u'ashwini@webnotestech.com'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'_last_update': '1305704021', '_last_update': u'1322549701',
'autoname': 'MV.#####', 'autoname': u'MV.#####',
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'module': 'Support', 'module': u'Support',
'name': '__common__', 'name': '__common__',
'search_fields': 'status,maintenance_type,customer,customer_name, address,mntc_date,company,fiscal_year', 'search_fields': u'status,maintenance_type,customer,customer_name, address,mntc_date,company,fiscal_year',
'section_style': 'Simple', 'section_style': u'Simple',
'server_code_error': ' ', 'server_code_error': u' ',
'show_in_menu': 0, 'show_in_menu': 0,
'subject': 'To %(customer_name)s on %(mntc_date)s', 'subject': u'To %(customer_name)s on %(mntc_date)s',
'tag_fields': 'completion_status,maintenance_type', 'tag_fields': u'completion_status,maintenance_type',
'version': 101 'version': 95
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Maintenance Visit', 'parent': u'Maintenance Visit',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType' 'parenttype': u'DocType'
}, },
# These values are common for all DocPerm # These values are common for all DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'name': '__common__', 'name': '__common__',
'parent': 'Maintenance Visit', 'parent': u'Maintenance Visit',
'parentfield': 'permissions', 'parentfield': u'permissions',
'parenttype': 'DocType', 'parenttype': u'DocType',
'read': 1 'read': 1
}, },
# DocType, Maintenance Visit # DocType, Maintenance Visit
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Maintenance Visit' 'name': u'Maintenance Visit'
}, },
# DocPerm # DocPerm
@ -57,20 +58,18 @@
'amend': 1, 'amend': 1,
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 1,
'permlevel': 0, 'permlevel': 0,
'role': 'System Manager', 'role': u'System Manager',
'submit': 1, 'submit': 1,
'write': 1 'write': 1
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 2,
'permlevel': 1, 'permlevel': 1,
'role': 'System Manager' 'role': u'System Manager'
}, },
# DocPerm # DocPerm
@ -78,20 +77,18 @@
'amend': 1, 'amend': 1,
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 3,
'permlevel': 0, 'permlevel': 0,
'role': 'Maintenance Manager', 'role': u'Maintenance Manager',
'submit': 1, 'submit': 1,
'write': 1 'write': 1
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 4,
'permlevel': 1, 'permlevel': 1,
'role': 'Maintenance Manager' 'role': u'Maintenance Manager'
}, },
# DocPerm # DocPerm
@ -99,145 +96,132 @@
'amend': 1, 'amend': 1,
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 5,
'permlevel': 0, 'permlevel': 0,
'role': 'Maintenance User', 'role': u'Maintenance User',
'submit': 1, 'submit': 1,
'write': 1 'write': 1
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 6,
'permlevel': 1, 'permlevel': 1,
'role': 'Maintenance User' 'role': u'Maintenance User'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'idx': 1, 'label': u'Customer Details',
'label': 'Customer Details', 'oldfieldtype': u'Section Break',
'oldfieldtype': 'Section Break', 'options': u'Simple',
'options': 'Simple',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Column Break', 'fieldtype': u'Column Break',
'idx': 2, 'oldfieldtype': u'Column Break',
'oldfieldtype': 'Column Break',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'customer', 'fieldname': u'customer',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 3,
'in_filter': 1, 'in_filter': 1,
'label': 'Customer', 'label': u'Customer',
'oldfieldname': 'customer', 'oldfieldname': u'customer',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'Customer', 'options': u'Customer',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
'reqd': 1, 'reqd': 1,
'search_index': 1, 'search_index': 1,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'customer_address', 'fieldname': u'customer_address',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 4, 'label': u'Customer Address',
'label': 'Customer Address', 'options': u'Address',
'options': 'Address',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1 'print_hide': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'contact_person', 'fieldname': u'contact_person',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 5, 'label': u'Contact Person',
'label': 'Contact Person', 'options': u'Contact',
'options': 'Contact',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1 'print_hide': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'customer_name', 'fieldname': u'customer_name',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 6, 'label': u'Name',
'label': 'Name',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'address_display', 'fieldname': u'address_display',
'fieldtype': 'Small Text', 'fieldtype': u'Small Text',
'idx': 7, 'label': u'Address',
'label': 'Address',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'contact_display', 'fieldname': u'contact_display',
'fieldtype': 'Small Text', 'fieldtype': u'Small Text',
'idx': 8, 'label': u'Contact',
'label': 'Contact',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'contact_mobile', 'fieldname': u'contact_mobile',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 9, 'label': u'Mobile No',
'label': 'Mobile No',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'contact_email', 'fieldname': u'contact_email',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 10, 'label': u'Contact Email',
'label': 'Contact Email',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'company', 'fieldname': u'company',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 11,
'in_filter': 1, 'in_filter': 1,
'label': 'Company', 'label': u'Company',
'oldfieldname': 'company', 'oldfieldname': u'company',
'oldfieldtype': 'Select', 'oldfieldtype': u'Select',
'options': 'link:Company', 'options': u'link:Company',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
'reqd': 1, 'reqd': 1,
@ -246,15 +230,14 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'fiscal_year', 'fieldname': u'fiscal_year',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 12,
'in_filter': 1, 'in_filter': 1,
'label': 'Fiscal Year', 'label': u'Fiscal Year',
'oldfieldname': 'fiscal_year', 'oldfieldname': u'fiscal_year',
'oldfieldtype': 'Select', 'oldfieldtype': u'Select',
'options': 'link:Fiscal Year', 'options': u'link:Fiscal Year',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
'reqd': 1, 'reqd': 1,
@ -263,151 +246,140 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Column Break', 'fieldtype': u'Column Break',
'idx': 13, 'oldfieldtype': u'Column Break',
'oldfieldtype': 'Column Break',
'permlevel': 0, 'permlevel': 0,
'width': '50%' 'width': u'50%'
}, },
# DocField # DocField
{ {
'default': 'Today', 'default': u'Today',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'mntc_date', 'fieldname': u'mntc_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'idx': 14, 'label': u'Maintenance Date',
'label': 'Maintenance Date',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'mntc_date', 'oldfieldname': u'mntc_date',
'oldfieldtype': 'Date', 'oldfieldtype': u'Date',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'mntc_time', 'fieldname': u'mntc_time',
'fieldtype': 'Time', 'fieldtype': u'Time',
'idx': 15, 'label': u'Maintenance Time',
'label': 'Maintenance Time',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'mntc_time', 'oldfieldname': u'mntc_time',
'oldfieldtype': 'Time', 'oldfieldtype': u'Time',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'default': 'Draft', 'default': u'Draft',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'status', 'fieldname': u'status',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 16, 'label': u'Status',
'label': 'Status',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'status', 'oldfieldname': u'status',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'options': '\nDraft\nCancelled\nSubmitted', 'options': u'\nDraft\nCancelled\nSubmitted',
'permlevel': 1, 'permlevel': 1,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'amended_from', 'fieldname': u'amended_from',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 17, 'label': u'Amended From',
'label': 'Amended From',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'amended_from', 'oldfieldname': u'amended_from',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'permlevel': 1, 'permlevel': 1,
'print_hide': 1, 'print_hide': 1,
'width': '150px' 'width': u'150px'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'amendment_date', 'fieldname': u'amendment_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'idx': 18, 'label': u'Amendment Date',
'label': 'Amendment Date',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'amendment_date', 'oldfieldname': u'amendment_date',
'oldfieldtype': 'Date', 'oldfieldtype': u'Date',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
'width': '100px' 'width': u'100px'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'territory', 'fieldname': u'territory',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 19, 'label': u'Territory',
'label': 'Territory', 'options': u'Territory',
'options': 'Territory',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1 'print_hide': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'customer_group', 'fieldname': u'customer_group',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 20, 'label': u'Customer Group',
'label': 'Customer Group', 'options': u'Customer Group',
'options': 'Customer Group',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1 'print_hide': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'idx': 21, 'label': u'Maintenance Details',
'label': 'Maintenance Details', 'oldfieldtype': u'Section Break',
'oldfieldtype': 'Section Break', 'options': u'Simple',
'options': 'Simple',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'completion_status', 'fieldname': u'completion_status',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 22, 'label': u'Completion Status',
'label': 'Completion Status', 'oldfieldname': u'completion_status',
'oldfieldname': 'completion_status', 'oldfieldtype': u'Select',
'oldfieldtype': 'Select', 'options': u'\nPartially Completed\nFully Completed',
'options': '\nPartially Completed\nFully Completed',
'permlevel': 0, 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'default': 'Unscheduled', 'default': u'Unscheduled',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'maintenance_type', 'fieldname': u'maintenance_type',
'fieldtype': 'Select', 'fieldtype': u'Select',
'idx': 23,
'in_filter': 1, 'in_filter': 1,
'label': 'Maintenance Type', 'label': u'Maintenance Type',
'oldfieldname': 'maintenance_type', 'oldfieldname': u'maintenance_type',
'oldfieldtype': 'Select', 'oldfieldtype': u'Select',
'options': '\nScheduled\nUnscheduled\nBreakdown', 'options': u'\nScheduled\nUnscheduled\nBreakdown',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1,
'search_index': 0 'search_index': 0
@ -415,56 +387,52 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Column Break', 'fieldtype': u'Column Break',
'idx': 24, 'oldfieldtype': u'Column Break',
'oldfieldtype': 'Column Break',
'permlevel': 0, 'permlevel': 0,
'width': '50%' 'width': u'50%'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'sales_order_no', 'fieldname': u'sales_order_no',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 25,
'in_filter': 1, 'in_filter': 1,
'label': 'Sales Order No', 'label': u'Sales Order No',
'oldfieldname': 'sales_order_no', 'oldfieldname': u'sales_order_no',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'Sales Order', 'options': u'Sales Order',
'permlevel': 0, 'permlevel': 0,
'search_index': 1, 'search_index': 1,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'customer_issue_no', 'fieldname': u'customer_issue_no',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 26,
'in_filter': 1, 'in_filter': 1,
'label': 'Customer Issue No', 'label': u'Customer Issue No',
'oldfieldname': 'customer_issue_no', 'oldfieldname': u'customer_issue_no',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'Customer Issue', 'options': u'Customer Issue',
'permlevel': 0, 'permlevel': 0,
'search_index': 1, 'search_index': 1,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Button', 'fieldtype': u'Button',
'idx': 27, 'label': u'Get Items',
'label': 'Get Items', 'oldfieldtype': u'Button',
'oldfieldtype': 'Button', 'options': u'fetch_items',
'options': 'fetch_items',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
'report_hide': 1 'report_hide': 1
@ -472,46 +440,42 @@
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'idx': 28, 'oldfieldtype': u'Section Break',
'oldfieldtype': 'Section Break', 'options': u'Simple',
'options': 'Simple',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'maintenance_visit_details', 'fieldname': u'maintenance_visit_details',
'fieldtype': 'Table', 'fieldtype': u'Table',
'idx': 29, 'label': u'Maintenance Visit Detail',
'label': 'Maintenance Visit Detail', 'oldfieldname': u'maintenance_visit_details',
'oldfieldname': 'maintenance_visit_details', 'oldfieldtype': u'Table',
'oldfieldtype': 'Table', 'options': u'Maintenance Visit Detail',
'options': 'Maintenance Visit Detail',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'idx': 30, 'label': u'Feedback',
'label': 'Feedback', 'oldfieldtype': u'Section Break',
'oldfieldtype': 'Section Break',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'customer_feedback', 'fieldname': u'customer_feedback',
'fieldtype': 'Small Text', 'fieldtype': u'Small Text',
'idx': 31, 'label': u'Customer Feedback',
'label': 'Customer Feedback', 'oldfieldname': u'customer_feedback',
'oldfieldname': 'customer_feedback', 'oldfieldtype': u'Small Text',
'oldfieldtype': 'Small Text',
'permlevel': 0 'permlevel': 0
} }
] ]

View File

@ -3,59 +3,58 @@
# These values are common in all dictionaries # These values are common in all dictionaries
{ {
'creation': '2011-07-08 11:14:15', 'creation': '2011-07-07 17:47:52',
'docstatus': 0, 'docstatus': 0,
'modified': '2011-07-26 00:59:27', 'modified': '2012-03-21 14:56:46',
'modified_by': 'Administrator', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'_last_update': '1311622167', '_last_update': u'1322549701',
'allow_attach': 1, 'allow_attach': 1,
'autoname': 'field:rename_doctype', 'autoname': u'field:rename_doctype',
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'module': 'Utilities', 'module': u'Utilities',
'name': '__common__', 'name': '__common__',
'section_style': 'Simple', 'section_style': u'Simple',
'show_in_menu': 0, 'show_in_menu': 0,
'version': 7 'version': 8
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Bulk Rename Tool', 'parent': u'Bulk Rename Tool',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType', 'parenttype': u'DocType'
'permlevel': 0
}, },
# These values are common for all DocPerm # These values are common for all DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'name': '__common__', 'name': '__common__',
'parent': 'Bulk Rename Tool', 'parent': u'Bulk Rename Tool',
'parentfield': 'permissions', 'parentfield': u'permissions',
'parenttype': 'DocType', 'parenttype': u'DocType',
'read': 1, 'read': 1,
'role': 'System Manager' 'role': u'System Manager'
}, },
# DocType, Bulk Rename Tool # DocType, Bulk Rename Tool
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Bulk Rename Tool' 'name': u'Bulk Rename Tool'
}, },
# DocPerm # DocPerm
{ {
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 1,
'permlevel': 0, 'permlevel': 0,
'submit': 1, 'submit': 1,
'write': 1 'write': 1
@ -63,37 +62,38 @@
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 2,
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'rename_doctype', 'fieldname': u'rename_doctype',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 1, 'label': u'Rename DocType',
'label': 'Rename DocType', 'options': u'Suggest',
'options': 'Suggest', 'permlevel': 0,
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'file_list', 'fieldname': u'file_list',
'fieldtype': 'Text', 'fieldtype': u'Text',
'idx': 2, 'hidden': 1,
'label': 'File List' 'label': u'File List',
'no_copy': 1,
'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Button', 'fieldtype': u'Button',
'idx': 3, 'label': u'Rename',
'label': 'Rename', 'options': u'do_rename',
'options': 'do_rename' 'permlevel': 0
} }
] ]

View File

@ -1,214 +0,0 @@
# ERPNext - web based ERP (http://erpnext.com)
# Copyright (C) 2012 Web Notes Technologies Pvt Ltd
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Please edit this list and import only required elements
import webnotes
from webnotes.utils import add_days, add_months, add_years, cint, cstr, date_diff, default_fields, flt, fmt_money, formatdate, generate_hash, getTraceback, get_defaults, get_first_day, get_last_day, getdate, has_common, month_name, now, nowdate, replace_newlines, sendmail, set_default, str_esc_quote, user_format, validate_email_add
from webnotes.model import db_exists
from webnotes.model.doc import Document, addchild, removechild, getchildren, make_autoname, SuperDocType
from webnotes.model.doclist import getlist, copy_doclist
from webnotes.model.code import get_obj, get_server_obj, run_server_obj, updatedb, check_syntax
from webnotes import session, form, is_testing, msgprint, errprint
set = webnotes.conn.set
sql = webnotes.conn.sql
get_value = webnotes.conn.get_value
in_transaction = webnotes.conn.in_transaction
convert_to_lists = webnotes.conn.convert_to_lists
# -----------------------------------------------------------------------------------------
class DocType:
def __init__(self,doc,doclist=[]):
self.doc = doc
self.doclist = doclist
# All root file groups(where parent_group is null).
def get_root_file_grps(self):
fl_grp = convert_to_lists(sql("select name,group_name,ifnull(can_edit,''),ifnull(can_view,''),owner from `tabFile Group` where (parent_group='' or parent_group is null)"))
return fl_grp
# Get children of selected file group.
def get_children(self,grp):
ret = {}
ret['parent_grp'] = grp
fl_grp = convert_to_lists(sql("select name,group_name,ifnull(can_edit,''),ifnull(can_view,''),owner from `tabFile Group` where parent_group=%s",grp))
ret['fl_grp'] = fl_grp or ''
fl = convert_to_lists(sql("select name,ifnull(file_name,''),ifnull(file_list,''),ifnull(can_edit,''),ifnull(can_view,''),owner from tabFile where file_group=%s and (file_name != '' and file_name is not null)",grp))
ret['fl'] = fl or ''
return ret
# Create a new file group.
def create_new_grp(self,arg):
arg = eval(arg)
grp = Document('File Group')
grp.group_name = arg['grp_nm']
grp.parent_group = arg['parent_grp']
grp.description = arg['desc']
grp.name = arg['grp_nm']
grp.save(1)
msgprint('Created a New Group')
return grp.name
# Create a new file.
def create_new_file(self,arg):
arg = eval(arg)
f = Document('File')
f.file_name = arg['file_name']
f.description = arg['desc']
f.type = arg['type']
f.file_group = arg['file_grp']
f_obj = get_obj(doc=f)
f_obj.validate()
f_obj.doc.save(1)
msgprint('Created a New File')
ret = {
'name' : f_obj.doc.name,
'label' : f_obj.doc.file_name
}
return ret
# Update changes done to selected file group.
def update_grp(self,arg):
arg = eval(arg)
sql("update `tabFile Group` set group_name=%s, parent_group=%s, description=%s where name=%s",(arg['grp_nm'],arg['parent_grp'],arg['desc'],arg['name']))
msgprint("Changes are saved.")
return arg['name']
# Update changes done to selected file.
def update_file(self,arg):
arg = eval(arg)
sql("update `tabFile` set description=%s, file_group=%s where name=%s",(arg['desc'],arg['file_grp'],arg['name']))
msgprint("Changes are saved.")
return arg['name']
# Get details of selected file.
def get_file_details(self,file_id):
file_det = convert_to_lists(sql("select name,file_name, description, file_group, file_list from tabFile where name=%s",file_id))
file_det = {
'name' : file_det[0][0] or '',
'file_name' : file_det[0][1] or '',
'description' : file_det[0][2] or '',
'file_group' : file_det[0][3] or '',
'file_list' : file_det[0][4] or ''
}
return file_det
# Delete File Data and File record.
def delete(self,arg):
arg = eval(arg)
if arg['dt'] == 'File Group':
sql("delete from `tabFile Group` where name= %s", arg['dn'])
elif arg['dt'] == 'File':
file_list = sql("select file_list from tabFile where name=%s", arg['dn'])[0][0] or ''
f_id = file_list.split(',')[-1]
if f_id:
sql("delete from `tabFile Data` where name=%s", f_id)
sql("delete from tabFile where name = %s", arg['dn'])
else:
pass
#Move to another group.
def move(self,arg):
msgprint('need to write code')
# Upload Image
def upload_many(self,form):
import os
# from file browser
if form.getvalue('form_name') == 'File Browser':
if form.getvalue('filedata'):
i = form['filedata']
#creat file data
fd = Document('File Data')
fd.blob_content = i.file.read()
fd.file_name = i.filename
file_det = form.getvalue('file_det').split('~~')
if(file_det[0] == 'NIL'):
file_desc = ''
else:
file_desc = file_det[0]
if(file_det[1] == 'NIL'):
file_grp = ''
return 'File Group is mandatory.'
raise Exception
else:
file_grp = file_det[1]
if "" in fd.file_name:
fd.file_name = fd.file_name.split("")[-1]
if '/' in fd.file_name:
fd.file_name = fd.file_name.split('/')[-1]
fd.save(1)
f = Document('File')
f.file_list = fd.file_name + ',' + fd.name
f.file_name = fd.file_name
f.description = file_desc
f.file_group = file_grp
f.save(1)
ret = {
'name' : f.name,
'file_name' : f.file_name
}
return ret
else:
return 'No file found.'
else:
return 'No file found.'
# Get all system roles.
def get_all_roles(self):
roles = convert_to_lists(sql("select name from tabRole"))
return roles
# Get details for selected File Group.
def get_fg_details(self,grp):
grp_det = convert_to_lists(sql("select name,group_name, ifnull(parent_group,''), ifnull(description,''), ifnull(can_edit,''),ifnull(can_view,''),owner from `tabFile Group` where name=%s",grp))
grp_det = {
'Name' : grp_det[0][0] or '',
'Group Name' : grp_det[0][1] or '',
'Parent Group' : grp_det[0][2] or '',
'Description' : grp_det[0][3] or '',
'Can Edit' : grp_det[0][4] or '',
'Can View' : grp_det[0][5] or '',
'Owner' : grp_det[0][6] or ''
}
return grp_det
# Update Edit/ View privileges to selected File/ File Group.
def update_privileges(self,arg):
arg = eval(arg)
sql("update `tab%s` set can_edit='%s', can_view='%s' where name='%s'" % (arg['type'],arg['edit_roles'], arg['view_roles'], arg['name']))
msgprint('Privileges updated.')
# Get Edit/ View privileges from selected File/ File Group.
def get_privileges(self,arg):
arg = eval(arg)
privilege = convert_to_lists(sql("select ifnull(can_edit,''), ifnull(can_view,''),owner from `tab%s` where name='%s'" % (arg['dt'],arg['dn'])))
return privilege

View File

@ -1,31 +0,0 @@
# DocType, File Browser Control
[
# These values are common in all dictionaries
{
'creation': '2009-10-28 10:25:03',
'docstatus': 0,
'modified': '2010-12-27 11:09:53',
'modified_by': 'umair@iwebnotes.com',
'owner': 'Administrator'
},
# These values are common for all DocType
{
'colour': 'White:FFF',
'doctype': 'DocType',
'issingle': 1,
'module': 'Utilities',
'name': '__common__',
'section_style': 'Simple',
'server_code_error': ' ',
'show_in_menu': 0,
'version': 81
},
# DocType, File Browser Control
{
'doctype': 'DocType',
'name': 'File Browser Control'
}
]

View File

@ -5,221 +5,204 @@
{ {
'creation': '2010-08-08 17:09:03', 'creation': '2010-08-08 17:09:03',
'docstatus': 0, 'docstatus': 0,
'modified': '2010-09-20 14:06:57', 'modified': '2012-03-21 14:44:47',
'modified_by': 'Administrator', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'autoname': 'GLMDetail.#####', 'autoname': u'GLMDetail.#####',
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'istable': 1, 'istable': 1,
'module': 'Utilities', 'module': u'Utilities',
'name': '__common__', 'name': '__common__',
'section_style': 'Tray', 'section_style': u'Tray',
'server_code_error': ' ', 'server_code_error': u' ',
'show_in_menu': 0, 'show_in_menu': 0,
'version': 3 'version': 4
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Data', 'fieldtype': u'Data',
'name': '__common__', 'name': '__common__',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'parent': 'GL Mapper Detail', 'parent': u'GL Mapper Detail',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType', 'parenttype': u'DocType',
'permlevel': 0 'permlevel': 0
}, },
# DocType, GL Mapper Detail # DocType, GL Mapper Detail
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'GL Mapper Detail' 'name': u'GL Mapper Detail'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'table_field', 'fieldname': u'table_field',
'idx': 1, 'label': u'Table Field',
'label': 'Table Field', 'oldfieldname': u'table_field'
'oldfieldname': 'table_field'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'account', 'fieldname': u'account',
'idx': 2, 'label': u'Account',
'label': 'Account', 'oldfieldname': u'account',
'oldfieldname': 'account',
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'debit', 'fieldname': u'debit',
'idx': 3, 'label': u'Debit',
'label': 'Debit', 'oldfieldname': u'debit',
'oldfieldname': 'debit',
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'credit', 'fieldname': u'credit',
'idx': 4, 'label': u'Credit',
'label': 'Credit', 'oldfieldname': u'credit',
'oldfieldname': 'credit',
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'cost_center', 'fieldname': u'cost_center',
'idx': 5, 'label': u'Cost Center',
'label': 'Cost Center', 'oldfieldname': u'cost_center',
'oldfieldname': 'cost_center',
'reqd': 0 'reqd': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'against', 'fieldname': u'against',
'idx': 6, 'label': u'Against',
'label': 'Against', 'oldfieldname': u'against',
'oldfieldname': 'against',
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'remarks', 'fieldname': u'remarks',
'idx': 7, 'label': u'Remarks',
'label': 'Remarks',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'remarks', 'oldfieldname': u'remarks',
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'voucher_type', 'fieldname': u'voucher_type',
'idx': 8, 'label': u'Voucher Type',
'label': 'Voucher Type', 'oldfieldname': u'voucher_type',
'oldfieldname': 'voucher_type',
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'voucher_no', 'fieldname': u'voucher_no',
'idx': 9, 'label': u'Voucher No',
'label': 'Voucher No', 'oldfieldname': u'voucher_no',
'oldfieldname': 'voucher_no',
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'description': 'The date at which current entry will get or has actually executed.', 'description': u'The date at which current entry will get or has actually executed.',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'posting_date', 'fieldname': u'posting_date',
'idx': 10, 'label': u'Posting Date',
'label': 'Posting Date', 'oldfieldname': u'posting_date',
'oldfieldname': 'posting_date',
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'description': 'The date at which current entry is made in system.', 'description': u'The date at which current entry is made in system.',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'transaction_date', 'fieldname': u'transaction_date',
'idx': 11, 'label': u'Transaction Date',
'label': 'Transaction Date', 'oldfieldname': u'transaction_date',
'oldfieldname': 'transaction_date',
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'aging_date', 'fieldname': u'aging_date',
'idx': 12, 'label': u'Aging Date',
'label': 'Aging Date', 'oldfieldname': u'aging_date',
'oldfieldname': 'aging_date',
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'fiscal_year', 'fieldname': u'fiscal_year',
'idx': 13,
'in_filter': 1, 'in_filter': 1,
'label': 'Fiscal Year', 'label': u'Fiscal Year',
'oldfieldname': 'fiscal_year', 'oldfieldname': u'fiscal_year',
'reqd': 1, 'reqd': 1,
'search_index': 0 'search_index': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'against_voucher', 'fieldname': u'against_voucher',
'idx': 14, 'label': u'Against Voucher',
'label': 'Against Voucher', 'oldfieldname': u'against_voucher'
'oldfieldname': 'against_voucher'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'against_voucher_type', 'fieldname': u'against_voucher_type',
'idx': 15, 'label': u'Against Voucher Type',
'label': 'Against Voucher Type', 'oldfieldname': u'against_voucher_type'
'oldfieldname': 'against_voucher_type'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'company', 'fieldname': u'company',
'idx': 16,
'in_filter': 1, 'in_filter': 1,
'label': 'Company', 'label': u'Company',
'oldfieldname': 'company', 'oldfieldname': u'company',
'search_index': 0 'search_index': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'is_opening', 'fieldname': u'is_opening',
'idx': 17, 'label': u'Is Opening',
'label': 'Is Opening', 'oldfieldname': u'is_opening'
'oldfieldname': 'is_opening'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'is_advance', 'fieldname': u'is_advance',
'idx': 18, 'label': u'Is Advance',
'label': 'Is Advance', 'oldfieldname': u'is_advance'
'oldfieldname': 'is_advance'
} }
] ]

View File

@ -1,98 +0,0 @@
// ERPNext - web based ERP (http://erpnext.com)
// Copyright (C) 2012 Web Notes Technologies Pvt Ltd
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
class DocType:
def __init__(self, d, dl):
self.doc, self.doclist = d,dl
def get_children(self, arg='', only_type='', in_roles=[]):
type_cond = only_type and (" and menu_item_type='%s'" % only_type) or ''
if globals().has_key('version') and version=='v170':
import webnotes
roles = webnotes.user.get_roles()
all_read = webnotes.user.can_read
else:
roles = in_roles or session['data']['roles']
all_read = session['data']['all_readtypes']
cl = sql("select name, menu_item_label, menu_item_type, link_id, link_content, has_children, icon, `order`, criteria_name, doctype_fields, onload from `tabMenu Item` where ifnull(disabled,'No')!='Yes' and ifnull(parent_menu_item,'')='%s' %s order by `order` asc" % (arg, type_cond), as_dict=1)
ol = []
for c in cl:
c['has_children'] = cint(c['has_children'])
c['order'] = cint(c['order'])
for k in c.keys():
if c[k]==None: c[k] = ''
# check permission
if c['menu_item_type'] in ('DocType','Single','Report'):
if c['link_id'] in all_read:
ol.append(c)
elif c['menu_item_type']=='Page':
# page
if c['link_id'].startswith('_'):
ol.append(c)
elif has_common([r[0] for r in sql("select role from `tabPage Role` where parent=%s", c['link_id'])], roles):
ol.append(c)
elif cstr(c['menu_item_type'])=='':
# sections
if has_common([r[0] for r in sql("select role from `tabMenu Item Role` where parent=%s", c['name'])], roles):
ol.append(c)
else:
ol.append(c)
return ol
def get_dt_details(self, arg):
dt, fl = arg.split('~~~')
out = {}
# filters
# -------
sf = sql("select search_fields from tabDocType where name=%s", dt)[0][0] or ''
sf = [s.strip() for s in sf.split(',')]
if sf and sf[0]:
res = sql("select fieldname, label, fieldtype, options from tabDocField where parent='%s' and fieldname in (%s)" % (dt, '"'+'","'.join(sf)+'"'))
else:
res = []
res = [[c or '' for c in r] for r in res]
for r in res:
if r[2]=='Select' and r[3] and r[3].startswith('link:'):
tdt = r[3][5:]
ol = sql("select name from `tab%s` where docstatus!=2 order by name asc" % tdt)
r[3] = NEWLINE.join([''] + [o[0] for o in ol])
if not res:
out['filters'] = [['name', 'ID', 'Data', '']]
else:
out['filters'] = res
# columns
# -------
fl = fl.split(NEWLINE)
fl = [f.split(',')[0] for f in fl]
res = []
for f in fl:
res += [[c or '' for c in r] for r in sql("select fieldname, label, fieldtype, options from tabDocField where parent='%s' and fieldname='%s'" % (dt, f))]
out['columns'] = [['name', 'ID', 'Link', dt]] + res
return out

View File

@ -1,281 +0,0 @@
# ERPNext - web based ERP (http://erpnext.com)
# Copyright (C) 2012 Web Notes Technologies Pvt Ltd
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Please edit this list and import only required elements
import webnotes
from webnotes.utils import cint, cstr
from webnotes.model.doc import Document
from webnotes.model.code import get_obj
from webnotes import session, form, msgprint, errprint
sql = webnotes.conn.sql
convert_to_lists = webnotes.conn.convert_to_lists
# -----------------------------------------------------------------------------------------
class DocType:
def __init__(self, d, dl):
self.doc, self.doclist = d,dl
# --------------------------------------------------------------
def get_children(self, arg='', only_type='', in_roles=[]):
type_cond = only_type and (" and menu_item_type='%s'" % only_type) or ''
import webnotes
roles = webnotes.user.get_roles()
all_read = webnotes.user.can_get_report
cl = sql("select name, menu_item_label, menu_item_type, link_id, link_content, has_children, icon, `order`, criteria_name, doctype_fields, onload from `tabMenu Item` where ifnull(disabled,'No')!='Yes' and ifnull(parent_menu_item,'')='%s' %s order by `order` asc" % (arg, type_cond), as_dict=1)
ol = []
for c in cl:
c['has_children'] = cint(c['has_children'])
c['order'] = cint(c['order'])
for k in c.keys():
if c[k]==None: c[k] = ''
# check permission
if c['menu_item_type'] in ('DocType','Single','Report'):
if c['link_id'] in all_read:
ol.append(c)
elif c['menu_item_type']=='Page':
# page
if c['link_id'].startswith('_'):
ol.append(c)
elif has_common([r[0] for r in sql("select role from `tabPage Role` where parent=%s", c['link_id'])], roles):
ol.append(c)
elif cstr(c['menu_item_type'])=='':
# sections
if has_common([r[0] for r in sql("select role from `tabMenu Item Role` where parent=%s", c['name'])], roles):
ol.append(c)
else:
ol.append(c)
return ol
# --------------------------------------------------------------
def has_result(self, dt):
return sql("select name from `tab%s` limit 1" % dt) and 'Yes' or 'No'
# --------------------------------------------------------------
def is_submittable(self, dt):
return sql("select name from tabDocPerm where parent=%s and ifnull(submit,0)=1 and docstatus<1 limit 1", dt)
# --------------------------------------------------------------
def can_cancel(self, dt):
return sql('select name from tabDocPerm where parent="%s" and ifnull(cancel,0)=1 and docstatus<1 and role in ("%s") limit 1' % (dt, '", "'.join(webnotes.user.get_roles())))
# --------------------------------------------------------------
def get_dt_trend(self, dt):
ret = {}
for r in sql("select datediff(now(),modified), count(*) from `tab%s` where datediff(now(),modified) between 0 and 30 group by date(modified)" % dt):
ret[cint(r[0])] = cint(r[1])
return ret
# --------------------------------------------------------------
def get_columns(self, out, sf, fl, dt):
if not fl:
fl = sf
res = []
for f in fl:
if f:
res += [[c or '' for c in r] for r in sql("select fieldname, label, fieldtype, options from tabDocField where parent='%s' and fieldname='%s'" % (dt, f))]
return res
# --------------------------------------------------------------
def check_user_tags(self, dt):
try:
sql("select `_user_tags` from `tab%s` limit 1" % dt)
except Exception, e:
if e.args[0] == 1054:
webnotes.conn.commit()
sql("alter table `tab%s` add column `_user_tags` varchar(180)" % dt)
webnotes.conn.begin()
# --------------------------------------------------------------
# NOTE: THIS SHOULD BE CACHED IN DOCTYPE CACHE
# --------------------------------------------------------------
def get_dt_details(self, arg):
dt, fl, color_map = eval(arg)
submittable = self.is_submittable(dt) and 1 or 0
out = {
'submittable':(self.is_submittable(dt) and 1 or 0),
'can_cancel':(self.can_cancel(dt) and 1 or 0)
}
# filters
# -------
sf = sql("select search_fields from tabDocType where name=%s", dt)[0][0] or ''
# get fields from in_filter (if not in search_fields)
if not sf.strip():
res = sql("select fieldname, label, fieldtype, options from tabDocField where parent=%s and `in_filter` = 1 and ifnull(fieldname,'') != ''", dt)
sf = [s[0] for s in res]
else:
sf = [s.strip() for s in sf.split(',')]
res = sql("select fieldname, label, fieldtype, options from tabDocField where parent='%s' and fieldname in (%s)" % (dt, '"'+'","'.join(sf)+'"'))
# select "link" options
res = [[c or '' for c in r] for r in res]
for r in res:
if r[2]=='Select' and r[3] and r[3].startswith('link:'):
tdt = r[3][5:]
ol = sql("select name from `tab%s` where docstatus!=2 order by name asc" % tdt)
r[3] = "\n".join([''] + [o[0] for o in ol])
if not res:
out['filters'] = [['name', 'ID', 'Data', '']]
else:
out['filters'] = [['name', 'ID', 'Data', '']] + res
# columns
# -------
res = self.get_columns(out, sf, fl, dt)
self.check_user_tags(dt)
out['columns'] = [['name', 'ID', 'Link', dt], ['modified', 'Modified', 'Data', ''], ['_user_tags', 'Tags', 'Data', '']] + res
if cint(color_map):
out['color_map'] = self.get_color_map()
return out
# --------------------------------------------------------------
def get_color_map(self):
d={}
try:
for tag in sql("select name, tag_color from tabTag"):
d[tag[0]] = tag[1]
except Exception, e:
if e.args[0] in (1146, 1054):
return {}
else:
raise e
return d
# --------------------------------------------------------------
def get_trend(self, dt):
return {'trend': self.get_dt_trend(dt)}
# --------------------------------------------------------------
def get_tags(self, dt, dn):
tl = sql("select ifnull(_user_tags,'') from tab%s where name=%s" % (dt,'%s'), dn)[0][0]
return tl and tl.split(',') or []
# --------------------------------------------------------------
def update_tags(self, dt, dn, tl):
if len(','.join(tl)) > 179:
msgprint("Too many tags")
raise Exception
tl = filter(lambda x: x, tl)
# update in table
sql("update tab%s set _user_tags=%s where name=%s" % (dt,'%s','%s'), (',' + ','.join(tl), dn))
# update in feed (if present)
sql("update tabFeed set _user_tags=%s where doc_label=%s and doc_name=%s", (',' + ','.join(tl), dt, dn))
# --------------------------------------------------------------
def _add_tag_to_master(self, tag, color):
if color:
t, cond = color, ("on duplicate key update tag_color='%s'" % color)
else:
t, cond = 'Default', ''
sql("insert ignore into tabTag(name, tag_color) values ('%s', '%s') %s" % (tag, t, cond))
def create_tag(self, tag, color):
try:
self._add_tag_to_master(tag, color)
except Exception, e:
# add the table
if e.args[0]==1146:
webnotes.conn.commit()
sql("create table `tabTag`(`name` varchar(180), tag_color varchar(180), primary key (`name`))")
webnotes.conn.begin()
self._add_tag_to_master(tag, color)
# udpate the color column
if e.args[0]==1054:
webnotes.conn.commit()
sql("alter table tabTag add column tag_color varchar(180)")
webnotes.conn.begin()
self._add_tag_to_master(tag, color)
else:
raise e
# --------------------------------------------------------------
def add_tag(self,arg):
dt, dn, tag, color = eval(arg)
# create tag in tag table
self.create_tag(tag, color)
# add in _user_tags
tl = self.get_tags(dt, dn)
if not tag in tl:
tl.append(tag)
self.update_tags(dt, dn, tl)
return tag
# --------------------------------------------------------------
def remove_tag(self,arg):
dt, dn, tag = eval(arg)
tl = self.get_tags(dt, dn)
self.update_tags(dt, dn, filter(lambda x:x!=tag, tl))
# --------------------------------------------------------------
def delete_items(self,arg):
il = eval(arg)
from webnotes.model import delete_doc
for d in il:
dt_obj = get_obj(d[0], d[1])
if hasattr(dt_obj, 'on_trash'):
dt_obj.on_trash()
delete_doc(d[0], d[1])
# --------------------------------------------------------------
def archive_items(self,arg):
arg = eval(arg)
from webnotes.utils.archive import archive_doc
for d in arg['items']:
archive_doc(d[0], d[1], arg['action']=='Restore' and 1 or 0)

View File

@ -1,31 +0,0 @@
# DocType, Menu Control
[
# These values are common in all dictionaries
{
'creation': '2009-06-09 13:43:49',
'docstatus': 0,
'modified': '2011-01-03 12:01:42',
'modified_by': 'sneha@webnotestech.com',
'owner': 'Administrator'
},
# These values are common for all DocType
{
'colour': 'White:FFF',
'doctype': 'DocType',
'issingle': 1,
'module': 'Utilities',
'name': '__common__',
'section_style': 'Simple',
'server_code_error': ' ',
'show_in_menu': 0,
'version': 38
},
# DocType, Menu Control
{
'doctype': 'DocType',
'name': 'Menu Control'
}
]

View File

@ -5,92 +5,88 @@
{ {
'creation': '2010-08-08 17:09:19', 'creation': '2010-08-08 17:09:19',
'docstatus': 0, 'docstatus': 0,
'modified': '2011-04-19 11:50:09', 'modified': '2012-03-21 14:56:21',
'modified_by': 'Administrator', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'_last_update': '1308741898',
'allow_copy': 1, 'allow_copy': 1,
'allow_email': 1, 'allow_email': 1,
'allow_print': 1, 'allow_print': 1,
'colour': 'Light Blue:DEF', 'colour': u'Light Blue:DEF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'hide_toolbar': 1, 'hide_toolbar': 1,
'in_create': 0, 'in_create': 0,
'issingle': 1, 'issingle': 1,
'module': 'Utilities', 'module': u'Utilities',
'name': '__common__', 'name': '__common__',
'read_only': 1, 'read_only': 1,
'section_style': 'Simple', 'section_style': u'Simple',
'server_code_error': ' ', 'server_code_error': u' ',
'show_in_menu': 1, 'show_in_menu': 1,
'version': 174 'version': 173
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Reposting Tool', 'parent': u'Reposting Tool',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType', 'parenttype': u'DocType',
'permlevel': 0 'permlevel': 0
}, },
# These values are common for all DocPerm # These values are common for all DocPerm
{ {
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 1,
'name': '__common__', 'name': '__common__',
'parent': 'Reposting Tool', 'parent': u'Reposting Tool',
'parentfield': 'permissions', 'parentfield': u'permissions',
'parenttype': 'DocType', 'parenttype': u'DocType',
'permlevel': 0, 'permlevel': 0,
'read': 1, 'read': 1,
'role': 'System Manager', 'role': u'System Manager',
'write': 1 'write': 1
}, },
# DocType, Reposting Tool # DocType, Reposting Tool
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Reposting Tool' 'name': u'Reposting Tool'
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm' 'doctype': u'DocPerm'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'recalculate_mar_&_actual_qty', 'fieldname': u'recalculate_mar_&_actual_qty',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 1, 'label': u'Recalculate MAR & Actual Qty'
'label': 'Recalculate MAR & Actual Qty'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Button', 'fieldtype': u'Button',
'idx': 2, 'label': u'Repost Bin',
'label': 'Repost Bin', 'trigger': u'Client'
'trigger': 'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Button', 'fieldtype': u'Button',
'idx': 3, 'label': u'Repost Account Balances',
'label': 'Repost Account Balances', 'trigger': u'Client'
'trigger': 'Client'
} }
] ]

View File

@ -1,24 +0,0 @@
// ERPNext - web based ERP (http://erpnext.com)
// Copyright (C) 2012 Web Notes Technologies Pvt Ltd
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
cur_frm.cscript.refresh = function(doc, cdt, cdn) {
if(doc.send_to == 'Customer Group')
unhide_field('customer_group_name');
else
hide_field('customer_group_name');
}
cur_frm.cscript.send_to = cur_frm.cscript.refresh;

View File

@ -1,75 +0,0 @@
# ERPNext - web based ERP (http://erpnext.com)
# Copyright (C) 2012 Web Notes Technologies Pvt Ltd
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Please edit this list and import only required elements
import webnotes
from webnotes.utils import add_days, add_months, add_years, cint, cstr, date_diff, default_fields, flt, fmt_money, formatdate, generate_hash, getTraceback, get_defaults, get_first_day, get_last_day, getdate, has_common, month_name, now, nowdate, replace_newlines, sendmail, set_default, str_esc_quote, user_format, validate_email_add
from webnotes.model import db_exists
from webnotes.model.doc import Document, addchild, removechild, getchildren, make_autoname, SuperDocType
from webnotes.model.doclist import getlist, copy_doclist
from webnotes.model.code import get_obj, get_server_obj, run_server_obj, updatedb, check_syntax
from webnotes import session, form, is_testing, msgprint, errprint
set = webnotes.conn.set
sql = webnotes.conn.sql
get_value = webnotes.conn.get_value
in_transaction = webnotes.conn.in_transaction
convert_to_lists = webnotes.conn.convert_to_lists
# -----------------------------------------------------------------------------------------
class DocType:
def __init__(self, doc, doclist=[]):
self.doc = doc
self.doclist = doclist
def create_receiver_table(self):
if self.doc.send_to:
self.doc.clear_table(self.doclist, 'receiver_details')
rec = ''
if self.doc.send_to == 'All Customer':
rec = sql("select customer_name, CONCAT(ifnull(first_name,''),'',ifnull(last_name,'')), mobile_no from `tabContact` where ifnull(customer_name,'') !='' and ifnull(mobile_no,'')!=''")
elif self.doc.send_to == 'Customer Group' and self.doc.customer_group_name:
rec = sql("select t2.customer_name, CONCAT(ifnull(first_name,''),'',ifnull(last_name,'')), t1.mobile_no from `tabContact` t1, `tabCustomer` t2 where t2.name = t1.customer_name and ifnull(t1.mobile_no,'')!='' and t2.customer_group = '%s'"%self.doc.customer_group_name)
if not rec:
msgprint("Either customer having no contact or customer's contact does not have mobile no")
raise Exception
for d in rec:
ch = addchild(self.doc, 'receiver_details', 'Receiver Detail', 1, self.doclist)
ch.customer_name = d[0]
ch.receiver_name = d[1]
ch.mobile_no = d[2]
else:
msgprint("Please select 'Send To' field")
def send_sms(self):
if not self.doc.message:
msgprint("Please type the message before sending")
elif not getlist(self.doclist, 'receiver_details'):
msgprint("Receiver Table is blank.")
else:
receiver_list = []
for d in getlist(self.doclist, 'receiver_details'):
if d.mobile_no:
receiver_list.append(d.mobile_no)
if receiver_list:
msgprint(get_obj('SMS Control', 'SMS Control').send_sms(receiver_list, self.doc.message))

File diff suppressed because one or more lines are too long

32
wnf.py
View File

@ -29,12 +29,32 @@ def replace_code(start, txt1, txt2, extn):
content = f.read() content = f.read()
if re.search(txt1, content): if re.search(txt1, content):
a = raw_input('Change in %s [y/n]?' % fpath) search_replace_with_prompt(fpath, txt1, txt2)
if a=='y':
with open(fpath, 'w') as f:
f.write(re.sub(txt1, txt2, content))
def search_replace_with_prompt(fpath, txt1, txt2):
print 'updated in %s' % fpath """ Search and replace all txt1 by txt2 in the file with confirmation"""
from termcolor import colored
with open(fpath, 'r') as f:
content = f.readlines()
tmp = []
for c in content:
if c.find(txt1) != -1:
print '\n', fpath
print colored(txt1, 'red').join(c[:-1].split(txt1))
a = raw_input('Do you want to Change [y/n]?')
if a=='y':
c = c.replace(txt1, txt2)
tmp.append(c)
with open(fpath, 'w') as f:
f.write(''.join(tmp))
print colored('Updated in %s' % fpath, 'green')
def setup_options(): def setup_options():
from optparse import OptionParser from optparse import OptionParser