mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-30 07:08:24 +00:00
sync with respect to file
This commit is contained in:
@@ -5,45 +5,47 @@
|
||||
{
|
||||
'creation': '2010-08-08 17:08:57',
|
||||
'docstatus': 0,
|
||||
'modified': '2010-09-20 14:06:57',
|
||||
'modified_by': 'yogesh@webnotestech.com',
|
||||
'owner': 'Administrator'
|
||||
'modified': '2012-03-21 14:52:40',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'Administrator'
|
||||
},
|
||||
|
||||
# These values are common for all DocType
|
||||
{
|
||||
'_last_update': u'1294214943',
|
||||
'allow_trash': 1,
|
||||
'autoname': 'field:customer_group_name',
|
||||
'colour': 'White:FFF',
|
||||
'autoname': u'field:customer_group_name',
|
||||
'colour': u'White:FFF',
|
||||
'default_print_format': u'Standard',
|
||||
'doctype': 'DocType',
|
||||
'document_type': 'Master',
|
||||
'document_type': u'Master',
|
||||
'in_create': 1,
|
||||
'module': 'Setup',
|
||||
'module': u'Setup',
|
||||
'name': '__common__',
|
||||
'search_fields': 'name,parent_customer_group',
|
||||
'section_style': 'Simple',
|
||||
'server_code_error': ' ',
|
||||
'search_fields': u'name,parent_customer_group',
|
||||
'section_style': u'Simple',
|
||||
'server_code_error': u' ',
|
||||
'show_in_menu': 0,
|
||||
'version': 33
|
||||
'version': 34
|
||||
},
|
||||
|
||||
# These values are common for all DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'doctype': u'DocField',
|
||||
'name': '__common__',
|
||||
'parent': 'Customer Group',
|
||||
'parentfield': 'fields',
|
||||
'parenttype': 'DocType'
|
||||
'parent': u'Customer Group',
|
||||
'parentfield': u'fields',
|
||||
'parenttype': u'DocType'
|
||||
},
|
||||
|
||||
# These values are common for all DocPerm
|
||||
{
|
||||
'amend': 0,
|
||||
'doctype': 'DocPerm',
|
||||
'doctype': u'DocPerm',
|
||||
'name': '__common__',
|
||||
'parent': 'Customer Group',
|
||||
'parentfield': 'permissions',
|
||||
'parenttype': 'DocType',
|
||||
'parent': u'Customer Group',
|
||||
'parentfield': u'permissions',
|
||||
'parenttype': u'DocType',
|
||||
'read': 1,
|
||||
'submit': 0
|
||||
},
|
||||
@@ -51,17 +53,16 @@
|
||||
# DocType, Customer Group
|
||||
{
|
||||
'doctype': 'DocType',
|
||||
'name': 'Customer Group'
|
||||
'name': u'Customer Group'
|
||||
},
|
||||
|
||||
# DocPerm
|
||||
{
|
||||
'cancel': 0,
|
||||
'create': 0,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 1,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 1,
|
||||
'role': 'Sales Manager',
|
||||
'role': u'Sales Manager',
|
||||
'write': 0
|
||||
},
|
||||
|
||||
@@ -69,10 +70,9 @@
|
||||
{
|
||||
'cancel': 0,
|
||||
'create': 0,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 2,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 0,
|
||||
'role': 'Sales Manager',
|
||||
'role': u'Sales Manager',
|
||||
'write': 0
|
||||
},
|
||||
|
||||
@@ -80,10 +80,9 @@
|
||||
{
|
||||
'cancel': 0,
|
||||
'create': 0,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 3,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 1,
|
||||
'role': 'Sales Master Manager',
|
||||
'role': u'Sales Master Manager',
|
||||
'write': 0
|
||||
},
|
||||
|
||||
@@ -91,10 +90,9 @@
|
||||
{
|
||||
'cancel': 0,
|
||||
'create': 0,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 4,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 1,
|
||||
'role': 'Sales User',
|
||||
'role': u'Sales User',
|
||||
'write': 0
|
||||
},
|
||||
|
||||
@@ -102,10 +100,9 @@
|
||||
{
|
||||
'cancel': 0,
|
||||
'create': 0,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 5,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 0,
|
||||
'role': 'Sales User',
|
||||
'role': u'Sales User',
|
||||
'write': 0
|
||||
},
|
||||
|
||||
@@ -113,95 +110,88 @@
|
||||
{
|
||||
'cancel': 1,
|
||||
'create': 1,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 6,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 0,
|
||||
'role': 'Sales Master Manager',
|
||||
'role': u'Sales Master Manager',
|
||||
'write': 1
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'trash_reason',
|
||||
'fieldtype': 'Small Text',
|
||||
'idx': 1,
|
||||
'label': 'Trash Reason',
|
||||
'oldfieldname': 'trash_reason',
|
||||
'oldfieldtype': 'Small Text',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'trash_reason',
|
||||
'fieldtype': u'Small Text',
|
||||
'label': u'Trash Reason',
|
||||
'oldfieldname': u'trash_reason',
|
||||
'oldfieldtype': u'Small Text',
|
||||
'permlevel': 1
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'customer_group_name',
|
||||
'fieldtype': 'Data',
|
||||
'idx': 2,
|
||||
'label': 'Customer Group Name',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'customer_group_name',
|
||||
'fieldtype': u'Data',
|
||||
'label': u'Customer Group Name',
|
||||
'no_copy': 1,
|
||||
'oldfieldname': 'customer_group_name',
|
||||
'oldfieldtype': 'Data',
|
||||
'oldfieldname': u'customer_group_name',
|
||||
'oldfieldtype': u'Data',
|
||||
'permlevel': 0,
|
||||
'reqd': 1
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'description',
|
||||
'fieldtype': 'Text',
|
||||
'idx': 3,
|
||||
'label': 'Description',
|
||||
'oldfieldname': 'description',
|
||||
'oldfieldtype': 'Text',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'description',
|
||||
'fieldtype': u'Text',
|
||||
'label': u'Description',
|
||||
'oldfieldname': u'description',
|
||||
'oldfieldtype': u'Text',
|
||||
'permlevel': 0,
|
||||
'width': '300px'
|
||||
'width': u'300px'
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'colour': 'White:FFF',
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'parent_customer_group',
|
||||
'fieldtype': 'Link',
|
||||
'idx': 4,
|
||||
'label': 'Parent Customer Group',
|
||||
'oldfieldname': 'parent_customer_group',
|
||||
'oldfieldtype': 'Link',
|
||||
'options': 'Customer Group',
|
||||
'colour': u'White:FFF',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'parent_customer_group',
|
||||
'fieldtype': u'Link',
|
||||
'label': u'Parent Customer Group',
|
||||
'oldfieldname': u'parent_customer_group',
|
||||
'oldfieldtype': u'Link',
|
||||
'options': u'Customer Group',
|
||||
'permlevel': 0,
|
||||
'reqd': 1,
|
||||
'trigger': 'Client'
|
||||
'trigger': u'Client'
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'colour': 'White:FFF',
|
||||
'description': 'Only leaf nodes are allowed in transaction',
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'is_group',
|
||||
'fieldtype': 'Select',
|
||||
'idx': 5,
|
||||
'label': 'Has Child Node',
|
||||
'oldfieldname': 'is_group',
|
||||
'oldfieldtype': 'Select',
|
||||
'options': '\nYes\nNo',
|
||||
'colour': u'White:FFF',
|
||||
'description': u'Only leaf nodes are allowed in transaction',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'is_group',
|
||||
'fieldtype': u'Select',
|
||||
'label': u'Has Child Node',
|
||||
'oldfieldname': u'is_group',
|
||||
'oldfieldtype': u'Select',
|
||||
'options': u'\nYes\nNo',
|
||||
'permlevel': 0,
|
||||
'reqd': 1
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'lft',
|
||||
'fieldtype': 'Int',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'lft',
|
||||
'fieldtype': u'Int',
|
||||
'hidden': 1,
|
||||
'idx': 6,
|
||||
'label': 'lft',
|
||||
'label': u'lft',
|
||||
'no_copy': 1,
|
||||
'oldfieldname': 'lft',
|
||||
'oldfieldtype': 'Int',
|
||||
'oldfieldname': u'lft',
|
||||
'oldfieldtype': u'Int',
|
||||
'permlevel': 0,
|
||||
'print_hide': 1,
|
||||
'report_hide': 1,
|
||||
@@ -210,15 +200,14 @@
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'rgt',
|
||||
'fieldtype': 'Int',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'rgt',
|
||||
'fieldtype': u'Int',
|
||||
'hidden': 1,
|
||||
'idx': 7,
|
||||
'label': 'rgt',
|
||||
'label': u'rgt',
|
||||
'no_copy': 1,
|
||||
'oldfieldname': 'rgt',
|
||||
'oldfieldtype': 'Int',
|
||||
'oldfieldname': u'rgt',
|
||||
'oldfieldtype': u'Int',
|
||||
'permlevel': 0,
|
||||
'print_hide': 1,
|
||||
'report_hide': 1,
|
||||
@@ -227,15 +216,15 @@
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'old_parent',
|
||||
'fieldtype': 'Data',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'old_parent',
|
||||
'fieldtype': u'Link',
|
||||
'hidden': 1,
|
||||
'idx': 8,
|
||||
'label': 'old_parent',
|
||||
'label': u'old_parent',
|
||||
'no_copy': 1,
|
||||
'oldfieldname': 'old_parent',
|
||||
'oldfieldtype': 'Data',
|
||||
'oldfieldname': u'old_parent',
|
||||
'oldfieldtype': u'Data',
|
||||
'options': u'Customer Group',
|
||||
'permlevel': 0,
|
||||
'print_hide': 1,
|
||||
'report_hide': 1
|
||||
|
||||
@@ -5,79 +5,78 @@
|
||||
{
|
||||
'creation': '2010-12-14 10:23:17',
|
||||
'docstatus': 0,
|
||||
'modified': '2010-09-20 14:06:57',
|
||||
'modified_by': 'yogesh@webnotestech.com',
|
||||
'owner': 'Administrator'
|
||||
'modified': '2012-03-21 14:53:21',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'Administrator'
|
||||
},
|
||||
|
||||
# These values are common for all DocType
|
||||
{
|
||||
'autoname': '__NSO.#####',
|
||||
'colour': 'White:FFF',
|
||||
'autoname': u'__NSO.#####',
|
||||
'colour': u'White:FFF',
|
||||
'default_print_format': u'Standard',
|
||||
'doctype': 'DocType',
|
||||
'in_create': 1,
|
||||
'module': 'Setup',
|
||||
'module': u'Setup',
|
||||
'name': '__common__',
|
||||
'read_only': 0,
|
||||
'section_style': 'Simple',
|
||||
'server_code_error': ' ',
|
||||
'version': 4
|
||||
'section_style': u'Simple',
|
||||
'server_code_error': u' ',
|
||||
'show_in_menu': 0,
|
||||
'version': 5
|
||||
},
|
||||
|
||||
# These values are common for all DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'doctype': u'DocField',
|
||||
'name': '__common__',
|
||||
'parent': 'Naming Series Options',
|
||||
'parentfield': 'fields',
|
||||
'parenttype': 'DocType',
|
||||
'parent': u'Naming Series Options',
|
||||
'parentfield': u'fields',
|
||||
'parenttype': u'DocType',
|
||||
'permlevel': 0
|
||||
},
|
||||
|
||||
# These values are common for all DocPerm
|
||||
{
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 1,
|
||||
'doctype': u'DocPerm',
|
||||
'name': '__common__',
|
||||
'parent': 'Naming Series Options',
|
||||
'parentfield': 'permissions',
|
||||
'parenttype': 'DocType',
|
||||
'parent': u'Naming Series Options',
|
||||
'parentfield': u'permissions',
|
||||
'parenttype': u'DocType',
|
||||
'permlevel': 0,
|
||||
'read': 1,
|
||||
'role': 'System Manager'
|
||||
'role': u'System Manager'
|
||||
},
|
||||
|
||||
# DocType, Naming Series Options
|
||||
{
|
||||
'doctype': 'DocType',
|
||||
'name': 'Naming Series Options'
|
||||
'name': u'Naming Series Options'
|
||||
},
|
||||
|
||||
# DocPerm
|
||||
{
|
||||
'doctype': 'DocPerm'
|
||||
'doctype': u'DocPerm'
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'doc_type',
|
||||
'fieldtype': 'Data',
|
||||
'idx': 1,
|
||||
'label': 'Doc Type',
|
||||
'oldfieldname': 'doc_type',
|
||||
'oldfieldtype': 'Data',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'doc_type',
|
||||
'fieldtype': u'Data',
|
||||
'label': u'Doc Type',
|
||||
'oldfieldname': u'doc_type',
|
||||
'oldfieldtype': u'Data',
|
||||
'search_index': 1
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'series_options',
|
||||
'fieldtype': 'Text',
|
||||
'idx': 2,
|
||||
'label': 'Series Options',
|
||||
'oldfieldname': 'series_options',
|
||||
'oldfieldtype': 'Text'
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'series_options',
|
||||
'fieldtype': u'Text',
|
||||
'label': u'Series Options',
|
||||
'oldfieldname': u'series_options',
|
||||
'oldfieldtype': u'Text'
|
||||
}
|
||||
]
|
||||
@@ -5,49 +5,51 @@
|
||||
{
|
||||
'creation': '2010-08-08 17:09:11',
|
||||
'docstatus': 0,
|
||||
'modified': '2011-01-07 11:04:07',
|
||||
'modified_by': 'rakesh@iwebnotes.com',
|
||||
'owner': 'Administrator'
|
||||
'modified': '2012-03-21 14:51:06',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'Administrator'
|
||||
},
|
||||
|
||||
# These values are common for all DocType
|
||||
{
|
||||
'_last_update': u'1322549700',
|
||||
'allow_trash': 1,
|
||||
'autoname': 'field:title',
|
||||
'colour': 'White:FFF',
|
||||
'autoname': u'field:title',
|
||||
'colour': u'White:FFF',
|
||||
'default_print_format': u'Standard',
|
||||
'doctype': 'DocType',
|
||||
'document_type': 'Master',
|
||||
'module': 'Setup',
|
||||
'document_type': u'Master',
|
||||
'module': u'Setup',
|
||||
'name': '__common__',
|
||||
'section_style': 'Tabbed',
|
||||
'server_code_error': ' ',
|
||||
'section_style': u'Tabbed',
|
||||
'server_code_error': u' ',
|
||||
'show_in_menu': 0,
|
||||
'version': 56
|
||||
'version': 57
|
||||
},
|
||||
|
||||
# These values are common for all DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'doctype': u'DocField',
|
||||
'name': '__common__',
|
||||
'parent': 'Other Charges',
|
||||
'parentfield': 'fields',
|
||||
'parenttype': 'DocType'
|
||||
'parent': u'Other Charges',
|
||||
'parentfield': u'fields',
|
||||
'parenttype': u'DocType'
|
||||
},
|
||||
|
||||
# These values are common for all DocPerm
|
||||
{
|
||||
'doctype': 'DocPerm',
|
||||
'doctype': u'DocPerm',
|
||||
'name': '__common__',
|
||||
'parent': 'Other Charges',
|
||||
'parentfield': 'permissions',
|
||||
'parenttype': 'DocType',
|
||||
'parent': u'Other Charges',
|
||||
'parentfield': u'permissions',
|
||||
'parenttype': u'DocType',
|
||||
'read': 1
|
||||
},
|
||||
|
||||
# DocType, Other Charges
|
||||
{
|
||||
'doctype': 'DocType',
|
||||
'name': 'Other Charges'
|
||||
'name': u'Other Charges'
|
||||
},
|
||||
|
||||
# DocPerm
|
||||
@@ -55,10 +57,9 @@
|
||||
'amend': 0,
|
||||
'cancel': 0,
|
||||
'create': 0,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 1,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 1,
|
||||
'role': 'Sales Master Manager',
|
||||
'role': u'Sales Master Manager',
|
||||
'submit': 0,
|
||||
'write': 0
|
||||
},
|
||||
@@ -68,10 +69,9 @@
|
||||
'amend': 0,
|
||||
'cancel': 0,
|
||||
'create': 0,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 2,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 1,
|
||||
'role': 'Sales User',
|
||||
'role': u'Sales User',
|
||||
'submit': 0,
|
||||
'write': 0
|
||||
},
|
||||
@@ -81,10 +81,9 @@
|
||||
'amend': 0,
|
||||
'cancel': 0,
|
||||
'create': 0,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 3,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 0,
|
||||
'role': 'Sales User',
|
||||
'role': u'Sales User',
|
||||
'submit': 0,
|
||||
'write': 0
|
||||
},
|
||||
@@ -94,10 +93,9 @@
|
||||
'amend': 0,
|
||||
'cancel': 1,
|
||||
'create': 1,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 4,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 0,
|
||||
'role': 'Accounts Manager',
|
||||
'role': u'Accounts Manager',
|
||||
'submit': 0,
|
||||
'write': 1
|
||||
},
|
||||
@@ -106,10 +104,9 @@
|
||||
{
|
||||
'cancel': 1,
|
||||
'create': 1,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 5,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 0,
|
||||
'role': 'System Manager',
|
||||
'role': u'System Manager',
|
||||
'write': 1
|
||||
},
|
||||
|
||||
@@ -118,46 +115,42 @@
|
||||
'amend': 0,
|
||||
'cancel': 1,
|
||||
'create': 1,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 6,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 0,
|
||||
'role': 'Sales Master Manager',
|
||||
'role': u'Sales Master Manager',
|
||||
'submit': 0,
|
||||
'write': 1
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'trash_reason',
|
||||
'fieldtype': 'Small Text',
|
||||
'idx': 1,
|
||||
'label': 'Trash Reason',
|
||||
'oldfieldname': 'trash_reason',
|
||||
'oldfieldtype': 'Small Text',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'trash_reason',
|
||||
'fieldtype': u'Small Text',
|
||||
'label': u'Trash Reason',
|
||||
'oldfieldname': u'trash_reason',
|
||||
'oldfieldtype': u'Small Text',
|
||||
'permlevel': 1
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldtype': 'Section Break',
|
||||
'idx': 2,
|
||||
'label': 'Other Charges Details',
|
||||
'oldfieldtype': 'Section Break',
|
||||
'doctype': u'DocField',
|
||||
'fieldtype': u'Section Break',
|
||||
'label': u'Other Charges Details',
|
||||
'oldfieldtype': u'Section Break',
|
||||
'permlevel': 0
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'title',
|
||||
'fieldtype': 'Data',
|
||||
'idx': 3,
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'title',
|
||||
'fieldtype': u'Data',
|
||||
'in_filter': 1,
|
||||
'label': 'Title',
|
||||
'oldfieldname': 'title',
|
||||
'oldfieldtype': 'Data',
|
||||
'label': u'Title',
|
||||
'oldfieldname': u'title',
|
||||
'oldfieldtype': u'Data',
|
||||
'permlevel': 0,
|
||||
'reqd': 1,
|
||||
'search_index': 0
|
||||
@@ -165,25 +158,23 @@
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'is_default',
|
||||
'fieldtype': 'Check',
|
||||
'idx': 4,
|
||||
'label': 'Default',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'is_default',
|
||||
'fieldtype': u'Check',
|
||||
'label': u'Default',
|
||||
'permlevel': 0
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'company',
|
||||
'fieldtype': 'Link',
|
||||
'idx': 5,
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'company',
|
||||
'fieldtype': u'Link',
|
||||
'in_filter': 1,
|
||||
'label': 'Company',
|
||||
'oldfieldname': 'company',
|
||||
'oldfieldtype': 'Link',
|
||||
'options': 'Company',
|
||||
'label': u'Company',
|
||||
'oldfieldname': u'company',
|
||||
'oldfieldtype': u'Link',
|
||||
'options': u'Company',
|
||||
'permlevel': 0,
|
||||
'reqd': 1,
|
||||
'search_index': 0
|
||||
@@ -191,14 +182,13 @@
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'other_charges',
|
||||
'fieldtype': 'Table',
|
||||
'idx': 6,
|
||||
'label': 'Other Charges',
|
||||
'oldfieldname': 'other_charges',
|
||||
'oldfieldtype': 'Table',
|
||||
'options': 'RV Tax Detail',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'other_charges',
|
||||
'fieldtype': u'Table',
|
||||
'label': u'Other Charges',
|
||||
'oldfieldname': u'other_charges',
|
||||
'oldfieldtype': u'Table',
|
||||
'options': u'RV Tax Detail',
|
||||
'permlevel': 0
|
||||
}
|
||||
]
|
||||
@@ -5,52 +5,53 @@
|
||||
{
|
||||
'creation': '2010-08-08 17:09:22',
|
||||
'docstatus': 0,
|
||||
'modified': '2011-05-17 14:32:10',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'Administrator'
|
||||
'modified': '2012-03-21 14:53:54',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'Administrator'
|
||||
},
|
||||
|
||||
# These values are common for all DocType
|
||||
{
|
||||
'_last_update': '1307707462',
|
||||
'_last_update': u'1322549700',
|
||||
'allow_trash': 1,
|
||||
'autoname': 'field:partner_name',
|
||||
'colour': 'White:FFF',
|
||||
'autoname': u'field:partner_name',
|
||||
'colour': u'White:FFF',
|
||||
'default_print_format': u'Standard',
|
||||
'doctype': 'DocType',
|
||||
'document_type': 'Master',
|
||||
'document_type': u'Master',
|
||||
'in_create': 0,
|
||||
'module': 'Setup',
|
||||
'module': u'Setup',
|
||||
'name': '__common__',
|
||||
'read_only': 0,
|
||||
'section_style': 'Tabbed',
|
||||
'server_code_error': ' ',
|
||||
'section_style': u'Tabbed',
|
||||
'server_code_error': u' ',
|
||||
'show_in_menu': 0,
|
||||
'version': 72
|
||||
'version': 73
|
||||
},
|
||||
|
||||
# These values are common for all DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'doctype': u'DocField',
|
||||
'name': '__common__',
|
||||
'parent': 'Sales Partner',
|
||||
'parentfield': 'fields',
|
||||
'parenttype': 'DocType'
|
||||
'parent': u'Sales Partner',
|
||||
'parentfield': u'fields',
|
||||
'parenttype': u'DocType'
|
||||
},
|
||||
|
||||
# These values are common for all DocPerm
|
||||
{
|
||||
'doctype': 'DocPerm',
|
||||
'doctype': u'DocPerm',
|
||||
'name': '__common__',
|
||||
'parent': 'Sales Partner',
|
||||
'parentfield': 'permissions',
|
||||
'parenttype': 'DocType',
|
||||
'parent': u'Sales Partner',
|
||||
'parentfield': u'permissions',
|
||||
'parenttype': u'DocType',
|
||||
'read': 1
|
||||
},
|
||||
|
||||
# DocType, Sales Partner
|
||||
{
|
||||
'doctype': 'DocType',
|
||||
'name': 'Sales Partner'
|
||||
'name': u'Sales Partner'
|
||||
},
|
||||
|
||||
# DocPerm
|
||||
@@ -58,10 +59,9 @@
|
||||
'amend': 0,
|
||||
'cancel': 0,
|
||||
'create': 0,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 1,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 1,
|
||||
'role': 'Sales Manager',
|
||||
'role': u'Sales Manager',
|
||||
'submit': 0,
|
||||
'write': 0
|
||||
},
|
||||
@@ -71,10 +71,9 @@
|
||||
'amend': 0,
|
||||
'cancel': 0,
|
||||
'create': 0,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 2,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 0,
|
||||
'role': 'Sales Manager',
|
||||
'role': u'Sales Manager',
|
||||
'submit': 0,
|
||||
'write': 0
|
||||
},
|
||||
@@ -84,10 +83,9 @@
|
||||
'amend': 0,
|
||||
'cancel': 0,
|
||||
'create': 0,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 3,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 1,
|
||||
'role': 'Sales User',
|
||||
'role': u'Sales User',
|
||||
'submit': 0,
|
||||
'write': 0
|
||||
},
|
||||
@@ -97,10 +95,9 @@
|
||||
'amend': 0,
|
||||
'cancel': 0,
|
||||
'create': 0,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 4,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 0,
|
||||
'role': 'Sales User',
|
||||
'role': u'Sales User',
|
||||
'submit': 0,
|
||||
'write': 0
|
||||
},
|
||||
@@ -110,10 +107,9 @@
|
||||
'amend': 0,
|
||||
'cancel': 1,
|
||||
'create': 1,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 5,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 0,
|
||||
'role': 'Sales Master Manager',
|
||||
'role': u'Sales Master Manager',
|
||||
'submit': 0,
|
||||
'write': 1
|
||||
},
|
||||
@@ -123,10 +119,9 @@
|
||||
'amend': 0,
|
||||
'cancel': 0,
|
||||
'create': 0,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 6,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 1,
|
||||
'role': 'Sales Master Manager',
|
||||
'role': u'Sales Master Manager',
|
||||
'submit': 0,
|
||||
'write': 0
|
||||
},
|
||||
@@ -135,45 +130,41 @@
|
||||
{
|
||||
'cancel': 1,
|
||||
'create': 1,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 7,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 0,
|
||||
'role': 'System Manager',
|
||||
'role': u'System Manager',
|
||||
'write': 1
|
||||
},
|
||||
|
||||
# DocPerm
|
||||
{
|
||||
'create': 0,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 8,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 1,
|
||||
'role': 'System Manager',
|
||||
'role': u'System Manager',
|
||||
'write': 0
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'colour': 'White:FFF',
|
||||
'description': 'Note: You Can Manage Multiple Address or Contacts via Addresses & Contacts',
|
||||
'doctype': 'DocField',
|
||||
'fieldtype': 'Section Break',
|
||||
'idx': 1,
|
||||
'label': 'Basic Info',
|
||||
'oldfieldtype': 'Section Break',
|
||||
'colour': u'White:FFF',
|
||||
'description': u'Note: You Can Manage Multiple Address or Contacts via Addresses & Contacts',
|
||||
'doctype': u'DocField',
|
||||
'fieldtype': u'Section Break',
|
||||
'label': u'Basic Info',
|
||||
'oldfieldtype': u'Section Break',
|
||||
'permlevel': 0
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'partner_name',
|
||||
'fieldtype': 'Data',
|
||||
'idx': 2,
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'partner_name',
|
||||
'fieldtype': u'Data',
|
||||
'in_filter': 1,
|
||||
'label': 'Sales Partner Name',
|
||||
'oldfieldname': 'partner_name',
|
||||
'oldfieldtype': 'Data',
|
||||
'label': u'Sales Partner Name',
|
||||
'oldfieldname': u'partner_name',
|
||||
'oldfieldtype': u'Data',
|
||||
'permlevel': 0,
|
||||
'reqd': 1,
|
||||
'search_index': 1
|
||||
@@ -181,193 +172,176 @@
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'partner_type',
|
||||
'fieldtype': 'Select',
|
||||
'idx': 3,
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'partner_type',
|
||||
'fieldtype': u'Select',
|
||||
'in_filter': 1,
|
||||
'label': 'Partner Type',
|
||||
'oldfieldname': 'partner_type',
|
||||
'oldfieldtype': 'Select',
|
||||
'options': '\nChannel Partner\nDistributor\nDealer\nAgent\nRetailer\nImplementation Partner\nReseller',
|
||||
'label': u'Partner Type',
|
||||
'oldfieldname': u'partner_type',
|
||||
'oldfieldtype': u'Select',
|
||||
'options': u'\nChannel Partner\nDistributor\nDealer\nAgent\nRetailer\nImplementation Partner\nReseller',
|
||||
'permlevel': 0,
|
||||
'search_index': 0
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldtype': 'Column Break',
|
||||
'idx': 4,
|
||||
'oldfieldtype': 'Column Break',
|
||||
'doctype': u'DocField',
|
||||
'fieldtype': u'Column Break',
|
||||
'oldfieldtype': u'Column Break',
|
||||
'permlevel': 0,
|
||||
'width': '50%'
|
||||
'width': u'50%'
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'commission_rate',
|
||||
'fieldtype': 'Currency',
|
||||
'idx': 5,
|
||||
'label': 'Commission Rate',
|
||||
'oldfieldname': 'commission_rate',
|
||||
'oldfieldtype': 'Currency',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'commission_rate',
|
||||
'fieldtype': u'Currency',
|
||||
'label': u'Commission Rate',
|
||||
'oldfieldname': u'commission_rate',
|
||||
'oldfieldtype': u'Currency',
|
||||
'permlevel': 0,
|
||||
'reqd': 1
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'territory',
|
||||
'fieldtype': 'Link',
|
||||
'idx': 6,
|
||||
'label': 'Territory',
|
||||
'options': 'Territory',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'territory',
|
||||
'fieldtype': u'Link',
|
||||
'label': u'Territory',
|
||||
'options': u'Territory',
|
||||
'permlevel': 0,
|
||||
'reqd': 1
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldtype': 'Section Break',
|
||||
'idx': 7,
|
||||
'label': 'Address & Contacts',
|
||||
'doctype': u'DocField',
|
||||
'fieldtype': u'Section Break',
|
||||
'label': u'Address & Contacts',
|
||||
'permlevel': 0
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'colour': 'White:FFF',
|
||||
'depends_on': 'eval:doc.__islocal',
|
||||
'doctype': 'DocField',
|
||||
'fieldtype': 'HTML',
|
||||
'idx': 8,
|
||||
'label': 'Address Desc',
|
||||
'options': '<em>Addresses will appear only when you save the customer</em>',
|
||||
'colour': u'White:FFF',
|
||||
'depends_on': u'eval:doc.__islocal',
|
||||
'doctype': u'DocField',
|
||||
'fieldtype': u'HTML',
|
||||
'label': u'Address Desc',
|
||||
'options': u'<em>Addresses will appear only when you save the customer</em>',
|
||||
'permlevel': 0
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldtype': 'HTML',
|
||||
'idx': 9,
|
||||
'label': 'Address HTML',
|
||||
'doctype': u'DocField',
|
||||
'fieldtype': u'HTML',
|
||||
'label': u'Address HTML',
|
||||
'permlevel': 1
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldtype': 'Column Break',
|
||||
'idx': 10,
|
||||
'doctype': u'DocField',
|
||||
'fieldtype': u'Column Break',
|
||||
'permlevel': 0
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'colour': 'White:FFF',
|
||||
'depends_on': 'eval:doc.__islocal',
|
||||
'doctype': 'DocField',
|
||||
'fieldtype': 'HTML',
|
||||
'idx': 11,
|
||||
'label': 'Contact Desc',
|
||||
'options': '<em>Contact Details will appear only when you save the customer</em>',
|
||||
'colour': u'White:FFF',
|
||||
'depends_on': u'eval:doc.__islocal',
|
||||
'doctype': u'DocField',
|
||||
'fieldtype': u'HTML',
|
||||
'label': u'Contact Desc',
|
||||
'options': u'<em>Contact Details will appear only when you save the customer</em>',
|
||||
'permlevel': 0
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldtype': 'HTML',
|
||||
'idx': 12,
|
||||
'label': 'Contact HTML',
|
||||
'doctype': u'DocField',
|
||||
'fieldtype': u'HTML',
|
||||
'label': u'Contact HTML',
|
||||
'permlevel': 1
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldtype': 'Section Break',
|
||||
'idx': 13,
|
||||
'label': 'Partner Target Details',
|
||||
'oldfieldtype': 'Section Break',
|
||||
'doctype': u'DocField',
|
||||
'fieldtype': u'Section Break',
|
||||
'label': u'Partner Target Details',
|
||||
'oldfieldtype': u'Section Break',
|
||||
'permlevel': 0
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'distribution_id',
|
||||
'fieldtype': 'Link',
|
||||
'idx': 14,
|
||||
'label': 'Distribution Id',
|
||||
'oldfieldname': 'distribution_id',
|
||||
'oldfieldtype': 'Link',
|
||||
'options': 'Budget Distribution',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'distribution_id',
|
||||
'fieldtype': u'Link',
|
||||
'label': u'Distribution Id',
|
||||
'oldfieldname': u'distribution_id',
|
||||
'oldfieldtype': u'Link',
|
||||
'options': u'Budget Distribution',
|
||||
'permlevel': 0
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'partner_target_details',
|
||||
'fieldtype': 'Table',
|
||||
'idx': 15,
|
||||
'label': 'Partner Target Detail',
|
||||
'oldfieldname': 'partner_target_details',
|
||||
'oldfieldtype': 'Table',
|
||||
'options': 'Target Detail',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'partner_target_details',
|
||||
'fieldtype': u'Table',
|
||||
'label': u'Partner Target Detail',
|
||||
'oldfieldname': u'partner_target_details',
|
||||
'oldfieldtype': u'Table',
|
||||
'options': u'Target Detail',
|
||||
'permlevel': 0,
|
||||
'reqd': 0
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldtype': 'HTML',
|
||||
'doctype': u'DocField',
|
||||
'fieldtype': u'HTML',
|
||||
'hidden': 1,
|
||||
'idx': 16,
|
||||
'label': 'Manage HTML',
|
||||
'oldfieldtype': 'HTML',
|
||||
'label': u'Manage HTML',
|
||||
'oldfieldtype': u'HTML',
|
||||
'permlevel': 0,
|
||||
'print_hide': 1
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'colour': 'White:FFF',
|
||||
'depends_on': 'eval:!doc.__islocal',
|
||||
'doctype': 'DocField',
|
||||
'fieldtype': 'Section Break',
|
||||
'idx': 17,
|
||||
'label': 'Transaction History',
|
||||
'oldfieldtype': 'Section Break',
|
||||
'colour': u'White:FFF',
|
||||
'depends_on': u'eval:!doc.__islocal',
|
||||
'doctype': u'DocField',
|
||||
'fieldtype': u'Section Break',
|
||||
'label': u'Transaction History',
|
||||
'oldfieldtype': u'Section Break',
|
||||
'permlevel': 0
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldtype': 'HTML',
|
||||
'idx': 18,
|
||||
'label': 'History HTML',
|
||||
'oldfieldtype': 'HTML',
|
||||
'doctype': u'DocField',
|
||||
'fieldtype': u'HTML',
|
||||
'label': u'History HTML',
|
||||
'oldfieldtype': u'HTML',
|
||||
'permlevel': 0
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'trash_reason',
|
||||
'fieldtype': 'Small Text',
|
||||
'idx': 19,
|
||||
'label': 'Trash Reason',
|
||||
'oldfieldname': 'trash_reason',
|
||||
'oldfieldtype': 'Small Text',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'trash_reason',
|
||||
'fieldtype': u'Small Text',
|
||||
'label': u'Trash Reason',
|
||||
'oldfieldname': u'trash_reason',
|
||||
'oldfieldtype': u'Small Text',
|
||||
'permlevel': 1
|
||||
}
|
||||
]
|
||||
@@ -5,48 +5,51 @@
|
||||
{
|
||||
'creation': '2010-08-08 17:09:27',
|
||||
'docstatus': 0,
|
||||
'modified': '2010-09-20 14:06:57',
|
||||
'modified_by': 'yogesh@webnotestech.com',
|
||||
'owner': 'Administrator'
|
||||
'modified': '2012-03-21 14:54:12',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'Administrator'
|
||||
},
|
||||
|
||||
# These values are common for all DocType
|
||||
{
|
||||
'_last_update': u'1322549700',
|
||||
'allow_trash': 1,
|
||||
'autoname': 'field:title',
|
||||
'colour': 'White:FFF',
|
||||
'autoname': u'field:title',
|
||||
'colour': u'White:FFF',
|
||||
'default_print_format': u'Standard',
|
||||
'doctype': 'DocType',
|
||||
'document_type': 'Master',
|
||||
'module': 'Setup',
|
||||
'document_type': u'Master',
|
||||
'module': u'Setup',
|
||||
'name': '__common__',
|
||||
'section_style': 'Simple',
|
||||
'server_code_error': ' ',
|
||||
'version': 10
|
||||
'section_style': u'Simple',
|
||||
'server_code_error': u' ',
|
||||
'show_in_menu': 0,
|
||||
'version': 11
|
||||
},
|
||||
|
||||
# These values are common for all DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'doctype': u'DocField',
|
||||
'name': '__common__',
|
||||
'parent': 'Term',
|
||||
'parentfield': 'fields',
|
||||
'parenttype': 'DocType'
|
||||
'parent': u'Term',
|
||||
'parentfield': u'fields',
|
||||
'parenttype': u'DocType'
|
||||
},
|
||||
|
||||
# These values are common for all DocPerm
|
||||
{
|
||||
'doctype': 'DocPerm',
|
||||
'doctype': u'DocPerm',
|
||||
'name': '__common__',
|
||||
'parent': 'Term',
|
||||
'parentfield': 'permissions',
|
||||
'parenttype': 'DocType',
|
||||
'parent': u'Term',
|
||||
'parentfield': u'permissions',
|
||||
'parenttype': u'DocType',
|
||||
'read': 1
|
||||
},
|
||||
|
||||
# DocType, Term
|
||||
{
|
||||
'doctype': 'DocType',
|
||||
'name': 'Term'
|
||||
'name': u'Term'
|
||||
},
|
||||
|
||||
# DocPerm
|
||||
@@ -54,10 +57,9 @@
|
||||
'amend': 0,
|
||||
'cancel': 0,
|
||||
'create': 0,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 1,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 1,
|
||||
'role': 'Sales Master Manager',
|
||||
'role': u'Sales Master Manager',
|
||||
'submit': 0,
|
||||
'write': 0
|
||||
},
|
||||
@@ -67,10 +69,9 @@
|
||||
'amend': 0,
|
||||
'cancel': 1,
|
||||
'create': 1,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 2,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 0,
|
||||
'role': 'Sales Master Manager',
|
||||
'role': u'Sales Master Manager',
|
||||
'submit': 0,
|
||||
'write': 1
|
||||
},
|
||||
@@ -80,10 +81,9 @@
|
||||
'amend': 0,
|
||||
'cancel': 0,
|
||||
'create': 0,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 3,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 1,
|
||||
'role': 'Sales User',
|
||||
'role': u'Sales User',
|
||||
'submit': 0,
|
||||
'write': 0
|
||||
},
|
||||
@@ -93,30 +93,27 @@
|
||||
'amend': 0,
|
||||
'cancel': 0,
|
||||
'create': 0,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 4,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 0,
|
||||
'role': 'Sales User',
|
||||
'role': u'Sales User',
|
||||
'submit': 0,
|
||||
'write': 0
|
||||
},
|
||||
|
||||
# DocPerm
|
||||
{
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 5,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 1,
|
||||
'role': 'All'
|
||||
'role': u'All'
|
||||
},
|
||||
|
||||
# DocPerm
|
||||
{
|
||||
'cancel': 1,
|
||||
'create': 1,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 6,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 0,
|
||||
'role': 'System Manager',
|
||||
'role': u'System Manager',
|
||||
'write': 1
|
||||
},
|
||||
|
||||
@@ -124,35 +121,32 @@
|
||||
{
|
||||
'cancel': 1,
|
||||
'create': 1,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 7,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 0,
|
||||
'role': 'Accounts User',
|
||||
'role': u'Accounts User',
|
||||
'write': 1
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'trash_reason',
|
||||
'fieldtype': 'Small Text',
|
||||
'idx': 1,
|
||||
'label': 'Trash Reason',
|
||||
'oldfieldname': 'trash_reason',
|
||||
'oldfieldtype': 'Small Text',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'trash_reason',
|
||||
'fieldtype': u'Small Text',
|
||||
'label': u'Trash Reason',
|
||||
'oldfieldname': u'trash_reason',
|
||||
'oldfieldtype': u'Small Text',
|
||||
'permlevel': 1
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'title',
|
||||
'fieldtype': 'Data',
|
||||
'idx': 2,
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'title',
|
||||
'fieldtype': u'Data',
|
||||
'in_filter': 1,
|
||||
'label': 'Title',
|
||||
'oldfieldname': 'title',
|
||||
'oldfieldtype': 'Data',
|
||||
'label': u'Title',
|
||||
'oldfieldname': u'title',
|
||||
'oldfieldtype': u'Data',
|
||||
'permlevel': 0,
|
||||
'reqd': 1,
|
||||
'search_index': 0
|
||||
@@ -160,13 +154,12 @@
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'terms',
|
||||
'fieldtype': 'Text Editor',
|
||||
'idx': 3,
|
||||
'label': 'Terms',
|
||||
'oldfieldname': 'terms',
|
||||
'oldfieldtype': 'Text Editor',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'terms',
|
||||
'fieldtype': u'Text Editor',
|
||||
'label': u'Terms',
|
||||
'oldfieldname': u'terms',
|
||||
'oldfieldtype': u'Text Editor',
|
||||
'permlevel': 0
|
||||
}
|
||||
]
|
||||
@@ -5,47 +5,48 @@
|
||||
{
|
||||
'creation': '2010-08-08 17:09:28',
|
||||
'docstatus': 0,
|
||||
'modified': '2010-12-24 12:09:17',
|
||||
'modified_by': 'abhishek@webnotestech.com',
|
||||
'owner': 'Administrator'
|
||||
'modified': '2012-03-21 14:46:04',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'Administrator'
|
||||
},
|
||||
|
||||
# These values are common for all DocType
|
||||
{
|
||||
'_last_update': '1307707462',
|
||||
'_last_update': u'1311621379',
|
||||
'allow_trash': 1,
|
||||
'autoname': 'field:territory_name',
|
||||
'colour': 'White:FFF',
|
||||
'autoname': u'field:territory_name',
|
||||
'colour': u'White:FFF',
|
||||
'default_print_format': u'Standard',
|
||||
'doctype': 'DocType',
|
||||
'document_type': 'Master',
|
||||
'document_type': u'Master',
|
||||
'in_create': 1,
|
||||
'module': 'Setup',
|
||||
'module': u'Setup',
|
||||
'name': '__common__',
|
||||
'name_case': 'Title Case',
|
||||
'search_fields': 'name,parent_territory,territory_manager',
|
||||
'section_style': 'Simple',
|
||||
'server_code_error': ' ',
|
||||
'name_case': u'Title Case',
|
||||
'search_fields': u'name,parent_territory,territory_manager',
|
||||
'section_style': u'Simple',
|
||||
'server_code_error': u' ',
|
||||
'show_in_menu': 0,
|
||||
'version': 85
|
||||
'version': 86
|
||||
},
|
||||
|
||||
# These values are common for all DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'doctype': u'DocField',
|
||||
'name': '__common__',
|
||||
'parent': 'Territory',
|
||||
'parentfield': 'fields',
|
||||
'parenttype': 'DocType'
|
||||
'parent': u'Territory',
|
||||
'parentfield': u'fields',
|
||||
'parenttype': u'DocType'
|
||||
},
|
||||
|
||||
# These values are common for all DocPerm
|
||||
{
|
||||
'amend': 0,
|
||||
'doctype': 'DocPerm',
|
||||
'doctype': u'DocPerm',
|
||||
'name': '__common__',
|
||||
'parent': 'Territory',
|
||||
'parentfield': 'permissions',
|
||||
'parenttype': 'DocType',
|
||||
'parent': u'Territory',
|
||||
'parentfield': u'permissions',
|
||||
'parenttype': u'DocType',
|
||||
'read': 1,
|
||||
'submit': 0
|
||||
},
|
||||
@@ -53,17 +54,16 @@
|
||||
# DocType, Territory
|
||||
{
|
||||
'doctype': 'DocType',
|
||||
'name': 'Territory'
|
||||
'name': u'Territory'
|
||||
},
|
||||
|
||||
# DocPerm
|
||||
{
|
||||
'cancel': 0,
|
||||
'create': 0,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 1,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 1,
|
||||
'role': 'Sales Manager',
|
||||
'role': u'Sales Manager',
|
||||
'write': 0
|
||||
},
|
||||
|
||||
@@ -71,10 +71,9 @@
|
||||
{
|
||||
'cancel': 0,
|
||||
'create': 0,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 2,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 0,
|
||||
'role': 'Sales Manager',
|
||||
'role': u'Sales Manager',
|
||||
'write': 0
|
||||
},
|
||||
|
||||
@@ -82,10 +81,9 @@
|
||||
{
|
||||
'cancel': 0,
|
||||
'create': 0,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 3,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 1,
|
||||
'role': 'Sales Master Manager',
|
||||
'role': u'Sales Master Manager',
|
||||
'write': 0
|
||||
},
|
||||
|
||||
@@ -93,10 +91,9 @@
|
||||
{
|
||||
'cancel': 0,
|
||||
'create': 0,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 4,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 1,
|
||||
'role': 'Sales User',
|
||||
'role': u'Sales User',
|
||||
'write': 0
|
||||
},
|
||||
|
||||
@@ -104,10 +101,9 @@
|
||||
{
|
||||
'cancel': 0,
|
||||
'create': 0,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 5,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 0,
|
||||
'role': 'Sales User',
|
||||
'role': u'Sales User',
|
||||
'write': 0
|
||||
},
|
||||
|
||||
@@ -115,108 +111,100 @@
|
||||
{
|
||||
'cancel': 1,
|
||||
'create': 1,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 6,
|
||||
'doctype': u'DocPerm',
|
||||
'permlevel': 0,
|
||||
'role': 'Sales Master Manager',
|
||||
'role': u'Sales Master Manager',
|
||||
'write': 1
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'trash_reason',
|
||||
'fieldtype': 'Small Text',
|
||||
'idx': 1,
|
||||
'label': 'Trash Reason',
|
||||
'oldfieldname': 'trash_reason',
|
||||
'oldfieldtype': 'Small Text',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'trash_reason',
|
||||
'fieldtype': u'Small Text',
|
||||
'label': u'Trash Reason',
|
||||
'oldfieldname': u'trash_reason',
|
||||
'oldfieldtype': u'Small Text',
|
||||
'permlevel': 1
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'territory_name',
|
||||
'fieldtype': 'Data',
|
||||
'idx': 2,
|
||||
'label': 'Territory Name',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'territory_name',
|
||||
'fieldtype': u'Data',
|
||||
'label': u'Territory Name',
|
||||
'no_copy': 1,
|
||||
'oldfieldname': 'territory_name',
|
||||
'oldfieldtype': 'Data',
|
||||
'oldfieldname': u'territory_name',
|
||||
'oldfieldtype': u'Data',
|
||||
'permlevel': 0,
|
||||
'reqd': 1
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'territory_manager',
|
||||
'fieldtype': 'Link',
|
||||
'idx': 3,
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'territory_manager',
|
||||
'fieldtype': u'Link',
|
||||
'in_filter': 1,
|
||||
'label': 'Territory Manager',
|
||||
'oldfieldname': 'territory_manager',
|
||||
'oldfieldtype': 'Link',
|
||||
'options': 'Sales Person',
|
||||
'label': u'Territory Manager',
|
||||
'oldfieldname': u'territory_manager',
|
||||
'oldfieldtype': u'Link',
|
||||
'options': u'Sales Person',
|
||||
'permlevel': 0,
|
||||
'search_index': 0
|
||||
'search_index': 1
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'parent_territory',
|
||||
'fieldtype': 'Link',
|
||||
'idx': 4,
|
||||
'label': 'Parent Territory',
|
||||
'oldfieldname': 'parent_territory',
|
||||
'oldfieldtype': 'Link',
|
||||
'options': 'Territory',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'parent_territory',
|
||||
'fieldtype': u'Link',
|
||||
'label': u'Parent Territory',
|
||||
'oldfieldname': u'parent_territory',
|
||||
'oldfieldtype': u'Link',
|
||||
'options': u'Territory',
|
||||
'permlevel': 0,
|
||||
'reqd': 1,
|
||||
'trigger': 'Client'
|
||||
'trigger': u'Client'
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldtype': 'HTML',
|
||||
'idx': 5,
|
||||
'label': 'TerritoryHelp',
|
||||
'oldfieldtype': 'HTML',
|
||||
'options': '<a href="javascript:cur_frm.cscript.TerritoryHelp();">To manage Territory, click here</a>',
|
||||
'doctype': u'DocField',
|
||||
'fieldtype': u'HTML',
|
||||
'label': u'TerritoryHelp',
|
||||
'oldfieldtype': u'HTML',
|
||||
'options': u'<a href="javascript:cur_frm.cscript.TerritoryHelp();">To manage Territory, click here</a>',
|
||||
'permlevel': 0
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'colour': 'White:FFF',
|
||||
'description': 'Only leaf nodes are allowed in transaction',
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'is_group',
|
||||
'fieldtype': 'Select',
|
||||
'idx': 6,
|
||||
'label': 'Has Child Node',
|
||||
'oldfieldname': 'is_group',
|
||||
'oldfieldtype': 'Select',
|
||||
'options': '\nYes\nNo',
|
||||
'colour': u'White:FFF',
|
||||
'description': u'Only leaf nodes are allowed in transaction',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'is_group',
|
||||
'fieldtype': u'Select',
|
||||
'label': u'Has Child Node',
|
||||
'oldfieldname': u'is_group',
|
||||
'oldfieldtype': u'Select',
|
||||
'options': u'\nYes\nNo',
|
||||
'permlevel': 0,
|
||||
'reqd': 1
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'lft',
|
||||
'fieldtype': 'Int',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'lft',
|
||||
'fieldtype': u'Int',
|
||||
'hidden': 1,
|
||||
'idx': 7,
|
||||
'in_filter': 1,
|
||||
'label': 'lft',
|
||||
'label': u'lft',
|
||||
'no_copy': 1,
|
||||
'oldfieldname': 'lft',
|
||||
'oldfieldtype': 'Int',
|
||||
'oldfieldname': u'lft',
|
||||
'oldfieldtype': u'Int',
|
||||
'permlevel': 0,
|
||||
'print_hide': 1,
|
||||
'report_hide': 0,
|
||||
@@ -225,16 +213,15 @@
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'rgt',
|
||||
'fieldtype': 'Int',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'rgt',
|
||||
'fieldtype': u'Int',
|
||||
'hidden': 1,
|
||||
'idx': 8,
|
||||
'in_filter': 1,
|
||||
'label': 'rgt',
|
||||
'label': u'rgt',
|
||||
'no_copy': 1,
|
||||
'oldfieldname': 'rgt',
|
||||
'oldfieldtype': 'Int',
|
||||
'oldfieldname': u'rgt',
|
||||
'oldfieldtype': u'Int',
|
||||
'permlevel': 0,
|
||||
'print_hide': 1,
|
||||
'report_hide': 0,
|
||||
@@ -243,15 +230,15 @@
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'old_parent',
|
||||
'fieldtype': 'Data',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'old_parent',
|
||||
'fieldtype': u'Link',
|
||||
'hidden': 1,
|
||||
'idx': 9,
|
||||
'label': 'old_parent',
|
||||
'label': u'old_parent',
|
||||
'no_copy': 1,
|
||||
'oldfieldname': 'old_parent',
|
||||
'oldfieldtype': 'Data',
|
||||
'oldfieldname': u'old_parent',
|
||||
'oldfieldtype': u'Data',
|
||||
'options': u'Territory',
|
||||
'permlevel': 0,
|
||||
'print_hide': 1,
|
||||
'report_hide': 1
|
||||
@@ -259,38 +246,34 @@
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'distribution_id',
|
||||
'fieldtype': 'Link',
|
||||
'idx': 10,
|
||||
'label': 'Distribution Id',
|
||||
'oldfieldname': 'distribution_id',
|
||||
'oldfieldtype': 'Link',
|
||||
'options': 'Budget Distribution',
|
||||
'permlevel': 0,
|
||||
'search_index': 0
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldtype': 'Section Break',
|
||||
'idx': 11,
|
||||
'label': 'Target Details',
|
||||
'oldfieldtype': 'Section Break',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'distribution_id',
|
||||
'fieldtype': u'Link',
|
||||
'label': u'Distribution Id',
|
||||
'oldfieldname': u'distribution_id',
|
||||
'oldfieldtype': u'Link',
|
||||
'options': u'Budget Distribution',
|
||||
'permlevel': 0
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'target_details',
|
||||
'fieldtype': 'Table',
|
||||
'idx': 12,
|
||||
'label': 'Target Details1',
|
||||
'oldfieldname': 'target_details',
|
||||
'oldfieldtype': 'Table',
|
||||
'options': 'Target Detail',
|
||||
'doctype': u'DocField',
|
||||
'fieldtype': u'Section Break',
|
||||
'label': u'Target Details',
|
||||
'oldfieldtype': u'Section Break',
|
||||
'permlevel': 0
|
||||
},
|
||||
|
||||
# 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
|
||||
}
|
||||
]
|
||||
@@ -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) { });
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
@@ -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'
|
||||
}
|
||||
]
|
||||
@@ -5,253 +5,237 @@
|
||||
{
|
||||
'creation': '2010-08-08 17:09:31',
|
||||
'docstatus': 0,
|
||||
'modified': '2010-09-20 14:06:57',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'swarnalata@webnotestech.com'
|
||||
'modified': '2012-03-21 14:58:16',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'swarnalata@webnotestech.com'
|
||||
},
|
||||
|
||||
# These values are common for all DocType
|
||||
{
|
||||
'_last_update': '1308741898',
|
||||
'autoname': 'field:rule_name',
|
||||
'colour': 'White:FFF',
|
||||
'autoname': u'field:rule_name',
|
||||
'colour': u'White:FFF',
|
||||
'default_print_format': u'Standard',
|
||||
'doctype': 'DocType',
|
||||
'document_type': 'Master',
|
||||
'module': 'Setup',
|
||||
'document_type': u'Master',
|
||||
'module': u'Setup',
|
||||
'name': '__common__',
|
||||
'search_fields': 'select_form,rule_status',
|
||||
'section_style': 'Tray',
|
||||
'server_code_error': ' ',
|
||||
'search_fields': u'select_form,rule_status',
|
||||
'section_style': u'Tray',
|
||||
'server_code_error': u' ',
|
||||
'show_in_menu': 0,
|
||||
'version': 30
|
||||
'version': 31
|
||||
},
|
||||
|
||||
# These values are common for all DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'doctype': u'DocField',
|
||||
'name': '__common__',
|
||||
'parent': 'Workflow Rule',
|
||||
'parentfield': 'fields',
|
||||
'parenttype': 'DocType',
|
||||
'parent': u'Workflow Rule',
|
||||
'parentfield': u'fields',
|
||||
'parenttype': u'DocType',
|
||||
'permlevel': 0
|
||||
},
|
||||
|
||||
# These values are common for all DocPerm
|
||||
{
|
||||
'create': 1,
|
||||
'doctype': 'DocPerm',
|
||||
'idx': 1,
|
||||
'doctype': u'DocPerm',
|
||||
'name': '__common__',
|
||||
'parent': 'Workflow Rule',
|
||||
'parentfield': 'permissions',
|
||||
'parenttype': 'DocType',
|
||||
'parent': u'Workflow Rule',
|
||||
'parentfield': u'permissions',
|
||||
'parenttype': u'DocType',
|
||||
'permlevel': 0,
|
||||
'read': 1,
|
||||
'role': 'System Manager',
|
||||
'role': u'System Manager',
|
||||
'write': 1
|
||||
},
|
||||
|
||||
# DocType, Workflow Rule
|
||||
{
|
||||
'doctype': 'DocType',
|
||||
'name': 'Workflow Rule'
|
||||
'name': u'Workflow Rule'
|
||||
},
|
||||
|
||||
# DocPerm
|
||||
{
|
||||
'doctype': 'DocPerm'
|
||||
'doctype': u'DocPerm'
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldtype': 'Section Break',
|
||||
'idx': 1,
|
||||
'label': 'Rule Definition',
|
||||
'oldfieldtype': 'Section Break'
|
||||
'doctype': u'DocField',
|
||||
'fieldtype': u'Section Break',
|
||||
'label': u'Rule Definition',
|
||||
'oldfieldtype': u'Section Break'
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldtype': 'HTML',
|
||||
'idx': 2,
|
||||
'label': 'Intro HTML',
|
||||
'oldfieldtype': 'HTML',
|
||||
'options': '<b>Select form for which you want to define rules,set priority & status.</b>'
|
||||
'doctype': u'DocField',
|
||||
'fieldtype': u'HTML',
|
||||
'label': u'Intro HTML',
|
||||
'oldfieldtype': u'HTML',
|
||||
'options': u'<b>Select form for which you want to define rules,set priority & status.</b>'
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'rule_name',
|
||||
'fieldtype': 'Data',
|
||||
'idx': 3,
|
||||
'label': 'Rule Name',
|
||||
'oldfieldname': 'rule_name',
|
||||
'oldfieldtype': 'Data',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'rule_name',
|
||||
'fieldtype': u'Data',
|
||||
'label': u'Rule Name',
|
||||
'oldfieldname': u'rule_name',
|
||||
'oldfieldtype': u'Data',
|
||||
'reqd': 1
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'colour': 'White:FFF',
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'rule_status',
|
||||
'fieldtype': 'Select',
|
||||
'idx': 4,
|
||||
'colour': u'White:FFF',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'rule_status',
|
||||
'fieldtype': u'Select',
|
||||
'in_filter': 1,
|
||||
'label': 'Rule Status',
|
||||
'oldfieldname': 'rule_status',
|
||||
'oldfieldtype': 'Select',
|
||||
'options': '\nActive\nInactive',
|
||||
'label': u'Rule Status',
|
||||
'oldfieldname': u'rule_status',
|
||||
'oldfieldtype': u'Select',
|
||||
'options': u'\nActive\nInactive',
|
||||
'reqd': 1,
|
||||
'search_index': 0
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'colour': 'White:FFF',
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'select_form',
|
||||
'fieldtype': 'Link',
|
||||
'idx': 5,
|
||||
'colour': u'White:FFF',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'select_form',
|
||||
'fieldtype': u'Link',
|
||||
'in_filter': 1,
|
||||
'label': 'Select Form',
|
||||
'oldfieldname': 'select_form',
|
||||
'oldfieldtype': 'Link',
|
||||
'options': 'DocType',
|
||||
'label': u'Select Form',
|
||||
'oldfieldname': u'select_form',
|
||||
'oldfieldtype': u'Link',
|
||||
'options': u'DocType',
|
||||
'reqd': 1,
|
||||
'search_index': 1,
|
||||
'trigger': 'Client'
|
||||
'trigger': u'Client'
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'rule_priority',
|
||||
'fieldtype': 'Int',
|
||||
'idx': 6,
|
||||
'label': 'Rule Priority',
|
||||
'oldfieldname': 'rule_priority',
|
||||
'oldfieldtype': 'Int',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'rule_priority',
|
||||
'fieldtype': u'Int',
|
||||
'label': u'Rule Priority',
|
||||
'oldfieldname': u'rule_priority',
|
||||
'oldfieldtype': u'Int',
|
||||
'reqd': 0
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'colour': 'White:FFF',
|
||||
'doctype': 'DocField',
|
||||
'fieldtype': 'Section Break',
|
||||
'idx': 7,
|
||||
'label': 'Define Rule',
|
||||
'oldfieldtype': 'Section Break',
|
||||
'options': 'Simple'
|
||||
'colour': u'White:FFF',
|
||||
'doctype': u'DocField',
|
||||
'fieldtype': u'Section Break',
|
||||
'label': u'Define Rule',
|
||||
'oldfieldtype': u'Section Break',
|
||||
'options': u'Simple'
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'workflow_rule_details',
|
||||
'fieldtype': 'Table',
|
||||
'idx': 8,
|
||||
'label': 'Workflow Rule Details',
|
||||
'oldfieldname': 'workflow_rule_details',
|
||||
'oldfieldtype': 'Table',
|
||||
'options': 'Workflow Rule Detail',
|
||||
'width': '100px'
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'workflow_rule_details',
|
||||
'fieldtype': u'Table',
|
||||
'label': u'Workflow Rule Details',
|
||||
'oldfieldname': u'workflow_rule_details',
|
||||
'oldfieldtype': u'Table',
|
||||
'options': u'Workflow Rule Detail',
|
||||
'width': u'100px'
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'colour': 'White:FFF',
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'extra_condition',
|
||||
'fieldtype': 'Code',
|
||||
'colour': u'White:FFF',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'extra_condition',
|
||||
'fieldtype': u'Code',
|
||||
'hidden': 1,
|
||||
'idx': 9,
|
||||
'label': 'Extra Condition',
|
||||
'oldfieldname': 'extra_condition',
|
||||
'oldfieldtype': 'Code',
|
||||
'label': u'Extra Condition',
|
||||
'oldfieldname': u'extra_condition',
|
||||
'oldfieldtype': u'Code',
|
||||
'print_hide': 1
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'colour': 'White:FFF',
|
||||
'doctype': 'DocField',
|
||||
'fieldtype': 'Section Break',
|
||||
'idx': 10,
|
||||
'label': 'Action Detail',
|
||||
'oldfieldtype': 'Section Break'
|
||||
'colour': u'White:FFF',
|
||||
'doctype': u'DocField',
|
||||
'fieldtype': u'Section Break',
|
||||
'label': u'Action Detail',
|
||||
'oldfieldtype': u'Section Break'
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldtype': 'HTML',
|
||||
'idx': 11,
|
||||
'label': 'Action html',
|
||||
'oldfieldtype': 'HTML',
|
||||
'options': '<b>Specify actions to be taken when conditions hold satisfied</b>'
|
||||
'doctype': u'DocField',
|
||||
'fieldtype': u'HTML',
|
||||
'label': u'Action html',
|
||||
'oldfieldtype': u'HTML',
|
||||
'options': u'<b>Specify actions to be taken when conditions hold satisfied</b>'
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'workflow_action_details',
|
||||
'fieldtype': 'Table',
|
||||
'idx': 12,
|
||||
'label': 'Workflow Action Details',
|
||||
'oldfieldname': 'workflow_action_details',
|
||||
'oldfieldtype': 'Table',
|
||||
'options': 'Workflow Action Detail'
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'workflow_action_details',
|
||||
'fieldtype': u'Table',
|
||||
'label': u'Workflow Action Details',
|
||||
'oldfieldname': u'workflow_action_details',
|
||||
'oldfieldtype': u'Table',
|
||||
'options': u'Workflow Action Detail'
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'colour': 'White:FFF',
|
||||
'doctype': 'DocField',
|
||||
'fieldtype': 'HTML',
|
||||
'colour': u'White:FFF',
|
||||
'doctype': u'DocField',
|
||||
'fieldtype': u'HTML',
|
||||
'hidden': 1,
|
||||
'idx': 13,
|
||||
'label': 'Reject HTML',
|
||||
'label': u'Reject HTML',
|
||||
'no_copy': 1,
|
||||
'oldfieldtype': '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>",
|
||||
'oldfieldtype': u'HTML',
|
||||
'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,
|
||||
'report_hide': 1
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'colour': 'White:FFF',
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'message',
|
||||
'fieldtype': 'Text',
|
||||
'colour': u'White:FFF',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'message',
|
||||
'fieldtype': u'Text',
|
||||
'hidden': 1,
|
||||
'idx': 14,
|
||||
'label': 'Enter message',
|
||||
'label': u'Enter message',
|
||||
'no_copy': 1,
|
||||
'oldfieldname': 'message',
|
||||
'oldfieldtype': 'Text',
|
||||
'oldfieldname': u'message',
|
||||
'oldfieldtype': u'Text',
|
||||
'print_hide': 1,
|
||||
'report_hide': 1
|
||||
},
|
||||
|
||||
# DocField
|
||||
{
|
||||
'colour': 'White:FFF',
|
||||
'doctype': 'DocField',
|
||||
'fieldname': 'raise_exception',
|
||||
'fieldtype': 'Select',
|
||||
'colour': u'White:FFF',
|
||||
'doctype': u'DocField',
|
||||
'fieldname': u'raise_exception',
|
||||
'fieldtype': u'Select',
|
||||
'hidden': 1,
|
||||
'idx': 15,
|
||||
'label': 'Raise Exception',
|
||||
'label': u'Raise Exception',
|
||||
'no_copy': 1,
|
||||
'oldfieldname': 'raise_exception',
|
||||
'oldfieldtype': 'Select',
|
||||
'options': '\nYes\nNo',
|
||||
'oldfieldname': u'raise_exception',
|
||||
'oldfieldtype': u'Select',
|
||||
'options': u'\nYes\nNo',
|
||||
'print_hide': 1,
|
||||
'report_hide': 1
|
||||
}
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
<div id="setup_wizard_wrapper" class="layout_wrapper"></div>
|
||||
@@ -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);
|
||||
|
||||
}
|
||||
@@ -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'
|
||||
}
|
||||
]
|
||||
@@ -1 +0,0 @@
|
||||
<div></div>
|
||||
Reference in New Issue
Block a user