restructured erpnext and deleted unwanted

This commit is contained in:
nabinhait 2011-07-01 13:34:41 +05:30
parent c1c54c9400
commit ec097975d0
1280 changed files with 54494 additions and 88652 deletions

View File

@ -1,4 +0,0 @@
Install these python packages(using easy_install??
1.suds
2.

View File

@ -1,24 +1,23 @@
[
{
'_last_update': None,
'_user_tags': None,
'creation': '2010-09-25 10:50:37',
'disabled': 'No',
'docstatus': 0,
'doctype': u'Module Def',
'doctype_list': 'GL Mapper, Journal Voucher\nGL Mapper, Payable Voucher\nGL Mapper, Receivable Voucher\nDocType Label, Receivable Voucher\nDocType Label, Payable Voucher\nDocType Label, QA Inspection Report\nDocType Label, Ticket',
'doctype_list': 'GL Mapper, Journal Voucher\nGL Mapper, Payable Voucher\nGL Mapper, Receivable Voucher\nDocType Label, Receivable Voucher\nDocType Label, Payable Voucher',
'file_list': 'finance.gif,FileData/00210',
'idx': None,
'is_hidden': 'No',
'last_updated_date': '2010-12-08 10:13:30',
'modified': '2011-05-24 14:48:44',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'module_desc': 'Data about your payables, receivables and books of accounts',
'module_icon': 'Accounts.gif',
'module_label': 'Accounts',
'module_name': 'Accounts',
'module_page': None,
'module_seq': 5,
'module_seq': 6,
'name': 'Accounts',
'owner': 'Administrator',
'parent': None,
@ -40,7 +39,7 @@
'hide': None,
'icon': None,
'idx': 1,
'modified': '2011-05-25 10:54:06',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01178',
'owner': 'harshada@webnotestech.com',
@ -61,7 +60,7 @@
'hide': None,
'icon': None,
'idx': 2,
'modified': '2011-05-25 10:54:06',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01183',
'owner': 'harshada@webnotestech.com',
@ -82,7 +81,7 @@
'hide': None,
'icon': None,
'idx': 3,
'modified': '2011-05-25 10:54:06',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01012',
'owner': 'Administrator',
@ -103,7 +102,7 @@
'hide': None,
'icon': None,
'idx': 4,
'modified': '2011-05-25 10:54:06',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01013',
'owner': 'Administrator',
@ -124,7 +123,7 @@
'hide': None,
'icon': None,
'idx': 5,
'modified': '2011-05-25 10:54:06',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01014',
'owner': 'Administrator',
@ -145,7 +144,7 @@
'hide': None,
'icon': 'table.gif',
'idx': 6,
'modified': '2011-05-25 10:54:06',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01015',
'owner': 'Administrator',
@ -166,7 +165,7 @@
'hide': None,
'icon': None,
'idx': 7,
'modified': '2011-05-25 10:54:06',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01016',
'owner': 'saumil@webnotestech.com',
@ -187,7 +186,7 @@
'hide': None,
'icon': None,
'idx': 8,
'modified': '2011-05-25 10:54:06',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01017',
'owner': 'Administrator',
@ -208,7 +207,7 @@
'hide': None,
'icon': None,
'idx': 9,
'modified': '2011-05-25 10:54:07',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01018',
'owner': 'nabin@webnotestech.com',
@ -229,7 +228,7 @@
'hide': None,
'icon': None,
'idx': 10,
'modified': '2011-05-25 10:54:07',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01019',
'owner': 'Administrator',
@ -250,7 +249,7 @@
'hide': None,
'icon': None,
'idx': 11,
'modified': '2011-05-25 10:54:07',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01188',
'owner': 'Administrator',
@ -260,7 +259,7 @@
},
{
'click_function': None,
'creation': '2011-05-25 10:54:07',
'creation': '2011-05-24 14:47:53',
'description': 'You can export balance of selected ledgers within a specific period',
'display_name': 'Ledger Balance Export',
'doc_name': 'Ledger Balance Export',
@ -271,9 +270,9 @@
'hide': None,
'icon': None,
'idx': 12,
'modified': '2011-05-25 10:54:07',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01302',
'name': 'MDI01283',
'owner': 'Administrator',
'parent': 'Accounts',
'parentfield': 'items',
@ -292,7 +291,7 @@
'hide': None,
'icon': None,
'idx': 13,
'modified': '2011-05-25 10:54:07',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01021',
'owner': 'Administrator',
@ -313,7 +312,7 @@
'hide': None,
'icon': None,
'idx': 14,
'modified': '2011-05-25 10:54:07',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01022',
'owner': 'Administrator',
@ -334,7 +333,7 @@
'hide': None,
'icon': None,
'idx': 15,
'modified': '2011-05-25 10:54:07',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01023',
'owner': 'Administrator',
@ -355,7 +354,7 @@
'hide': None,
'icon': None,
'idx': 16,
'modified': '2011-05-25 10:54:07',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01024',
'owner': 'Administrator',
@ -376,7 +375,7 @@
'hide': None,
'icon': None,
'idx': 17,
'modified': '2011-05-25 10:54:07',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01025',
'owner': 'Administrator',
@ -397,7 +396,7 @@
'hide': None,
'icon': None,
'idx': 18,
'modified': '2011-05-25 10:54:07',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01026',
'owner': 'Administrator',
@ -418,7 +417,7 @@
'hide': None,
'icon': None,
'idx': 19,
'modified': '2011-05-25 10:54:07',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01027',
'owner': 'Administrator',
@ -439,7 +438,7 @@
'hide': None,
'icon': None,
'idx': 20,
'modified': '2011-05-25 10:54:07',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01028',
'owner': 'Administrator',
@ -460,7 +459,7 @@
'hide': None,
'icon': None,
'idx': 21,
'modified': '2011-05-25 10:54:07',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01031',
'owner': 'Administrator',
@ -481,7 +480,7 @@
'hide': None,
'icon': None,
'idx': 22,
'modified': '2011-05-25 10:54:07',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01032',
'owner': 'Administrator',
@ -502,7 +501,7 @@
'hide': None,
'icon': None,
'idx': 23,
'modified': '2011-05-25 10:54:07',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01033',
'owner': 'Administrator',
@ -523,7 +522,7 @@
'hide': None,
'icon': None,
'idx': 24,
'modified': '2011-05-25 10:54:07',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01034',
'owner': 'Administrator',
@ -544,7 +543,7 @@
'hide': None,
'icon': None,
'idx': 25,
'modified': '2011-05-25 10:54:07',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01267',
'owner': 'Administrator',
@ -565,7 +564,7 @@
'hide': None,
'icon': None,
'idx': 26,
'modified': '2011-05-25 10:54:07',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01035',
'owner': 'Administrator',
@ -586,7 +585,7 @@
'hide': None,
'icon': None,
'idx': 27,
'modified': '2011-05-25 10:54:07',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01036',
'owner': 'Administrator',
@ -607,7 +606,7 @@
'hide': None,
'icon': None,
'idx': 28,
'modified': '2011-05-25 10:54:07',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01038',
'owner': 'Administrator',
@ -628,7 +627,7 @@
'hide': None,
'icon': None,
'idx': 29,
'modified': '2011-05-25 10:54:07',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01039',
'owner': 'jai@webnotestech.com',
@ -649,7 +648,7 @@
'hide': None,
'icon': None,
'idx': 30,
'modified': '2011-05-25 10:54:07',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01040',
'owner': 'jai@webnotestech.com',
@ -670,7 +669,7 @@
'hide': None,
'icon': None,
'idx': 31,
'modified': '2011-05-25 10:54:07',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDI01041',
'owner': 'saumil@webnotestech.com',
@ -683,8 +682,8 @@
'docstatus': 0,
'doctype': 'Module Def Role',
'idx': 1,
'modified': '2011-03-07 17:24:33',
'modified_by': 'umair@iwebnotes.com',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDR00302',
'owner': 'Administrator',
'parent': 'Accounts',
@ -697,8 +696,8 @@
'docstatus': 0,
'doctype': 'Module Def Role',
'idx': 2,
'modified': '2011-03-07 17:24:33',
'modified_by': 'umair@iwebnotes.com',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDR00303',
'owner': 'Administrator',
'parent': 'Accounts',
@ -711,27 +710,13 @@
'docstatus': 0,
'doctype': 'Module Def Role',
'idx': 3,
'modified': '2011-03-07 17:24:33',
'modified_by': 'umair@iwebnotes.com',
'modified': '2011-07-01 09:36:04',
'modified_by': 'Administrator',
'name': 'MDR00304',
'owner': 'Administrator',
'parent': 'Accounts',
'parentfield': 'roles',
'parenttype': 'Module Def',
'role': 'Administrator'
},
{
'creation': '2011-03-07 17:24:33',
'docstatus': 0,
'doctype': 'Module Def Role',
'idx': 4,
'modified': '2011-03-07 17:24:33',
'modified_by': 'umair@iwebnotes.com',
'name': 'MDR00328',
'owner': 'umair@iwebnotes.com',
'parent': 'Accounts',
'parentfield': 'roles',
'parenttype': 'Module Def',
'role': 'testrole'
}
]

File diff suppressed because it is too large Load Diff

View File

@ -1,417 +1,207 @@
# DocType, Account Balance
[
# These values are common in all dictionaries
{
'_last_update': None,
'allow_attach': None,
'allow_copy': None,
'allow_email': None,
'allow_print': None,
'allow_rename': None,
'allow_trash': None,
'autoname': '_ACB.######',
'change_log': None,
'client_script': None,
'client_script_core': None,
'client_string': None,
'colour': 'White:FFF',
'creation': '2010-08-08 17:08:51',
'description': None,
'docstatus': 0,
'doctype': 'DocType',
'document_type': None,
'dt_template': None,
'hide_heading': None,
'hide_toolbar': None,
'idx': None,
'in_create': None,
'in_dialog': None,
'is_transaction_doc': None,
'issingle': None,
'istable': 0,
'max_attachments': None,
'menu_index': None,
'modified': '2011-03-23 12:37:39',
'modified': '2011-03-24 14:43:15',
'modified_by': 'Administrator',
'owner': 'Administrator'
},
# These values are common for all DocType
{
'_last_update': '1305714002',
'autoname': '_ACB.######',
'colour': 'White:FFF',
'doctype': 'DocType',
'istable': 0,
'module': 'Accounts',
'name': 'Account Balance',
'name_case': None,
'owner': 'Administrator',
'parent': None,
'parent_node': None,
'parentfield': None,
'parenttype': None,
'print_outline': None,
'read_only': None,
'read_only_onload': None,
'name': '__common__',
'search_fields': 'account, period, fiscal_year, balance',
'section_style': 'Simple',
'server_code': None,
'server_code_compiled': None,
'server_code_core': None,
'server_code_error': ' ',
'show_in_menu': 0,
'smallicon': None,
'use_template': None,
'version': 28
},
# These values are common for all DocField
{
'doctype': 'DocField',
'name': '__common__',
'parent': 'Account Balance',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0
},
# These values are common for all DocPerm
{
'amend': 0,
'cancel': 0,
'create': 0,
'creation': '2011-05-09 10:50:48',
'docstatus': 0,
'doctype': 'DocPerm',
'execute': None,
'idx': None,
'match': None,
'modified': '2011-05-09 10:50:48',
'modified_by': 'Administrator',
'name': '000000174',
'owner': 'Administrator',
'name': '__common__',
'parent': 'Account Balance',
'parentfield': 'permissions',
'parenttype': 'DocType',
'permlevel': None,
'permlevel': 0,
'read': 1,
'role': 'Accounts User',
'submit': 0,
'write': 0
},
# DocType, Account Balance
{
'doctype': 'DocType',
'name': 'Account Balance'
},
# DocPerm
{
'amend': 0,
'cancel': 0,
'create': 0,
'creation': '2011-05-09 10:50:48',
'docstatus': 0,
'doctype': 'DocPerm',
'execute': None,
'idx': None,
'match': None,
'modified': '2011-05-09 10:50:48',
'modified_by': 'Administrator',
'name': '000000175',
'owner': 'Administrator',
'parent': 'Account Balance',
'parentfield': 'permissions',
'parenttype': 'DocType',
'permlevel': None,
'read': 1,
'role': 'Accounts Manager',
'submit': 0,
'write': 0
'role': 'Accounts User'
},
# DocPerm
{
'doctype': 'DocPerm',
'role': 'Accounts Manager'
},
# DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2011-05-09 10:50:48',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'account',
'fieldtype': 'Link',
'hidden': None,
'icon': None,
'idx': 1,
'in_filter': 1,
'label': 'Account',
'modified': '2011-05-09 10:50:48',
'modified_by': 'Administrator',
'name': '000000176',
'no_copy': None,
'oldfieldname': None,
'oldfieldtype': None,
'options': 'Account',
'owner': 'Administrator',
'parent': 'Account Balance',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': 1,
'trigger': None,
'width': None
'search_index': 1
},
# DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:08:51',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'period',
'fieldtype': 'Link',
'hidden': None,
'icon': None,
'idx': 2,
'in_filter': 1,
'label': 'Period',
'modified': '2011-05-09 10:50:48',
'modified_by': 'Administrator',
'name': 'FL00458',
'no_copy': None,
'oldfieldname': 'period',
'oldfieldtype': 'Link',
'options': 'Period',
'owner': 'nabin@webnotestech.com',
'parent': 'Account Balance',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': 1,
'trigger': None,
'width': None
'search_index': 1
},
# DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:08:51',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'opening',
'fieldtype': 'Currency',
'hidden': None,
'icon': None,
'idx': 3,
'in_filter': None,
'idx': 4,
'label': 'Opening',
'modified': '2011-05-09 10:50:48',
'modified_by': 'Administrator',
'name': 'FL00462',
'no_copy': None,
'oldfieldname': 'opening',
'oldfieldtype': 'Currency',
'options': None,
'owner': 'Administrator',
'parent': 'Account Balance',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': None,
'width': None
'oldfieldtype': 'Currency'
},
# DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-10-26 09:43:49',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'debit',
'fieldtype': 'Currency',
'hidden': None,
'icon': None,
'idx': 4,
'in_filter': None,
'idx': 6,
'label': 'Debit',
'modified': '2011-05-09 10:50:48',
'modified_by': 'Administrator',
'name': 'FL04062',
'no_copy': None,
'oldfieldname': 'debit',
'oldfieldtype': 'Currency',
'options': None,
'owner': 'Administrator',
'parent': 'Account Balance',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': None,
'width': None
'oldfieldtype': 'Currency'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'debit',
'fieldtype': 'Currency',
'idx': 6,
'label': 'Debit',
'oldfieldname': 'debit',
'oldfieldtype': 'Currency'
},
# DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-10-26 09:43:49',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'credit',
'fieldtype': 'Currency',
'hidden': None,
'icon': None,
'idx': 5,
'in_filter': None,
'idx': 7,
'label': 'Credit',
'modified': '2011-05-09 10:50:48',
'modified_by': 'Administrator',
'name': 'FL04063',
'no_copy': None,
'oldfieldname': 'credit',
'oldfieldtype': 'Currency',
'options': None,
'owner': 'Administrator',
'parent': 'Account Balance',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': None,
'width': None
'oldfieldtype': 'Currency'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'credit',
'fieldtype': 'Currency',
'idx': 7,
'label': 'Credit',
'oldfieldname': 'credit',
'oldfieldtype': 'Currency'
},
# DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:08:51',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'balance',
'fieldtype': 'Currency',
'hidden': None,
'icon': None,
'idx': 6,
'in_filter': None,
'idx': 8,
'label': 'Balance',
'modified': '2011-05-09 10:50:48',
'modified_by': 'Administrator',
'name': 'FL00463',
'no_copy': None,
'oldfieldname': 'balance',
'oldfieldtype': 'Currency',
'options': None,
'owner': 'Administrator',
'parent': 'Account Balance',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': None,
'width': None
'oldfieldtype': 'Currency'
},
# DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:08:51',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'fiscal_year',
'fieldtype': 'Link',
'hidden': 1,
'icon': None,
'idx': 7,
'idx': 9,
'in_filter': 1,
'label': 'Fiscal Year',
'modified': '2011-05-09 10:50:48',
'modified_by': 'Administrator',
'name': 'FL00459',
'no_copy': None,
'oldfieldname': 'fiscal_year',
'oldfieldtype': 'Link',
'options': 'Fiscal Year',
'owner': 'Administrator',
'parent': 'Account Balance',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': 1,
'trigger': None,
'width': None
'search_index': 1
},
# DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:08:51',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'start_date',
'fieldtype': 'Date',
'hidden': 1,
'icon': None,
'idx': 8,
'in_filter': None,
'idx': 10,
'in_filter': 1,
'label': 'Start Date',
'modified': '2011-05-09 10:50:48',
'modified_by': 'Administrator',
'name': 'FL00460',
'no_copy': None,
'oldfieldname': 'start_date',
'oldfieldtype': 'Date',
'options': None,
'owner': 'nabin@webnotestech.com',
'parent': 'Account Balance',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': 1,
'trigger': None,
'width': None
'search_index': 1
},
# DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:08:51',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'end_date',
'fieldtype': 'Date',
'hidden': 1,
'icon': None,
'idx': 9,
'in_filter': None,
'idx': 11,
'in_filter': 1,
'label': 'End Date',
'modified': '2011-05-09 10:50:48',
'modified_by': 'Administrator',
'name': 'FL00461',
'no_copy': None,
'oldfieldname': 'end_date',
'oldfieldtype': 'Date',
'options': None,
'owner': 'nabin@webnotestech.com',
'parent': 'Account Balance',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': 1,
'trigger': None,
'width': None
'search_index': 1
}
]

View File

@ -1,3 +0,0 @@
cur_frm.cscript['Repost GL'] = function(doc,dt,dn) {
$c_obj('GL Control','repost_gl','',function(r,rt) {alert('Done')});
}

View File

@ -1,43 +0,0 @@
# 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_bal(self,arg):
msgprint(arg)
bal = sql("select balance,debit_or_credit from tabAccount where name=%s", arg)
msgprint(bal)
return fmt_money(flt(bal[0][0])) + ' ' + bal[0][1]
def on_update(self):
set_default('fiscal_year', self.doc.current_fiscal_year)
ysd = sql("select year_start_date from `tabFiscal Year` where name=%s", self.doc.current_fiscal_year)[0][0]
set_default('year_start_date', ysd.strftime('%Y-%m-%d'))
set_default('year_end_date', get_last_day(get_first_day(ysd,0,11)).strftime('%Y-%m-%d'))
def get_bank_defaults(self, arg):
return {
'def_bv_type': self.doc.default_bank_voucher_type,
'def_bv_series': self.doc.default_bank_voucher_series,
'def_bank_account': self.doc.default_bank_account,
'bank_balance': self.get_bal(self.doc.default_bank_account),
'acc_balance': self.get_bal(arg),
}

File diff suppressed because one or more lines are too long

View File

@ -1 +1,110 @@
[{'section_style': 'Tray', 'is_transaction_doc': None, 'creation': '2009-05-22 14:56:16', 'search_fields': None, 'module': 'Accounts', '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': 24, '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': 'nabin@webnotestech.com', 'document_type': None, 'name': 'Advance Adjustment 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': 1, 'oldfieldtype': 'Link', 'creation': '2009-05-22 14:56:16', 'doctype': 'DocField', 'oldfieldname': 'journal_voucher', 'owner': 'Administrator', 'reqd': None, 'in_filter': None, 'print_hide': None, 'modified_by': 'nabin@webnotestech.com', 'label': 'Journal Voucher', 'width': '250px', 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 1, 'description': None, 'parent': 'Advance Adjustment Detail', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL02126', 'idx': 1, 'default': None, 'colour': None, 'modified': '2009-12-15 14:34:41', 'parenttype': 'DocType', 'fieldname': 'journal_voucher', 'fieldtype': 'Link', 'options': 'Journal Voucher', 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': 1, 'oldfieldtype': 'Data', 'creation': '2009-05-28 12:21:27', 'doctype': 'DocField', 'oldfieldname': 'jv_detail_no', 'owner': 'Administrator', 'reqd': None, 'in_filter': None, 'print_hide': 1, 'modified_by': 'nabin@webnotestech.com', 'label': 'Journal Voucher Detail No', 'width': '120px', 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': 1, 'permlevel': 1, 'description': None, 'parent': 'Advance Adjustment Detail', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL02226', 'idx': 2, 'default': None, 'colour': None, 'modified': '2009-12-15 14:34:41', 'parenttype': 'DocType', 'fieldname': 'jv_detail_no', 'fieldtype': 'Data', 'options': None, 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': 1, 'oldfieldtype': 'Currency', 'creation': '2009-05-22 14:56:16', 'doctype': 'DocField', 'oldfieldname': 'advance_amount', 'owner': 'Administrator', 'reqd': None, 'in_filter': None, 'print_hide': None, 'modified_by': 'nabin@webnotestech.com', 'label': 'Advance amount', 'width': '120px', 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 1, 'description': None, 'parent': 'Advance Adjustment Detail', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL02127', 'idx': 3, 'default': None, 'colour': None, 'modified': '2009-12-15 14:34:41', 'parenttype': 'DocType', 'fieldname': 'advance_amount', 'fieldtype': 'Currency', 'options': None, 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': 1, 'oldfieldtype': 'Currency', 'creation': '2009-05-28 12:22:02', 'doctype': 'DocField', 'oldfieldname': 'allocated_amount', 'owner': 'Administrator', 'reqd': None, 'in_filter': None, 'print_hide': None, 'modified_by': 'nabin@webnotestech.com', 'label': 'Allocated amount', 'width': '120px', 'trigger': 'Client', 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'Advance Adjustment Detail', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL02227', 'idx': 4, 'default': None, 'colour': None, 'modified': '2009-12-15 14:34:41', 'parenttype': 'DocType', 'fieldname': 'allocated_amount', 'fieldtype': 'Currency', 'options': None, 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': 1, 'oldfieldtype': 'Small Text', 'creation': '2009-05-28 14:19:30', 'doctype': 'DocField', 'oldfieldname': 'remarks', 'owner': 'Administrator', 'reqd': None, 'in_filter': None, 'print_hide': None, 'modified_by': 'nabin@webnotestech.com', 'label': 'Remarks', 'width': '150px', 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 1, 'description': None, 'parent': 'Advance Adjustment Detail', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL02231', 'idx': 5, 'default': None, 'colour': None, 'modified': '2009-12-15 14:34:41', 'parenttype': 'DocType', 'fieldname': 'remarks', 'fieldtype': 'Small Text', 'options': None, 'report_hide': None, 'parentfield': 'fields'}]
# DocType, Advance Adjustment Detail
[
# These values are common in all dictionaries
{
'creation': '2010-08-08 17:08:51',
'docstatus': 0,
'modified': '2010-09-20 14:06:57',
'modified_by': 'umair@iwebnotes.com',
'owner': 'Administrator'
},
# These values are common for all DocType
{
'colour': 'White:FFF',
'doctype': 'DocType',
'istable': 1,
'module': 'Accounts',
'name': '__common__',
'section_style': 'Tray',
'server_code_error': ' ',
'show_in_menu': 0,
'version': 24
},
# These values are common for all DocField
{
'doctype': 'DocField',
'name': '__common__',
'no_copy': 1,
'parent': 'Advance Adjustment Detail',
'parentfield': 'fields',
'parenttype': 'DocType'
},
# DocType, Advance Adjustment Detail
{
'doctype': 'DocType',
'name': 'Advance Adjustment Detail'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'journal_voucher',
'fieldtype': 'Link',
'idx': 1,
'label': 'Journal Voucher',
'oldfieldname': 'journal_voucher',
'oldfieldtype': 'Link',
'options': 'Journal Voucher',
'permlevel': 1,
'width': '250px'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'jv_detail_no',
'fieldtype': 'Data',
'hidden': 1,
'idx': 2,
'label': 'Journal Voucher Detail No',
'oldfieldname': 'jv_detail_no',
'oldfieldtype': 'Data',
'permlevel': 1,
'print_hide': 1,
'width': '120px'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'advance_amount',
'fieldtype': 'Currency',
'idx': 3,
'label': 'Advance amount',
'oldfieldname': 'advance_amount',
'oldfieldtype': 'Currency',
'permlevel': 1,
'width': '120px'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'allocated_amount',
'fieldtype': 'Currency',
'idx': 4,
'label': 'Allocated amount',
'oldfieldname': 'allocated_amount',
'oldfieldtype': 'Currency',
'permlevel': 0,
'trigger': 'Client',
'width': '120px'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'remarks',
'fieldtype': 'Small Text',
'idx': 5,
'label': 'Remarks',
'oldfieldname': 'remarks',
'oldfieldtype': 'Small Text',
'permlevel': 1,
'width': '150px'
}
]

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1,31 @@
[{'section_style': 'Simple', 'is_transaction_doc': None, 'creation': '2010-03-04 14:18:59', 'search_fields': None, 'module': 'Accounts', 'doctype': 'DocType', 'change_log': None, 'print_outline': '', 'owner': 'nabin@webnotestech.com', 'in_dialog': None, 'in_create': None, 'read_only': None, 'allow_email': None, 'dt_template': None, 'hide_heading': None, 'issingle': 1, 'allow_rename': None, 'smallicon': None, 'allow_attach': None, 'show_in_menu': 0, 'max_attachments': None, 'version': 24, 'menu_index': None, 'docstatus': 0, 'allow_copy': None, 'istable': None, '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': 'nabin@webnotestech.com', 'document_type': None, 'name': 'Budget Control', '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}]
# DocType, Budget Control
[
# These values are common in all dictionaries
{
'creation': '2010-08-08 17:08:54',
'docstatus': 0,
'modified': '2010-09-20 14:06:57',
'modified_by': 'umair@iwebnotes.com',
'owner': 'nabin@webnotestech.com'
},
# These values are common for all DocType
{
'colour': 'White:FFF',
'doctype': 'DocType',
'issingle': 1,
'module': 'Accounts',
'name': '__common__',
'section_style': 'Simple',
'server_code_error': ' ',
'show_in_menu': 0,
'version': 23
},
# DocType, Budget Control
{
'doctype': 'DocType',
'name': 'Budget Control'
}
]

View File

@ -1 +1,98 @@
[{'section_style': 'Tray', 'is_transaction_doc': None, 'creation': '2009-06-05 16:50:56', 'search_fields': None, 'module': 'Accounts', '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': '', 'allow_attach': None, 'show_in_menu': 0, 'max_attachments': None, 'version': 6, 'menu_index': None, 'docstatus': 0, 'allow_copy': None, 'istable': 1, 'description': None, 'parent': None, 'server_code': None, 'allow_trash': None, 'allow_print': None, 'autoname': 'CBD/.######', 'client_script_core': None, 'client_string': None, 'use_template': None, 'modified_by': 'harshada@webnotestech.com', 'document_type': None, 'name': 'Budget 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': 'Link', 'creation': '2009-06-05 16:50:56', 'doctype': 'DocField', 'oldfieldname': 'account', 'owner': 'Administrator', 'reqd': 1, 'in_filter': 1, 'print_hide': None, 'modified_by': 'harshada@webnotestech.com', 'label': 'Account', 'width': None, 'trigger': 'Client', 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'Budget Detail', 'search_index': 1, 'allow_on_submit': None, 'icon': None, 'name': 'FL02268', 'idx': 1, 'default': None, 'colour': None, 'modified': '2010-07-28 13:18:00', 'parenttype': 'DocType', 'fieldname': 'account', 'fieldtype': 'Link', 'options': 'Account', 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': None, 'oldfieldtype': 'Currency', 'creation': '2009-06-05 16:50:56', 'doctype': 'DocField', 'oldfieldname': 'budget_allocated', 'owner': 'Administrator', 'reqd': 1, 'in_filter': None, 'print_hide': None, 'modified_by': 'harshada@webnotestech.com', 'label': 'Budget Allocated', 'width': None, 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'Budget Detail', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL02269', 'idx': 2, 'default': None, 'colour': None, 'modified': '2010-07-28 13:18:00', 'parenttype': 'DocType', 'fieldname': 'budget_allocated', 'fieldtype': 'Currency', 'options': None, 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': None, 'oldfieldtype': 'Currency', 'creation': '2009-06-05 16:50:56', 'doctype': 'DocField', 'oldfieldname': 'actual', 'owner': 'Administrator', 'reqd': None, 'in_filter': None, 'print_hide': None, 'modified_by': 'harshada@webnotestech.com', 'label': 'Actual', 'width': None, 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 1, 'description': None, 'parent': 'Budget Detail', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL02270', 'idx': 3, 'default': None, 'colour': None, 'modified': '2010-07-28 13:18:00', 'parenttype': 'DocType', 'fieldname': 'actual', 'fieldtype': 'Currency', 'options': None, 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': None, 'oldfieldtype': 'Select', 'creation': '2009-06-05 16:50:56', 'doctype': 'DocField', 'oldfieldname': 'fiscal_year', 'owner': 'Administrator', 'reqd': 1, 'in_filter': 1, 'print_hide': None, 'modified_by': 'harshada@webnotestech.com', 'label': 'Fiscal Year', 'width': None, 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'Budget Detail', 'search_index': 1, 'allow_on_submit': None, 'icon': None, 'name': 'FL02272', 'idx': 4, 'default': None, 'colour': None, 'modified': '2010-07-28 13:18:00', 'parenttype': 'DocType', 'fieldname': 'fiscal_year', 'fieldtype': 'Select', 'options': 'link:Fiscal Year', 'report_hide': None, 'parentfield': 'fields'}]
# DocType, Budget Detail
[
# These values are common in all dictionaries
{
'creation': '2010-08-08 17:08:54',
'docstatus': 0,
'modified': '2010-09-20 14:06:57',
'modified_by': 'umair@iwebnotes.com',
'owner': 'Administrator'
},
# These values are common for all DocType
{
'autoname': 'CBD/.######',
'colour': 'White:FFF',
'doctype': 'DocType',
'istable': 1,
'module': 'Accounts',
'name': '__common__',
'section_style': 'Tray',
'show_in_menu': 0,
'version': 6
},
# These values are common for all DocField
{
'doctype': 'DocField',
'name': '__common__',
'parent': 'Budget Detail',
'parentfield': 'fields',
'parenttype': 'DocType'
},
# DocType, Budget Detail
{
'doctype': 'DocType',
'name': 'Budget Detail'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'account',
'fieldtype': 'Link',
'idx': 1,
'in_filter': 1,
'label': 'Account',
'oldfieldname': 'account',
'oldfieldtype': 'Link',
'options': 'Account',
'permlevel': 0,
'reqd': 1,
'search_index': 1,
'trigger': 'Client'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'budget_allocated',
'fieldtype': 'Currency',
'idx': 2,
'label': 'Budget Allocated',
'oldfieldname': 'budget_allocated',
'oldfieldtype': 'Currency',
'permlevel': 0,
'reqd': 1
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'actual',
'fieldtype': 'Currency',
'idx': 3,
'label': 'Actual',
'oldfieldname': 'actual',
'oldfieldtype': 'Currency',
'permlevel': 1
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'fiscal_year',
'fieldtype': 'Select',
'idx': 4,
'in_filter': 1,
'label': 'Fiscal Year',
'oldfieldname': 'fiscal_year',
'oldfieldtype': 'Select',
'options': 'link:Fiscal Year',
'permlevel': 0,
'reqd': 1,
'search_index': 1
}
]

File diff suppressed because one or more lines are too long

View File

@ -1 +1,78 @@
[{'section_style': 'Tray', 'is_transaction_doc': None, 'creation': '2009-06-05 17:42:48', 'search_fields': None, 'module': 'Accounts', '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': 6, 'menu_index': None, 'docstatus': 0, 'allow_copy': None, 'istable': 1, 'description': None, 'parent': None, 'server_code': None, 'allow_trash': None, 'allow_print': None, 'autoname': 'BDD/.#####', 'client_script_core': None, 'client_string': None, 'use_template': None, 'modified_by': 'Administrator', 'document_type': None, 'name': 'Budget Distribution 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-06-05 17:42:48', 'doctype': 'DocField', 'oldfieldname': 'month', 'owner': 'Administrator', 'reqd': 1, 'in_filter': None, 'print_hide': None, 'modified_by': 'Administrator', 'label': 'Month', 'width': None, 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 2, 'description': None, 'parent': 'Budget Distribution Detail', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL02276', 'idx': 1, 'default': None, 'colour': None, 'modified': '2010-03-19 15:53:59', 'parenttype': 'DocType', 'fieldname': 'month', 'fieldtype': 'Data', 'options': None, 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': None, 'oldfieldtype': 'Currency', 'creation': '2009-06-05 17:42:48', 'doctype': 'DocField', 'oldfieldname': 'percentage_allocation', 'owner': 'Administrator', 'reqd': None, 'in_filter': None, 'print_hide': None, 'modified_by': 'Administrator', 'label': 'Percentage Allocation', 'width': None, 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'Budget Distribution Detail', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL02277', 'idx': 2, 'default': None, 'colour': None, 'modified': '2010-03-19 15:53:59', 'parenttype': 'DocType', 'fieldname': 'percentage_allocation', 'fieldtype': 'Currency', 'options': None, 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': None, 'oldfieldtype': 'Currency', 'creation': '2009-06-09 15:31:58', 'doctype': 'DocField', 'oldfieldname': 'aggregate_percentage', 'owner': 'Administrator', 'reqd': None, 'in_filter': None, 'print_hide': None, 'modified_by': 'Administrator', 'label': 'Aggregate Percentage', 'width': None, 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 2, 'description': None, 'parent': 'Budget Distribution Detail', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL02290', 'idx': 3, 'default': None, 'colour': None, 'modified': '2010-03-19 15:53:59', 'parenttype': 'DocType', 'fieldname': 'aggregate_percentage', 'fieldtype': 'Currency', 'options': None, 'report_hide': None, 'parentfield': 'fields'}]
# DocType, Budget Distribution Detail
[
# These values are common in all dictionaries
{
'creation': '2010-08-08 17:08:54',
'docstatus': 0,
'modified': '2010-09-20 14:06:57',
'modified_by': 'umair@iwebnotes.com',
'owner': 'Administrator'
},
# These values are common for all DocType
{
'autoname': 'BDD/.#####',
'colour': 'White:FFF',
'doctype': 'DocType',
'istable': 1,
'module': 'Accounts',
'name': '__common__',
'section_style': 'Tray',
'server_code_error': ' ',
'show_in_menu': 0,
'version': 6
},
# These values are common for all DocField
{
'doctype': 'DocField',
'name': '__common__',
'parent': 'Budget Distribution Detail',
'parentfield': 'fields',
'parenttype': 'DocType'
},
# DocType, Budget Distribution Detail
{
'doctype': 'DocType',
'name': 'Budget Distribution Detail'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'month',
'fieldtype': 'Data',
'idx': 1,
'label': 'Month',
'oldfieldname': 'month',
'oldfieldtype': 'Data',
'permlevel': 2,
'reqd': 1
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'percentage_allocation',
'fieldtype': 'Currency',
'idx': 2,
'label': 'Percentage Allocation',
'oldfieldname': 'percentage_allocation',
'oldfieldtype': 'Currency',
'permlevel': 0
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'aggregate_percentage',
'fieldtype': 'Currency',
'idx': 3,
'label': 'Aggregate Percentage',
'oldfieldname': 'aggregate_percentage',
'oldfieldtype': 'Currency',
'permlevel': 2
}
]

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -1 +1,63 @@
[{'section_style': 'Tray', 'is_transaction_doc': None, 'creation': '2009-05-28 10:54:48', 'search_fields': None, 'module': 'Accounts', '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': 1, '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': 'Form 16A Ack 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': 'Select', 'creation': '2009-05-28 10:54:48', 'doctype': 'DocField', 'oldfieldname': 'quarter', 'owner': 'Administrator', 'reqd': None, 'in_filter': None, 'print_hide': None, 'modified_by': 'Administrator', 'label': 'Quarter', 'width': None, 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'Form 16A Ack Detail', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL02217', 'idx': 1, 'default': None, 'colour': None, 'modified': '2009-05-28 10:54:48', 'parenttype': 'DocType', 'fieldname': 'quarter', 'fieldtype': 'Select', 'options': '\nApr-Jun\nJul-Sept\nOct-Dec\nJan-Mar', 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': None, 'oldfieldtype': 'Data', 'creation': '2009-05-28 10:54:48', 'doctype': 'DocField', 'oldfieldname': 'ack_no', 'owner': 'Administrator', 'reqd': None, 'in_filter': None, 'print_hide': None, 'modified_by': 'Administrator', 'label': 'Acknowledgement No.', 'width': None, 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'Form 16A Ack Detail', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL02218', 'idx': 2, 'default': None, 'colour': None, 'modified': '2009-05-28 10:54:48', 'parenttype': 'DocType', 'fieldname': 'ack_no', 'fieldtype': 'Data', 'options': None, 'report_hide': None, 'parentfield': 'fields'}]
# DocType, Form 16A Ack Detail
[
# These values are common in all dictionaries
{
'creation': '2010-08-08 17:09:02',
'docstatus': 0,
'modified': '2010-09-20 14:06:57',
'modified_by': 'Administrator',
'owner': 'Administrator'
},
# These values are common for all DocType
{
'colour': 'White:FFF',
'doctype': 'DocType',
'istable': 1,
'module': 'Accounts',
'name': '__common__',
'section_style': 'Tray',
'show_in_menu': 0,
'version': 1
},
# These values are common for all DocField
{
'doctype': 'DocField',
'name': '__common__',
'parent': 'Form 16A Ack Detail',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0
},
# DocType, Form 16A Ack Detail
{
'doctype': 'DocType',
'name': 'Form 16A Ack Detail'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'quarter',
'fieldtype': 'Select',
'idx': 1,
'label': 'Quarter',
'oldfieldname': 'quarter',
'oldfieldtype': 'Select',
'options': '\nApr-Jun\nJul-Sept\nOct-Dec\nJan-Mar'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'ack_no',
'fieldtype': 'Data',
'idx': 2,
'label': 'Acknowledgement No.',
'oldfieldname': 'ack_no',
'oldfieldtype': 'Data'
}
]

File diff suppressed because one or more lines are too long

View File

@ -1 +1,31 @@
[{'section_style': 'Simple', 'is_transaction_doc': None, 'creation': '2010-12-06 11:45:17', 'search_fields': None, 'module': 'Accounts', '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': 1, 'allow_rename': None, 'smallicon': '', 'allow_attach': None, 'show_in_menu': 0, 'max_attachments': None, 'version': 300, 'menu_index': None, 'docstatus': 0, 'allow_copy': None, 'istable': None, 'description': None, 'parent': None, 'server_code': '', 'allow_trash': None, 'allow_print': None, 'autoname': None, 'client_script_core': None, 'client_string': None, 'use_template': None, 'modified_by': 'Administrator', 'document_type': '', 'name': 'GL Control', 'idx': None, 'hide_toolbar': None, 'colour': 'White:FFF', 'client_script': '', 'modified': '2010-11-18 16:35:29', 'server_code_error': ' ', 'name_case': '', 'parenttype': None, 'read_only_onload': None, 'server_code_core': None, 'server_code_compiled': None, 'parent_node': None, 'parentfield': None}]
# DocType, GL Control
[
# These values are common in all dictionaries
{
'creation': '2010-08-08 17:09:03',
'docstatus': 0,
'modified': '2010-12-29 12:57:24',
'modified_by': 'umair@iwebnotes.com',
'owner': 'Administrator'
},
# These values are common for all DocType
{
'colour': 'White:FFF',
'doctype': 'DocType',
'issingle': 1,
'module': 'Accounts',
'name': '__common__',
'section_style': 'Simple',
'server_code_error': ' ',
'show_in_menu': 0,
'version': 288
},
# DocType, GL Control
{
'doctype': 'DocType',
'name': 'GL Control'
}
]

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -1,321 +1,129 @@
# DocType, Ledger Balance Export
[
# These values are common in all dictionaries
{
'creation': '2011-05-24 14:41:08',
'docstatus': 0,
'modified': '2011-05-24 15:22:43',
'modified_by': 'Administrator',
'owner': 'Administrator'
},
# These values are common for all DocType
{
'_last_update': '1306229235',
'_user_tags': None,
'allow_attach': None,
'allow_copy': 1,
'allow_email': 1,
'allow_print': 1,
'allow_rename': None,
'allow_trash': None,
'autoname': None,
'change_log': None,
'client_script': None,
'client_script_core': None,
'client_string': None,
'colour': 'White:FFF',
'creation': '2011-05-25 10:54:06',
'description': None,
'docstatus': 0,
'doctype': 'DocType',
'document_type': 'Other',
'dt_template': None,
'hide_heading': 0,
'hide_toolbar': None,
'idx': None,
'in_create': None,
'in_dialog': None,
'is_transaction_doc': None,
'issingle': 1,
'istable': None,
'max_attachments': None,
'menu_index': None,
'modified': '2011-05-24 15:22:43',
'modified_by': 'Administrator',
'module': 'Accounts',
'name': 'Ledger Balance Export',
'name_case': None,
'owner': 'Administrator',
'parent': None,
'parent_node': None,
'parentfield': None,
'parenttype': None,
'print_outline': None,
'read_only': None,
'read_only_onload': None,
'search_fields': None,
'name': '__common__',
'section_style': 'Simple',
'server_code': None,
'server_code_compiled': None,
'server_code_core': None,
'server_code_error': None,
'show_in_menu': 0,
'smallicon': None,
'subject': None,
'tag_fields': None,
'use_template': None,
'version': 9
},
# These values are common for all DocField
{
'amend': None,
'cancel': None,
'create': 1,
'creation': '2011-05-25 10:54:06',
'docstatus': 0,
'doctype': 'DocPerm',
'execute': None,
'idx': 1,
'match': None,
'modified': '2011-05-25 10:54:06',
'modified_by': 'Administrator',
'name': 'PERM00866',
'owner': 'Administrator',
'parent': 'Ledger Balance Export',
'parentfield': 'permissions',
'parenttype': 'DocType',
'permlevel': 0,
'read': 1,
'role': 'Accounts Manager',
'submit': None,
'write': 1
},
{
'amend': None,
'cancel': None,
'create': 1,
'creation': '2011-05-25 10:54:06',
'docstatus': 0,
'doctype': 'DocPerm',
'execute': None,
'idx': 2,
'match': None,
'modified': '2011-05-25 10:54:06',
'modified_by': 'Administrator',
'name': 'PERM00867',
'owner': 'Administrator',
'parent': 'Ledger Balance Export',
'parentfield': 'permissions',
'parenttype': 'DocType',
'permlevel': 0,
'read': 1,
'role': 'Accounts User',
'submit': None,
'write': 1
},
{
'allow_on_submit': None,
'colour': None,
'creation': '2011-05-25 11:02:00',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': None,
'fieldtype': 'Column Break',
'hidden': None,
'icon': None,
'idx': 1,
'in_filter': None,
'label': 'Select Date Range',
'modified': '2011-05-25 11:02:00',
'modified_by': 'Administrator',
'name': 'FL05003',
'no_column': None,
'no_copy': None,
'oldfieldname': None,
'oldfieldtype': None,
'options': None,
'owner': 'Administrator',
'name': '__common__',
'parent': 'Ledger Balance Export',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': None,
'width': None
'permlevel': 0
},
# These values are common for all DocPerm
{
'create': 1,
'doctype': 'DocPerm',
'name': '__common__',
'parent': 'Ledger Balance Export',
'parentfield': 'permissions',
'parenttype': 'DocType',
'permlevel': 0,
'read': 1,
'write': 1
},
# DocType, Ledger Balance Export
{
'doctype': 'DocType',
'name': 'Ledger Balance Export'
},
# DocPerm
{
'doctype': 'DocPerm',
'idx': 1,
'role': 'Accounts Manager'
},
# DocPerm
{
'doctype': 'DocPerm',
'idx': 2,
'role': 'Accounts User'
},
# DocField
{
'doctype': 'DocField',
'fieldtype': 'Column Break',
'idx': 1,
'label': 'Select Date Range'
},
# DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2011-05-25 10:54:06',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'from_date',
'fieldtype': 'Date',
'hidden': None,
'icon': None,
'idx': 2,
'in_filter': None,
'label': 'From Date',
'modified': '2011-05-25 11:02:00',
'modified_by': 'Administrator',
'name': 'FL04997',
'no_column': None,
'no_copy': None,
'oldfieldname': None,
'oldfieldtype': None,
'options': None,
'owner': 'Administrator',
'parent': 'Ledger Balance Export',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': 1,
'search_index': None,
'trigger': None,
'width': None
'reqd': 1
},
# DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2011-05-25 10:54:06',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'to_date',
'fieldtype': 'Date',
'hidden': None,
'icon': None,
'idx': 3,
'in_filter': None,
'label': 'To Date',
'modified': '2011-05-25 11:02:00',
'modified_by': 'Administrator',
'name': 'FL04998',
'no_column': None,
'no_copy': None,
'oldfieldname': None,
'oldfieldtype': None,
'options': None,
'owner': 'Administrator',
'parent': 'Ledger Balance Export',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': 1,
'search_index': None,
'trigger': None,
'width': None
'reqd': 1
},
# DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2011-05-25 11:02:00',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': None,
'fieldtype': 'Column Break',
'hidden': None,
'icon': None,
'idx': 4,
'in_filter': None,
'label': 'Select ledgers',
'modified': '2011-05-25 11:02:00',
'modified_by': 'Administrator',
'name': 'FL05004',
'no_column': None,
'no_copy': None,
'oldfieldname': None,
'oldfieldtype': None,
'options': None,
'owner': 'Administrator',
'parent': 'Ledger Balance Export',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': None,
'width': None
'label': 'Select ledgers'
},
# DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2011-05-25 10:54:06',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'ledger_details',
'fieldtype': 'Table',
'hidden': None,
'icon': None,
'idx': 5,
'in_filter': None,
'label': 'Ledger Details',
'modified': '2011-05-25 11:02:00',
'modified_by': 'Administrator',
'name': 'FL05000',
'no_column': None,
'no_copy': None,
'oldfieldname': None,
'oldfieldtype': None,
'options': 'Ledger Detail',
'owner': 'Administrator',
'parent': 'Ledger Balance Export',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': None,
'width': None
'options': 'Ledger Detail'
},
# DocField
{
'allow_on_submit': None,
'colour': 'White:FFF',
'creation': '2011-05-25 10:54:06',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': None,
'fieldtype': 'Button',
'hidden': None,
'icon': None,
'idx': 6,
'in_filter': None,
'label': 'Export Report',
'modified': '2011-05-25 11:02:00',
'modified_by': 'Administrator',
'name': 'FL05001',
'no_column': None,
'no_copy': None,
'oldfieldname': None,
'oldfieldtype': None,
'options': None,
'owner': 'Administrator',
'parent': 'Ledger Balance Export',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': 'Client',
'width': None
'trigger': 'Client'
}
]

View File

@ -1,95 +1,52 @@
# DocType, Ledger Detail
[
# These values are common in all dictionaries
{
'_last_update': None,
'_user_tags': None,
'allow_attach': None,
'allow_copy': None,
'allow_email': None,
'allow_print': None,
'allow_rename': None,
'allow_trash': None,
'autoname': None,
'change_log': None,
'client_script': None,
'client_script_core': None,
'client_string': None,
'colour': 'White:FFF',
'creation': '2011-05-25 10:54:06',
'description': None,
'creation': '2011-05-24 14:50:42',
'docstatus': 0,
'doctype': 'DocType',
'document_type': None,
'dt_template': None,
'hide_heading': None,
'hide_toolbar': None,
'idx': None,
'in_create': None,
'in_dialog': None,
'is_transaction_doc': None,
'issingle': None,
'istable': 1,
'max_attachments': None,
'menu_index': None,
'modified': '2011-05-24 15:24:03',
'modified_by': 'Administrator',
'owner': 'Administrator'
},
# These values are common for all DocType
{
'colour': 'White:FFF',
'doctype': 'DocType',
'istable': 1,
'module': 'Accounts',
'name': 'Ledger Detail',
'name_case': None,
'owner': 'Administrator',
'parent': None,
'parent_node': None,
'parentfield': None,
'parenttype': None,
'print_outline': None,
'read_only': None,
'read_only_onload': None,
'search_fields': None,
'name': '__common__',
'section_style': 'Simple',
'server_code': None,
'server_code_compiled': None,
'server_code_core': None,
'server_code_error': None,
'show_in_menu': 0,
'smallicon': None,
'subject': None,
'tag_fields': None,
'use_template': None,
'version': 3
},
# These values are common for all DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2011-05-25 10:54:06',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'account',
'fieldtype': 'Link',
'hidden': None,
'icon': None,
'idx': 1,
'in_filter': None,
'label': 'Account',
'modified': '2011-05-25 10:54:06',
'modified_by': 'Administrator',
'name': 'FL05002',
'no_column': None,
'no_copy': None,
'oldfieldname': None,
'oldfieldtype': None,
'name': '__common__',
'options': 'Account',
'owner': 'Administrator',
'parent': 'Ledger Detail',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': 1,
'search_index': None,
'trigger': None,
'width': '300px'
},
# DocType, Ledger Detail
{
'doctype': 'DocType',
'name': 'Ledger Detail'
},
# DocField
{
'doctype': 'DocField'
}
]

View File

@ -1 +1,73 @@
[{'section_style': 'Simple', 'is_transaction_doc': None, 'creation': '2010-05-04 12:05:50', 'search_fields': None, 'module': 'Accounts', 'doctype': 'DocType', 'change_log': None, 'print_outline': '', 'owner': 'harshada@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': None, 'max_attachments': None, 'version': 4, 'menu_index': None, 'docstatus': 0, 'allow_copy': None, 'istable': None, 'description': None, 'parent': None, 'server_code': None, 'allow_trash': None, 'allow_print': None, 'autoname': 'field:mode_of_payment', 'client_script_core': None, 'client_string': None, 'use_template': None, 'modified_by': 'ashwini@webnotestech.com', 'document_type': 'Master', 'name': 'Mode of Payment', '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}, {'cancel': None, 'amend': None, 'execute': None, 'modified_by': 'ashwini@webnotestech.com', 'name': 'PERM00997', 'parent': 'Mode of Payment', 'read': 1, 'create': 1, 'creation': '2010-05-04 12:05:50', 'modified': '2010-09-20 09:51:10', 'submit': None, 'doctype': 'DocPerm', 'write': 1, 'idx': 1, 'parenttype': 'DocType', 'role': 'Accounts Manager', 'owner': 'harshada@webnotestech.com', 'docstatus': 0, 'permlevel': 0, 'match': None, 'parentfield': 'permissions'}, {'no_copy': None, 'oldfieldtype': 'Data', 'creation': '2010-05-04 12:05:50', 'doctype': 'DocField', 'oldfieldname': 'mode_of_payment', 'owner': 'harshada@webnotestech.com', 'reqd': 1, 'in_filter': None, 'print_hide': None, 'modified_by': 'ashwini@webnotestech.com', 'label': 'Mode of Payment', 'width': None, 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'Mode of Payment', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL04973', 'idx': 1, 'default': None, 'colour': None, 'modified': '2010-09-20 09:51:10', 'parenttype': 'DocType', 'fieldname': 'mode_of_payment', 'fieldtype': 'Data', 'options': None, 'report_hide': None, 'parentfield': 'fields'}]
# DocType, Mode of Payment
[
# These values are common in all dictionaries
{
'creation': '2010-08-08 17:09:10',
'docstatus': 0,
'modified': '2010-09-20 14:06:57',
'modified_by': 'Administrator',
'owner': 'harshada@webnotestech.com'
},
# These values are common for all DocType
{
'autoname': 'field:mode_of_payment',
'colour': 'White:FFF',
'doctype': 'DocType',
'document_type': 'Master',
'module': 'Accounts',
'name': '__common__',
'section_style': 'Simple',
'server_code_error': ' ',
'version': 3
},
# These values are common for all DocField
{
'doctype': 'DocField',
'fieldname': 'mode_of_payment',
'fieldtype': 'Data',
'idx': 1,
'label': 'Mode of Payment',
'name': '__common__',
'oldfieldname': 'mode_of_payment',
'oldfieldtype': 'Data',
'parent': 'Mode of Payment',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'reqd': 1
},
# These values are common for all DocPerm
{
'create': 1,
'doctype': 'DocPerm',
'idx': 1,
'name': '__common__',
'parent': 'Mode of Payment',
'parentfield': 'permissions',
'parenttype': 'DocType',
'permlevel': 0,
'read': 1,
'role': 'Accounts Manager',
'write': 1
},
# DocType, Mode of Payment
{
'doctype': 'DocType',
'name': 'Mode of Payment'
},
# DocPerm
{
'doctype': 'DocPerm'
},
# DocField
{
'doctype': 'DocField'
}
]

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
[{'section_style': 'Tray', 'is_transaction_doc': None, 'creation': '2009-03-12 12:09:22', 'search_fields': None, 'module': 'Accounts', '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': 1, 'menu_index': None, 'docstatus': 0, 'allow_copy': None, 'istable': 1, 'description': None, 'parent': None, 'server_code': '', 'allow_trash': None, 'allow_print': None, 'autoname': 'EXPTD.######', 'client_script_core': None, 'client_string': None, 'use_template': None, 'modified_by': 'Administrator', 'document_type': None, 'name': 'PV Add Tax Detail', 'idx': None, 'hide_toolbar': None, 'colour': 'White:FFF', 'client_script': '', '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': 'Link', 'creation': '2009-03-12 12:09:22', 'doctype': 'DocField', 'oldfieldname': 'add_tax_code', 'owner': 'Administrator', 'reqd': 1, 'in_filter': None, 'print_hide': None, 'modified_by': 'Administrator', 'label': 'Tax Code', 'width': '200px', 'trigger': 'Client', 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'PV Add Tax Detail', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL00442', 'idx': 1, 'default': None, 'colour': None, 'modified': '2009-07-09 14:29:26', 'parenttype': 'DocType', 'fieldname': 'add_tax_code', 'fieldtype': 'Link', 'options': 'Account', 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': None, 'oldfieldtype': 'Link', 'creation': '2009-04-23 11:13:34', 'doctype': 'DocField', 'oldfieldname': 'cost_center', 'owner': 'Administrator', 'reqd': None, 'in_filter': None, 'print_hide': None, 'modified_by': 'Administrator', 'label': 'Cost Center', 'width': None, 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'PV Add Tax Detail', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL01926', 'idx': 2, 'default': None, 'colour': None, 'modified': '2009-07-09 14:29:26', 'parenttype': 'DocType', 'fieldname': 'cost_center', 'fieldtype': 'Link', 'options': 'Cost Center', 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': None, 'oldfieldtype': 'Currency', 'creation': '2009-03-12 12:09:22', 'doctype': 'DocField', 'oldfieldname': 'add_tax_rate', 'owner': 'Administrator', 'reqd': None, 'in_filter': None, 'print_hide': None, 'modified_by': 'Administrator', 'label': 'Rate', 'width': None, 'trigger': 'Client', 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'PV Add Tax Detail', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL00443', 'idx': 3, 'default': None, 'colour': None, 'modified': '2009-07-09 14:29:26', 'parenttype': 'DocType', 'fieldname': 'add_tax_rate', 'fieldtype': 'Currency', 'options': None, 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': None, 'oldfieldtype': 'Currency', 'creation': '2009-03-12 12:09:22', 'doctype': 'DocField', 'oldfieldname': 'add_amount', 'owner': 'Administrator', 'reqd': 1, 'in_filter': None, 'print_hide': None, 'modified_by': 'Administrator', 'label': 'Amount', 'width': None, 'trigger': 'Client', 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'PV Add Tax Detail', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL00444', 'idx': 4, 'default': None, 'colour': None, 'modified': '2009-07-09 14:29:26', 'parenttype': 'DocType', 'fieldname': 'add_amount', 'fieldtype': 'Currency', 'options': None, 'report_hide': None, 'parentfield': 'fields'}]

View File

@ -1 +0,0 @@
[{'section_style': 'Tray', 'is_transaction_doc': None, 'creation': '2009-03-12 12:09:22', 'search_fields': None, 'module': 'Accounts', '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': 4, 'menu_index': None, 'docstatus': 0, 'allow_copy': None, 'istable': 1, 'description': None, 'parent': None, 'server_code': '', 'allow_trash': None, 'allow_print': None, 'autoname': 'TDD.######', 'client_script_core': None, 'client_string': None, 'use_template': None, 'modified_by': 'nabin@webnotestech.com', 'document_type': None, 'name': 'PV Ded Tax Detail', 'idx': None, 'hide_toolbar': None, 'colour': 'White:FFF', 'client_script': '', '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': 'Select', 'creation': '2009-05-25 16:21:06', 'doctype': 'DocField', 'oldfieldname': 'tds_type', 'owner': 'Administrator', 'reqd': None, 'in_filter': None, 'print_hide': 1, 'modified_by': 'nabin@webnotestech.com', 'label': 'TDS Type', 'width': None, 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'PV Ded Tax Detail', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL02152', 'idx': 1, 'default': None, 'colour': None, 'modified': '2009-12-15 12:02:13', 'parenttype': 'DocType', 'fieldname': 'tds_type', 'fieldtype': 'Select', 'options': '\nMain\nSurcharge\nEdu Cess\nSH Edu Cess\nNot Applicable', 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': None, 'oldfieldtype': 'Link', 'creation': '2009-03-12 12:09:22', 'doctype': 'DocField', 'oldfieldname': 'tax_code', 'owner': 'Administrator', 'reqd': 1, 'in_filter': None, 'print_hide': None, 'modified_by': 'nabin@webnotestech.com', 'label': 'Tax Code', 'width': '200px', 'trigger': '', 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'PV Ded Tax Detail', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL00445', 'idx': 2, 'default': None, 'colour': None, 'modified': '2009-12-15 12:02:13', 'parenttype': 'DocType', 'fieldname': 'tax_code', 'fieldtype': 'Link', 'options': 'Account', 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': None, 'oldfieldtype': 'Float', 'creation': '2009-03-12 12:09:22', 'doctype': 'DocField', 'oldfieldname': 'tax_rate', 'owner': 'Administrator', 'reqd': None, 'in_filter': None, 'print_hide': None, 'modified_by': 'nabin@webnotestech.com', 'label': 'Rate', 'width': None, 'trigger': 'Client', 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'PV Ded Tax Detail', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL00446', 'idx': 3, 'default': None, 'colour': None, 'modified': '2009-12-15 12:02:13', 'parenttype': 'DocType', 'fieldname': 'tax_rate', 'fieldtype': 'Float', 'options': None, 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': None, 'oldfieldtype': 'Currency', 'creation': '2009-03-12 12:09:22', 'doctype': 'DocField', 'oldfieldname': 'ded_amount', 'owner': 'Administrator', 'reqd': 1, 'in_filter': None, 'print_hide': None, 'modified_by': 'nabin@webnotestech.com', 'label': 'Amount', 'width': None, 'trigger': 'Client', 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'PV Ded Tax Detail', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL00447', 'idx': 4, 'default': None, 'colour': None, 'modified': '2009-12-15 12:02:13', 'parenttype': 'DocType', 'fieldname': 'ded_amount', 'fieldtype': 'Currency', 'options': None, 'report_hide': None, 'parentfield': 'fields'}]

View File

@ -1,686 +1,316 @@
# DocType, PV Detail
[
# These values are common in all dictionaries
{
'_last_update': None,
'allow_attach': None,
'allow_copy': None,
'allow_email': None,
'allow_print': None,
'allow_rename': None,
'allow_trash': None,
'autoname': 'EVD.######',
'change_log': None,
'client_script': None,
'client_script_core': None,
'client_string': None,
'colour': 'White:FFF',
'creation': '2010-08-08 17:09:17',
'description': None,
'docstatus': 0,
'doctype': 'DocType',
'document_type': None,
'dt_template': None,
'hide_heading': None,
'hide_toolbar': None,
'idx': None,
'in_create': None,
'in_dialog': None,
'is_transaction_doc': None,
'issingle': None,
'istable': 1,
'max_attachments': None,
'menu_index': None,
'modified': '2011-03-30 11:23:38',
'modified_by': 'Administrator',
'owner': 'Administrator'
},
# These values are common for all DocType
{
'autoname': 'EVD.######',
'colour': 'White:FFF',
'doctype': 'DocType',
'istable': 1,
'module': 'Accounts',
'name': 'PV Detail',
'name_case': None,
'owner': 'Administrator',
'parent': None,
'parent_node': None,
'parentfield': None,
'parenttype': None,
'print_outline': None,
'read_only': None,
'read_only_onload': None,
'search_fields': None,
'name': '__common__',
'section_style': 'Tray',
'server_code': None,
'server_code_compiled': None,
'server_code_core': None,
'server_code_error': ' ',
'show_in_menu': 0,
'smallicon': None,
'use_template': None,
'version': 26
},
# These values are common for all DocField
{
'doctype': 'DocField',
'name': '__common__',
'parent': 'PV Detail',
'parentfield': 'fields',
'parenttype': 'DocType'
},
# DocType, PV Detail
{
'doctype': 'DocType',
'name': 'PV Detail'
},
# DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:09:17',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'item_code',
'fieldtype': 'Link',
'hidden': None,
'icon': None,
'idx': 1,
'in_filter': 1,
'label': 'Item',
'modified': '2011-05-09 11:04:22',
'modified_by': 'Administrator',
'name': 'FL02571',
'no_copy': None,
'oldfieldname': 'item_code',
'oldfieldtype': 'Link',
'options': 'Item',
'owner': 'Administrator',
'parent': 'PV Detail',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': 1,
'report_hide': None,
'reqd': 0,
'search_index': 1,
'trigger': 'Client',
'width': None
'trigger': 'Client'
},
# DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:09:17',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'item_name',
'fieldtype': 'Data',
'hidden': None,
'icon': None,
'idx': 2,
'in_filter': 0,
'label': 'Item Name',
'modified': '2011-05-09 11:04:22',
'modified_by': 'Administrator',
'name': 'FL02572',
'no_copy': None,
'oldfieldname': 'item_name',
'oldfieldtype': 'Data',
'options': None,
'owner': 'Administrator',
'parent': 'PV Detail',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': 1,
'search_index': 0,
'trigger': None,
'width': None
'search_index': 0
},
# DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:09:17',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'brand',
'fieldtype': 'Data',
'hidden': None,
'icon': None,
'idx': 3,
'in_filter': None,
'label': 'Brand',
'modified': '2011-05-09 11:04:22',
'modified_by': 'Administrator',
'name': 'FL02573',
'no_copy': None,
'oldfieldname': 'brand',
'oldfieldtype': 'Data',
'options': None,
'owner': 'Administrator',
'parent': 'PV Detail',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': 1,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': None,
'width': None
'print_hide': 1
},
# DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:09:17',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'description',
'fieldtype': 'Text',
'hidden': None,
'icon': None,
'idx': 4,
'in_filter': None,
'label': 'Description',
'modified': '2011-05-09 11:04:22',
'modified_by': 'Administrator',
'name': 'FL02574',
'no_copy': None,
'oldfieldname': 'description',
'oldfieldtype': 'Text',
'options': None,
'owner': 'Administrator',
'parent': 'PV Detail',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': None,
'width': '200px'
'width': '300px'
},
# DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:09:17',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'item_group',
'fieldtype': 'Link',
'hidden': None,
'icon': None,
'idx': 5,
'in_filter': 1,
'label': 'Item Group',
'modified': '2011-05-09 11:04:22',
'modified_by': 'Administrator',
'name': 'FL02575',
'no_copy': None,
'oldfieldname': 'item_group',
'oldfieldtype': 'Link',
'options': 'Item Group',
'owner': 'jai@webnotestech.com',
'parent': 'PV Detail',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 1,
'print_hide': 1,
'report_hide': None,
'reqd': None,
'search_index': 1,
'trigger': None,
'width': None
'search_index': 1
},
# DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:09:17',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'rate',
'fieldtype': 'Currency',
'hidden': None,
'icon': None,
'idx': 6,
'in_filter': None,
'label': 'Rate (Default Curr.)',
'modified': '2011-05-09 11:04:22',
'modified_by': 'Administrator',
'name': 'FL02576',
'no_copy': None,
'oldfieldname': 'rate',
'oldfieldtype': 'Currency',
'options': None,
'owner': 'Administrator',
'parent': 'PV Detail',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': 1,
'report_hide': None,
'reqd': 1,
'search_index': None,
'trigger': 'Client',
'width': None
'trigger': 'Client'
},
# DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:09:17',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'import_rate',
'fieldtype': 'Currency',
'hidden': None,
'icon': None,
'idx': 7,
'in_filter': None,
'label': 'Rate',
'modified': '2011-05-09 11:04:22',
'modified_by': 'Administrator',
'name': 'FL02578',
'no_copy': None,
'oldfieldname': 'import_rate',
'oldfieldtype': 'Currency',
'options': None,
'owner': 'Administrator',
'parent': 'PV Detail',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': 0,
'report_hide': None,
'reqd': 1,
'search_index': None,
'trigger': 'Client',
'width': None
'trigger': 'Client'
},
# DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:09:17',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'qty',
'fieldtype': 'Currency',
'hidden': None,
'icon': None,
'idx': 8,
'in_filter': None,
'label': 'Qty',
'modified': '2011-05-09 11:04:22',
'modified_by': 'Administrator',
'name': 'FL02577',
'no_copy': None,
'oldfieldname': 'qty',
'oldfieldtype': 'Currency',
'options': None,
'owner': 'Administrator',
'parent': 'PV Detail',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': 0,
'report_hide': None,
'reqd': 1,
'search_index': None,
'trigger': 'Client',
'width': None
'trigger': 'Client'
},
# DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:09:17',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'amount',
'fieldtype': 'Currency',
'hidden': None,
'icon': None,
'idx': 9,
'in_filter': None,
'label': 'Amount (Default Curr.)',
'modified': '2011-05-09 11:04:22',
'modified_by': 'Administrator',
'name': 'FL02579',
'no_copy': None,
'oldfieldname': 'amount',
'oldfieldtype': 'Currency',
'options': None,
'owner': 'Administrator',
'parent': 'PV Detail',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 1,
'print_hide': 1,
'report_hide': None,
'reqd': 1,
'search_index': None,
'trigger': None,
'width': None
'reqd': 1
},
# DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:09:17',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'import_amount',
'fieldtype': 'Currency',
'hidden': None,
'icon': None,
'idx': 10,
'in_filter': None,
'label': 'Amount',
'modified': '2011-05-09 11:04:22',
'modified_by': 'Administrator',
'name': 'FL02580',
'no_copy': None,
'oldfieldname': 'import_amount',
'oldfieldtype': 'Currency',
'options': None,
'owner': 'jai@webnotestech.com',
'parent': 'PV Detail',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 1,
'print_hide': None,
'report_hide': None,
'reqd': 1,
'search_index': None,
'trigger': None,
'width': None
'reqd': 1
},
# DocField
{
'allow_on_submit': None,
'colour': 'White:FFF',
'creation': '2010-08-08 17:09:17',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'expense_head',
'fieldtype': 'Link',
'hidden': None,
'icon': None,
'idx': 11,
'in_filter': None,
'label': 'Expense Head',
'modified': '2011-05-09 11:04:22',
'modified_by': 'Administrator',
'name': 'FL02581',
'no_copy': None,
'oldfieldname': 'expense_head',
'oldfieldtype': 'Link',
'options': 'Account',
'owner': 'Administrator',
'parent': 'PV Detail',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': 1,
'report_hide': None,
'reqd': 1,
'search_index': None,
'trigger': 'Client',
'width': '120px'
},
# DocField
{
'allow_on_submit': None,
'colour': 'White:FFF',
'creation': '2010-08-08 17:09:17',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'cost_center',
'fieldtype': 'Link',
'hidden': None,
'icon': None,
'idx': 12,
'in_filter': None,
'label': 'Cost Center',
'modified': '2011-05-09 11:04:22',
'modified_by': 'Administrator',
'name': 'FL02582',
'no_copy': None,
'oldfieldname': 'cost_center',
'oldfieldtype': 'Link',
'options': 'Cost Center',
'owner': 'Administrator',
'parent': 'PV Detail',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': 1,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': 'Client',
'width': '120px'
},
# DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:09:17',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'purchase_order',
'fieldtype': 'Link',
'hidden': None,
'icon': None,
'idx': 13,
'in_filter': 1,
'label': 'Pur Order',
'modified': '2011-05-09 11:04:22',
'modified_by': 'Administrator',
'name': 'FL02583',
'no_copy': None,
'oldfieldname': 'purchase_order',
'oldfieldtype': 'Link',
'options': 'Purchase Order',
'owner': 'Administrator',
'parent': 'PV Detail',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 1,
'print_hide': 1,
'report_hide': None,
'reqd': None,
'search_index': 1,
'trigger': None,
'width': None
'search_index': 1
},
# DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:09:17',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'po_detail',
'fieldtype': 'Data',
'hidden': 1,
'icon': None,
'idx': 14,
'in_filter': 1,
'label': 'PO Detail',
'modified': '2011-05-09 11:04:22',
'modified_by': 'Administrator',
'name': 'FL02584',
'no_copy': None,
'oldfieldname': 'po_detail',
'oldfieldtype': 'Data',
'options': None,
'owner': 'Administrator',
'parent': 'PV Detail',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 1,
'print_hide': 1,
'report_hide': None,
'reqd': None,
'search_index': 1,
'trigger': None,
'width': None
'search_index': 1
},
# DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:09:17',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'purchase_receipt',
'fieldtype': 'Link',
'hidden': None,
'icon': None,
'idx': 15,
'in_filter': 1,
'label': 'Pur Receipt',
'modified': '2011-05-09 11:04:22',
'modified_by': 'Administrator',
'name': 'FL02585',
'no_copy': None,
'oldfieldname': 'purchase_receipt',
'oldfieldtype': 'Link',
'options': 'Purchase Receipt',
'owner': 'Administrator',
'parent': 'PV Detail',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 1,
'print_hide': 1,
'report_hide': None,
'reqd': None,
'search_index': 1,
'trigger': None,
'width': None
'search_index': 1
},
# DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:09:17',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'pr_detail',
'fieldtype': 'Data',
'hidden': 1,
'icon': None,
'idx': 16,
'in_filter': 1,
'label': 'PR Detail',
'modified': '2011-05-09 11:04:22',
'modified_by': 'Administrator',
'name': 'FL02586',
'no_copy': None,
'oldfieldname': 'pr_detail',
'oldfieldtype': 'Data',
'options': None,
'owner': 'Administrator',
'parent': 'PV Detail',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 1,
'print_hide': 1,
'report_hide': None,
'reqd': None,
'search_index': 1,
'trigger': None,
'width': None
'search_index': 1
},
# DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-08-08 17:09:17',
'default': None,
'depends_on': None,
'description': 'Tax detail table fetched from item master as a string and stored in this field.\nUsed for Purchase Other Charges',
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'item_tax_rate',
'fieldtype': 'Small Text',
'hidden': None,
'icon': None,
'idx': 17,
'in_filter': None,
'label': 'Item Tax Rate',
'modified': '2011-05-09 11:04:22',
'modified_by': 'Administrator',
'name': 'FL02587',
'no_copy': None,
'oldfieldname': 'item_tax_rate',
'oldfieldtype': 'Small Text',
'options': None,
'owner': 'wasim@webnotestech.com',
'parent': 'PV Detail',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 1,
'print_hide': 1,
'report_hide': 1,
'reqd': None,
'search_index': None,
'trigger': None,
'width': None
'report_hide': 1
},
# DocField
{
'allow_on_submit': 1,
'colour': None,
'creation': '2011-05-09 11:04:22',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'page_break',
'fieldtype': 'Check',
'hidden': None,
'icon': None,
'idx': 18,
'in_filter': None,
'label': 'Page Break',
'modified': '2011-05-09 11:04:22',
'modified_by': 'Administrator',
'name': '000000371',
'no_copy': 1,
'oldfieldname': None,
'oldfieldtype': None,
'options': None,
'owner': 'Administrator',
'parent': 'PV Detail',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': 1,
'report_hide': 1,
'reqd': None,
'search_index': None,
'trigger': None,
'width': None
'report_hide': 1
}
]

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

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-06-15 16:18:15', 'search_fields': None, 'module': 'Accounts', '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': 'Supplier TDS Category 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': 'Select', 'creation': '2009-06-15 16:18:15', 'doctype': 'DocField', 'oldfieldname': 'tds_category', 'owner': 'Administrator', 'reqd': None, 'in_filter': None, 'print_hide': None, 'modified_by': 'Administrator', 'label': 'TDS Category', 'width': '300px', 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'Supplier TDS Category Detail', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL02337', 'idx': 1, 'default': None, 'colour': None, 'modified': '2009-06-15 17:01:44', 'parenttype': 'DocType', 'fieldname': 'tds_category', 'fieldtype': 'Select', 'options': 'link:TDS Category', 'report_hide': None, 'parentfield': 'fields'}]

View File

@ -1,266 +1,141 @@
# DocType, TDS Category
[
# These values are common in all dictionaries
{
'_last_update': '1300960461',
'allow_attach': None,
'allow_copy': None,
'allow_email': None,
'allow_print': None,
'allow_rename': None,
'allow_trash': None,
'autoname': 'field:category_name',
'change_log': None,
'client_script': None,
'client_script_core': None,
'client_string': None,
'colour': 'White:FFF',
'creation': '2010-11-30 17:30:43',
'description': None,
'creation': '2010-08-08 17:09:27',
'docstatus': 0,
'doctype': 'DocType',
'document_type': 'Master',
'dt_template': None,
'hide_heading': None,
'hide_toolbar': None,
'idx': None,
'in_create': 0,
'in_dialog': None,
'is_transaction_doc': None,
'issingle': None,
'istable': None,
'last_update': '1294160993',
'max_attachments': None,
'menu_index': None,
'modified': '2010-09-20 14:06:57',
'modified_by': 'Administrator',
'owner': 'Administrator'
},
# These values are common for all DocType
{
'_last_update': '1302586171',
'autoname': 'field:category_name',
'colour': 'White:FFF',
'doctype': 'DocType',
'document_type': 'Master',
'in_create': 0,
'module': 'Accounts',
'name': 'TDS Category',
'name_case': None,
'owner': 'Administrator',
'parent': None,
'parent_node': None,
'parentfield': None,
'parenttype': None,
'print_outline': None,
'read_only': None,
'read_only_onload': None,
'search_fields': None,
'name': '__common__',
'section_style': 'Simple',
'server_code': None,
'server_code_compiled': None,
'server_code_core': None,
'server_code_error': ' ',
'show_in_menu': 0,
'smallicon': None,
'use_template': None,
'version': 9
'version': 8
},
# These values are common for all DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-11-30 17:30:43',
'default': 'Accounts',
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'module',
'fieldtype': 'Link',
'hidden': 0,
'icon': None,
'idx': 1,
'in_filter': 0,
'label': 'Module',
'modified': '2011-03-24 15:58:08',
'modified_by': 'Administrator',
'name': 'FL00996',
'no_copy': None,
'oldfieldname': 'module',
'oldfieldtype': 'Link',
'options': 'Module Def',
'owner': 'Administrator',
'name': '__common__',
'parent': 'TDS Category',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': 0,
'report_hide': 0,
'reqd': None,
'search_index': 0,
'trigger': None,
'width': None
'permlevel': 0
},
# These values are common for all DocPerm
{
'allow_on_submit': None,
'colour': None,
'creation': '2011-03-24 15:58:08',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': None,
'fieldtype': 'HTML',
'hidden': None,
'icon': None,
'idx': 2,
'in_filter': None,
'label': 'Note HTML',
'modified': '2011-03-24 15:58:08',
'modified_by': 'Administrator',
'name': '000006316',
'no_copy': None,
'oldfieldname': None,
'oldfieldtype': 'HTML',
'options': '<b>Note:</b> You must first create the Accounts from the Chart of Accounts and then link it to this Category.',
'owner': 'Administrator',
'doctype': 'DocPerm',
'name': '__common__',
'parent': 'TDS Category',
'parentfield': 'fields',
'parentfield': 'permissions',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': None,
'width': None
'read': 1
},
# DocType, TDS Category
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-11-30 17:30:43',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'category_name',
'fieldtype': 'Data',
'hidden': None,
'icon': None,
'idx': 3,
'in_filter': None,
'label': 'Category Name',
'modified': '2011-03-24 15:58:08',
'modified_by': 'Administrator',
'name': 'FL00998',
'no_copy': None,
'oldfieldname': 'category_name',
'oldfieldtype': 'Data',
'options': None,
'owner': 'Administrator',
'parent': 'TDS Category',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': 1,
'search_index': None,
'trigger': None,
'width': None
},
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-11-30 17:30:43',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'tds_sh_edu_cess_account',
'fieldtype': 'Table',
'hidden': None,
'icon': None,
'idx': 4,
'in_filter': None,
'label': 'TDS Account Detail',
'modified': '2011-03-24 15:58:08',
'modified_by': 'Administrator',
'name': 'FL00999',
'no_copy': None,
'oldfieldname': 'tds_sh_edu_cess_account',
'oldfieldtype': 'Table',
'options': 'TDS Category Account',
'owner': 'Administrator',
'parent': 'TDS Category',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': 0,
'search_index': None,
'trigger': None,
'width': None
'doctype': 'DocType',
'name': 'TDS Category'
},
# DocPerm
{
'amend': 0,
'cancel': 0,
'create': 0,
'creation': '2010-11-30 17:30:43',
'docstatus': 0,
'doctype': 'DocPerm',
'execute': None,
'idx': 1,
'match': None,
'modified': '2010-11-30 17:30:43',
'modified_by': 'Administrator',
'name': 'PERM00112',
'owner': 'Administrator',
'parent': 'TDS Category',
'parentfield': 'permissions',
'parenttype': 'DocType',
'permlevel': 0,
'read': 1,
'role': 'Accounts User',
'submit': 0,
'write': 0
},
# DocPerm
{
'amend': 0,
'cancel': 0,
'create': 1,
'creation': '2010-11-30 17:30:43',
'docstatus': 0,
'doctype': 'DocPerm',
'execute': None,
'idx': 2,
'match': None,
'modified': '2010-11-30 17:30:43',
'modified_by': 'Administrator',
'name': 'PERM00113',
'owner': 'Administrator',
'parent': 'TDS Category',
'parentfield': 'permissions',
'parenttype': 'DocType',
'permlevel': 0,
'read': 1,
'role': 'Accounts Manager',
'submit': 0,
'write': 1
},
# DocPerm
{
'amend': None,
'cancel': None,
'create': 1,
'creation': '2010-11-30 17:30:43',
'docstatus': 0,
'doctype': 'DocPerm',
'execute': None,
'idx': 3,
'match': None,
'modified': '2010-11-30 17:30:43',
'modified_by': 'Administrator',
'name': 'PERM00114',
'owner': 'Administrator',
'parent': 'TDS Category',
'parentfield': 'permissions',
'parenttype': 'DocType',
'permlevel': 0,
'read': 1,
'role': 'Administrator',
'submit': None,
'role': 'System Manager',
'write': 1
},
# DocField
{
'default': 'Accounts',
'doctype': 'DocField',
'fieldname': 'module',
'fieldtype': 'Link',
'hidden': 0,
'idx': 1,
'in_filter': 0,
'label': 'Module',
'oldfieldname': 'module',
'oldfieldtype': 'Link',
'options': 'Module Def',
'print_hide': 0,
'report_hide': 0,
'search_index': 0
},
# DocField
{
'doctype': 'DocField',
'fieldtype': 'HTML',
'idx': 2,
'label': 'Note HTML',
'oldfieldtype': 'HTML',
'options': '<b>Note:</b> You must first create the Accounts from the Chart of Accounts and then link it to this Category.'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'category_name',
'fieldtype': 'Data',
'idx': 3,
'label': 'Category Name',
'oldfieldname': 'category_name',
'oldfieldtype': 'Data',
'reqd': 1
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'tds_sh_edu_cess_account',
'fieldtype': 'Table',
'idx': 4,
'label': 'TDS Account Detail',
'oldfieldname': 'tds_sh_edu_cess_account',
'oldfieldtype': 'Table',
'options': 'TDS Category Account',
'reqd': 0
}
]

View File

@ -1 +1,66 @@
[{'section_style': 'Tray', 'is_transaction_doc': None, 'creation': '2009-05-06 14:05:43', 'search_fields': None, 'module': 'Accounts', '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': 1, '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': 'wasim@webnotestech.com', 'document_type': None, 'name': 'TDS Category Account', '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': 'Select', 'creation': '2009-05-06 14:05:43', 'doctype': 'DocField', 'oldfieldname': 'company', 'owner': 'Administrator', 'reqd': 1, 'in_filter': 1, 'print_hide': None, 'modified_by': 'wasim@webnotestech.com', 'label': 'Company', 'width': None, 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'TDS Category Account', 'search_index': 1, 'allow_on_submit': None, 'icon': None, 'name': 'FL01996', 'idx': 2, 'default': None, 'colour': None, 'modified': '2010-03-10 11:17:57', 'parenttype': 'DocType', 'fieldname': 'company', 'fieldtype': 'Link', 'options': 'Company', 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': None, 'oldfieldtype': 'Link', 'creation': '2009-05-06 14:05:43', 'doctype': 'DocField', 'oldfieldname': 'account_head', 'owner': 'Administrator', 'reqd': 1, 'in_filter': None, 'print_hide': None, 'modified_by': 'wasim@webnotestech.com', 'label': 'Account Head', 'width': None, 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'TDS Category Account', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL01997', 'idx': 3, 'default': None, 'colour': None, 'modified': '2010-03-10 11:17:57', 'parenttype': 'DocType', 'fieldname': 'account_head', 'fieldtype': 'Link', 'options': 'Account', 'report_hide': None, 'parentfield': 'fields'}]
# DocType, TDS Category Account
[
# These values are common in all dictionaries
{
'creation': '2010-08-08 17:09:27',
'docstatus': 0,
'modified': '2010-09-20 14:06:57',
'modified_by': 'Administrator',
'owner': 'Administrator'
},
# These values are common for all DocType
{
'colour': 'White:FFF',
'doctype': 'DocType',
'istable': 1,
'module': 'Accounts',
'name': '__common__',
'section_style': 'Tray',
'server_code_error': ' ',
'show_in_menu': 0,
'version': 1
},
# These values are common for all DocField
{
'doctype': 'DocField',
'fieldtype': 'Link',
'name': '__common__',
'oldfieldtype': 'Link',
'parent': 'TDS Category Account',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'reqd': 1
},
# DocType, TDS Category Account
{
'doctype': 'DocType',
'name': 'TDS Category Account'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'company',
'idx': 2,
'in_filter': 1,
'label': 'Company',
'oldfieldname': 'company',
'options': 'Company',
'search_index': 1
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'account_head',
'idx': 3,
'label': 'Account Head',
'oldfieldname': 'account_head',
'options': 'Account'
}
]

View File

@ -1 +1,31 @@
[{'section_style': 'Simple', 'is_transaction_doc': None, 'creation': '2010-03-05 12:23:01', 'search_fields': None, 'module': 'Accounts', 'doctype': 'DocType', 'change_log': None, 'print_outline': '', 'owner': 'wasim@webnotestech.com', 'in_dialog': None, 'in_create': None, 'read_only': None, 'allow_email': None, 'dt_template': None, 'hide_heading': None, 'issingle': 1, 'allow_rename': None, 'smallicon': None, 'allow_attach': None, 'show_in_menu': 0, 'max_attachments': None, 'version': 38, 'menu_index': None, 'docstatus': 0, 'allow_copy': None, 'istable': None, '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': '', 'name': 'TDS Control', 'idx': None, 'hide_toolbar': None, 'colour': 'White:FFF', 'client_script': None, 'modified': '2010-12-07 12:30:02', 'server_code_error': ' ', 'name_case': '', 'parenttype': None, 'read_only_onload': None, 'server_code_core': None, 'server_code_compiled': None, 'parent_node': None, 'parentfield': None}]
# DocType, TDS Control
[
# These values are common in all dictionaries
{
'creation': '2010-08-08 17:09:27',
'docstatus': 0,
'modified': '2010-12-16 16:31:49',
'modified_by': 'Administrator',
'owner': 'wasim@webnotestech.com'
},
# These values are common for all DocType
{
'colour': 'White:FFF',
'doctype': 'DocType',
'issingle': 1,
'module': 'Accounts',
'name': '__common__',
'section_style': 'Simple',
'server_code_error': ' ',
'show_in_menu': 0,
'version': 36
},
# DocType, TDS Control
{
'doctype': 'DocType',
'name': 'TDS Control'
}
]

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -1,266 +1,127 @@
# DocType, TDS Rate Chart
[
# These values are common in all dictionaries
{
'_last_update': '1300960463',
'allow_attach': None,
'allow_copy': None,
'allow_email': None,
'allow_print': None,
'allow_rename': None,
'allow_trash': None,
'autoname': 'Prompt',
'change_log': None,
'client_script': None,
'client_script_core': None,
'client_string': None,
'colour': 'White:FFF',
'creation': '2010-11-30 17:30:44',
'description': None,
'creation': '2010-08-08 17:09:27',
'docstatus': 0,
'doctype': 'DocType',
'document_type': None,
'dt_template': None,
'hide_heading': None,
'hide_toolbar': None,
'idx': None,
'in_create': 1,
'in_dialog': None,
'is_transaction_doc': None,
'issingle': None,
'istable': None,
'last_update': '1294160988',
'max_attachments': None,
'menu_index': None,
'modified': '2010-09-20 14:06:57',
'modified_by': 'Administrator',
'owner': 'Administrator'
},
# These values are common for all DocType
{
'autoname': 'Prompt',
'colour': 'White:FFF',
'doctype': 'DocType',
'in_create': 1,
'module': 'Accounts',
'name': 'TDS Rate Chart',
'name_case': None,
'owner': 'Administrator',
'parent': None,
'parent_node': None,
'parentfield': None,
'parenttype': None,
'print_outline': None,
'name': '__common__',
'read_only': 0,
'read_only_onload': None,
'search_fields': None,
'section_style': 'Simple',
'server_code': None,
'server_code_compiled': None,
'server_code_core': None,
'server_code_error': ' ',
'show_in_menu': 0,
'smallicon': None,
'use_template': None,
'version': 12
'version': 11
},
# These values are common for all DocField
{
'allow_on_submit': None,
'colour': None,
'creation': '2009-05-12 11:19:12',
'default': 'Accounts',
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'module',
'fieldtype': 'Link',
'hidden': 1,
'icon': None,
'idx': 1,
'in_filter': None,
'label': 'Module',
'modified': '2011-03-24 15:58:09',
'modified_by': 'Administrator',
'name': 'FL00067',
'no_copy': None,
'oldfieldname': 'module',
'oldfieldtype': 'Link',
'options': 'Module Def',
'owner': 'saumil@webnotestech.com',
'name': '__common__',
'parent': 'TDS Rate Chart',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': 1,
'report_hide': 1,
'reqd': None,
'search_index': None,
'trigger': None,
'width': None
'permlevel': 0
},
# These values are common for all DocPerm
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-11-30 17:30:45',
'default': 'Accounts',
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'module',
'fieldtype': 'Link',
'hidden': 1,
'icon': None,
'idx': 1,
'in_filter': None,
'label': 'Module',
'modified': '2010-11-30 17:30:45',
'modified_by': 'Administrator',
'name': 'FL01040',
'no_copy': None,
'oldfieldname': 'module',
'oldfieldtype': 'Link',
'options': 'Module Def',
'owner': 'saumil@webnotestech.com',
'parent': 'TDS Rate Chart',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': 1,
'report_hide': 1,
'reqd': None,
'search_index': None,
'trigger': None,
'width': None
},
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-11-30 17:30:45',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'applicable_from',
'fieldtype': 'Date',
'hidden': None,
'icon': None,
'idx': 2,
'in_filter': None,
'label': 'Applicable From',
'modified': '2011-03-24 15:58:09',
'modified_by': 'Administrator',
'name': 'FL01041',
'no_copy': None,
'oldfieldname': 'applicable_from',
'oldfieldtype': 'Date',
'options': None,
'owner': 'Administrator',
'parent': 'TDS Rate Chart',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': 1,
'search_index': None,
'trigger': None,
'width': None
},
{
'allow_on_submit': None,
'colour': None,
'creation': '2010-11-30 17:30:45',
'default': None,
'depends_on': None,
'description': None,
'docstatus': 0,
'doctype': 'DocField',
'fieldname': 'rate_chart_detail',
'fieldtype': 'Table',
'hidden': None,
'icon': None,
'idx': 3,
'in_filter': None,
'label': 'Rate Chart Detail',
'modified': '2011-03-24 15:58:09',
'modified_by': 'Administrator',
'name': 'FL01042',
'no_copy': None,
'oldfieldname': 'rate_chart_detail',
'oldfieldtype': 'Table',
'options': 'TDS Rate Detail',
'owner': 'Administrator',
'parent': 'TDS Rate Chart',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0,
'print_hide': None,
'report_hide': None,
'reqd': None,
'search_index': None,
'trigger': None,
'width': None
},
{
'amend': 0,
'cancel': 0,
'create': 0,
'creation': '2010-11-30 17:30:45',
'docstatus': 0,
'doctype': 'DocPerm',
'execute': None,
'idx': 1,
'match': None,
'modified': '2010-11-30 17:30:45',
'modified_by': 'Administrator',
'name': 'PERM00124',
'owner': 'Administrator',
'name': '__common__',
'parent': 'TDS Rate Chart',
'parentfield': 'permissions',
'parenttype': 'DocType',
'permlevel': 0,
'read': 1,
'read': 1
},
# DocType, TDS Rate Chart
{
'doctype': 'DocType',
'name': 'TDS Rate Chart'
},
# DocPerm
{
'amend': 0,
'cancel': 0,
'create': 0,
'doctype': 'DocPerm',
'idx': 1,
'role': 'Accounts User',
'submit': 0,
'write': 0
},
# DocPerm
{
'amend': 0,
'cancel': 0,
'create': 0,
'creation': '2010-11-30 17:30:45',
'docstatus': 0,
'doctype': 'DocPerm',
'execute': None,
'idx': 2,
'match': None,
'modified': '2010-11-30 17:30:45',
'modified_by': 'Administrator',
'name': 'PERM00125',
'owner': 'Administrator',
'parent': 'TDS Rate Chart',
'parentfield': 'permissions',
'parenttype': 'DocType',
'permlevel': 0,
'read': 1,
'role': 'Accounts Manager',
'submit': 0,
'write': 0
},
# DocPerm
{
'amend': None,
'cancel': None,
'create': 1,
'creation': '2010-11-30 17:30:45',
'docstatus': 0,
'doctype': 'DocPerm',
'execute': None,
'idx': 3,
'match': None,
'modified': '2010-11-30 17:30:45',
'modified_by': 'Administrator',
'name': 'PERM00126',
'owner': 'Administrator',
'parent': 'TDS Rate Chart',
'parentfield': 'permissions',
'parenttype': 'DocType',
'permlevel': 0,
'read': 1,
'role': 'Administrator',
'submit': None,
'role': 'System Manager',
'write': 1
},
# DocField
{
'default': 'Accounts',
'doctype': 'DocField',
'fieldname': 'module',
'fieldtype': 'Link',
'hidden': 1,
'idx': 1,
'label': 'Module',
'oldfieldname': 'module',
'oldfieldtype': 'Link',
'options': 'Module Def',
'print_hide': 1,
'report_hide': 1
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'applicable_from',
'fieldtype': 'Date',
'idx': 2,
'label': 'Applicable From',
'oldfieldname': 'applicable_from',
'oldfieldtype': 'Date',
'reqd': 1
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'rate_chart_detail',
'fieldtype': 'Table',
'idx': 3,
'label': 'Rate Chart Detail',
'oldfieldname': 'rate_chart_detail',
'oldfieldtype': 'Table',
'options': 'TDS Rate Detail'
}
]

View File

@ -1 +1,88 @@
[{'section_style': 'Tray', 'is_transaction_doc': None, 'creation': '2009-05-06 12:24:07', 'search_fields': None, 'module': 'Accounts', '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': 7, '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': 'nabin@webnotestech.com', 'document_type': None, 'name': 'TDS Rate 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-05-06 12:24:07', 'doctype': 'DocField', 'oldfieldname': 'category', 'owner': 'Administrator', 'reqd': None, 'in_filter': None, 'print_hide': None, 'modified_by': 'nabin@webnotestech.com', 'label': 'Category', 'width': '200px', 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'TDS Rate Detail', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL01976', 'idx': 1, 'default': None, 'colour': None, 'modified': '2010-06-30 15:37:49', 'parenttype': 'DocType', 'fieldname': 'category', 'fieldtype': 'Link', 'options': 'TDS Category', 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': None, 'oldfieldtype': 'Currency', 'creation': '2009-05-06 12:24:07', 'doctype': 'DocField', 'oldfieldname': 'slab_from', 'owner': 'Administrator', 'reqd': None, 'in_filter': None, 'print_hide': None, 'modified_by': 'nabin@webnotestech.com', 'label': 'Slab From', 'width': None, 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'TDS Rate Detail', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL01977', 'idx': 2, 'default': None, 'colour': None, 'modified': '2010-06-30 15:37:49', 'parenttype': 'DocType', 'fieldname': 'slab_from', 'fieldtype': 'Currency', 'options': None, 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': None, 'oldfieldtype': 'Currency', 'creation': '2009-05-06 12:24:07', 'doctype': 'DocField', 'oldfieldname': 'rate', 'owner': 'Administrator', 'reqd': None, 'in_filter': None, 'print_hide': None, 'modified_by': 'nabin@webnotestech.com', 'label': 'Rate', 'width': '50px', 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'TDS Rate Detail', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL01978', 'idx': 3, 'default': None, 'colour': None, 'modified': '2010-06-30 15:37:49', 'parenttype': 'DocType', 'fieldname': 'rate', 'fieldtype': 'Currency', 'options': None, 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': None, 'oldfieldtype': 'Currency', 'creation': '2010-06-30 15:37:49', 'doctype': 'DocField', 'oldfieldname': 'rate_without_pan', 'owner': 'nabin@webnotestech.com', 'reqd': None, 'in_filter': None, 'print_hide': None, 'modified_by': 'nabin@webnotestech.com', 'label': 'Rate without PAN', 'width': None, 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'TDS Rate Detail', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL05508', 'idx': 4, 'default': None, 'colour': None, 'modified': '2010-06-30 15:37:49', 'parenttype': 'DocType', 'fieldname': 'rate_without_pan', 'fieldtype': 'Currency', 'options': None, 'report_hide': None, 'parentfield': 'fields'}]
# DocType, TDS Rate Detail
[
# These values are common in all dictionaries
{
'creation': '2010-08-08 17:09:27',
'docstatus': 0,
'modified': '2010-09-20 14:06:57',
'modified_by': 'Administrator',
'owner': 'Administrator'
},
# These values are common for all DocType
{
'colour': 'White:FFF',
'doctype': 'DocType',
'istable': 1,
'module': 'Accounts',
'name': '__common__',
'section_style': 'Tray',
'server_code_error': ' ',
'show_in_menu': 0,
'version': 7
},
# These values are common for all DocField
{
'doctype': 'DocField',
'name': '__common__',
'parent': 'TDS Rate Detail',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0
},
# DocType, TDS Rate Detail
{
'doctype': 'DocType',
'name': 'TDS Rate Detail'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'category',
'fieldtype': 'Link',
'idx': 1,
'label': 'Category',
'oldfieldname': 'category',
'oldfieldtype': 'Link',
'options': 'TDS Category',
'width': '200px'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'slab_from',
'fieldtype': 'Currency',
'idx': 2,
'label': 'Slab From',
'oldfieldname': 'slab_from',
'oldfieldtype': 'Currency'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'rate',
'fieldtype': 'Currency',
'idx': 3,
'label': 'Rate',
'oldfieldname': 'rate',
'oldfieldtype': 'Currency',
'width': '50px'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'rate_without_pan',
'fieldtype': 'Currency',
'idx': 4,
'label': 'Rate without PAN',
'oldfieldname': 'rate_without_pan',
'oldfieldtype': 'Currency'
}
]

File diff suppressed because one or more lines are too long

View File

@ -1 +1,44 @@
[{'creation': '2009-03-12 12:09:24', 'module': 'Accounts', 'doctype': 'Page', 'owner': 'Administrator', 'style': None, 'modified_by': 'nabin@webnotestech.com', 'script': None, 'show_in_menu': 0, 'content': None, 'page_name': 'Accounts Browser', 'menu_index': None, 'docstatus': 0, 'parent': None, 'standard': 'Yes', 'icon': '', 'name': 'Accounts Browser', 'idx': None, 'static_content': None, 'modified': '2010-11-18 17:00:21', 'parenttype': None, 'parent_node': None, 'parentfield': None}, {'modified_by': 'nabin@webnotestech.com', 'name': 'PR000004', 'parent': 'Accounts Browser', 'creation': '2009-03-12 12:09:24', 'modified': '2010-11-18 17:00:21', 'doctype': 'Page Role', 'idx': 1, 'parenttype': 'Page', 'role': 'Accounts User', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': 'roles'}]
# Page, Accounts Browser
[
# These values are common in all dictionaries
{
'creation': '2010-12-14 10:23:28',
'docstatus': 0,
'modified': '2010-12-29 12:57:23',
'modified_by': 'Administrator',
'owner': 'Administrator'
},
# These values are common for all Page
{
'doctype': 'Page',
'module': 'Accounts',
'name': '__common__',
'page_name': 'Accounts Browser',
'show_in_menu': 0,
'standard': 'Yes'
},
# These values are common for all Page Role
{
'doctype': 'Page Role',
'idx': 1,
'name': '__common__',
'parent': 'Accounts Browser',
'parentfield': 'roles',
'parenttype': 'Page',
'role': 'Accounts User'
},
# Page, Accounts Browser
{
'doctype': 'Page',
'name': 'Accounts Browser'
},
# Page Role
{
'doctype': 'Page Role'
}
]

View File

@ -1 +1,58 @@
[{'creation': '2009-03-12 12:09:24', 'module': 'Accounts', 'doctype': 'Page', 'owner': 'Administrator', 'style': None, 'modified_by': 'Administrator', 'script': None, 'show_in_menu': 0, 'content': None, 'page_name': 'Financial Statements', 'menu_index': None, 'docstatus': 0, 'parent': None, 'standard': 'Yes', 'icon': '', 'name': 'Financial Statements', 'idx': None, 'static_content': None, 'modified': '2010-09-25 00:00:00', 'parenttype': None, 'parent_node': None, 'parentfield': None}, {'modified_by': 'Administrator', 'name': 'PR000005', 'parent': 'Financial Statements', 'creation': '2009-03-12 12:09:24', 'modified': '2010-04-08 12:28:01', 'doctype': 'Page Role', 'idx': 1, 'parenttype': 'Page', 'role': 'Accounts User', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': 'roles'}, {'modified_by': 'Administrator', 'name': 'PR000016', 'parent': 'Financial Statements', 'creation': '2009-06-04 15:16:31', 'modified': '2010-03-29 13:40:15', 'doctype': 'Page Role', 'idx': 2, 'parenttype': 'Page', 'role': 'Administrator', 'owner': 'Administrator', 'docstatus': 0, 'parentfield': 'roles'}, {'modified_by': 'Administrator', 'name': 'PR000051', 'parent': 'Financial Statements', 'creation': '2009-09-23 16:34:18', 'modified': '2010-03-29 13:40:15', 'doctype': 'Page Role', 'idx': 3, 'parenttype': 'Page', 'role': 'Accounts Manager', 'owner': 'nabin@webnotestech.com', 'docstatus': 0, 'parentfield': 'roles'}]
# Page, Financial Statements
[
# These values are common in all dictionaries
{
'creation': '2010-10-12 15:19:32',
'docstatus': 0,
'modified': '2011-01-03 17:32:30',
'modified_by': 'Administrator',
'owner': 'Administrator'
},
# These values are common for all Page
{
'doctype': 'Page',
'module': 'Accounts',
'name': '__common__',
'page_name': 'Financial Statements',
'show_in_menu': 0,
'standard': 'Yes'
},
# These values are common for all Page Role
{
'doctype': 'Page Role',
'name': '__common__',
'parent': 'Financial Statements',
'parentfield': 'roles',
'parenttype': 'Page'
},
# Page, Financial Statements
{
'doctype': 'Page',
'name': 'Financial Statements'
},
# Page Role
{
'doctype': 'Page Role',
'idx': 1,
'role': 'Accounts User'
},
# Page Role
{
'doctype': 'Page Role',
'idx': 2,
'role': 'Administrator'
},
# Page Role
{
'doctype': 'Page Role',
'idx': 3,
'role': 'Accounts Manager'
}
]

View File

@ -1,37 +0,0 @@
[
{
'add_col': None,
'add_cond': None,
'add_tab': None,
'columns': 'GL Entry\x01ID,GL Entry\x01Owner,GL Entry\x01Posting Date,GL Entry\x01Account,GL Entry\x01Cost Center,GL Entry\x01Against Voucher,GL Entry\x01Voucher Type,GL Entry\x01Voucher No,GL Entry\x01Remarks,GL Entry\x01Is Cancelled,GL Entry\x01Is Opening,GL Entry\x01Fiscal Year,GL Entry\x01Company,GL Entry\x01Lft,GL Entry\x01Rgt',
'creation': '2010-08-08 17:09:31',
'criteria_name': 'Account - Inputs (R.G. 23 A - PART II) Wrong One',
'custom_query': '',
'description': None,
'dis_filters': None,
'disabled': None,
'doc_type': 'GL Entry',
'docstatus': 0,
'doctype': 'Search Criteria',
'filters': "{'GL Entry\x01Voucher Type':'','GL Entry\x01Is Cancelled':'','GL Entry\x01Is Opening':'','GL Entry\x01Fiscal Year':'','GL Entry\x01Company':''}",
'graph_series': None,
'graph_values': None,
'group_by': None,
'idx': None,
'modified': '2010-03-20 17:02:13',
'modified_by': 'Administrator',
'module': 'Accounts',
'name': 'account_-_inputs_rg_23_a_-_part_ii_wrong_one',
'owner': 'jai@webnotestech.com',
'page_len': 50,
'parent': None,
'parent_doc_type': None,
'parentfield': None,
'parenttype': None,
'report_script': '',
'server_script': None,
'sort_by': 'ID',
'sort_order': 'DESC',
'standard': 'Yes'
}
]

View File

@ -1,9 +0,0 @@
report.customize_filters = function() {
this.hide_all_filters();
this.add_filter({fieldname:'fiscal_year', label:'Fiscal Year', fieldtype:'Link', options:'Fiscal Year', report_default:sys_defaults.fiscal_year, parent:'Budget Detail'});
this.add_filter({fieldname:'company', label:'Company', fieldtype:'Link', options:'Company',report_default:sys_defaults.company, ignore : 1, parent:'Budget Detail'});
this.add_filter({fieldname:'period', label:'Period', fieldtype:'Select', options:'Monthly'+NEWLINE+'Quarterly'+NEWLINE+'Half Yearly'+NEWLINE+'Annual',report_default:'Quarterly',ignore : 1, parent:'Budget Detail'});
this.add_filter({fieldname:'cost_center', label:'Cost Center', fieldtype:'Link', options:'Cost Center', parent:'Budget Detail'});
this.add_filter({fieldname:'account_head', label:'Account', fieldtype:'Link', options:'Account', parent:'Budget Detail'});
}
this.mytabs.items['Select Columns'].hide()

View File

@ -1,88 +0,0 @@
# use This in Query
# AND `tabAccount`.debit_or_credit = "Debit" AND `tabAccount`.`is_pl_account` = "Yes"
# validate Filters
if not filter_values.get('fiscal_year'):
msgprint("Please Select Fiscal Year")
raise Exception
if not filter_values.get('period'):
msgprint("Please Select Period")
raise Exception
# Get Values from fliters
fiscal_year = filter_values.get('fiscal_year')
period = filter_values.get('period')
mon_list = []
data = {'start_date':0, 'end_date':1}
def make_month_list(append_colnames, start_date, mon_list, period, colnames, coltypes, colwidths, coloptions, col_idx):
count = 1
if period == 'Quarterly' or period == 'Half Yearly' or period == 'Annual': mon_list.append([str(start_date)])
for m in range(12):
# get last date
last_date = str(sql("select LAST_DAY('%s')" % start_date)[0][0])
# make mon_list
if period == 'Monthly' :
mon_list.append([start_date, last_date])
# add months as Column names
month_name = sql("select MONTHNAME('%s')" % start_date)[0][0]
append_colnames(str(month_name)[:3], colnames, coltypes, colwidths, coloptions, col_idx)
# get start date
start_date = str(sql("select DATE_ADD('%s',INTERVAL 1 DAY)" % last_date)[0][0])
if period == 'Quarterly' and count % 3 == 0:
mon_list[len(mon_list) - 1 ].append(last_date)
# add Column names
append_colnames('Q '+ str(count / 3), colnames, coltypes, colwidths, coloptions, col_idx)
if count != 12: mon_list.append([start_date])
if period == 'Half Yearly' and count % 6 == 0 :
mon_list[len(mon_list) - 1 ].append(last_date)
# add Column Names
append_colnames('H'+str(count / 6), colnames, coltypes, colwidths, coloptions, col_idx)
if count != 12: mon_list.append([start_date])
if period == 'Annual' and count % 12 == 0:
mon_list[len(mon_list) - 1 ].append(last_date)
append_colnames('', colnames, coltypes, colwidths, coloptions, col_idx)
count = count +1
def append_colnames(name, colnames, coltypes, colwidths, coloptions, col_idx):
col = ['Budget', 'Actual', 'Variance']
for c in col:
colnames.append(str(c) + ' (' + str(name) +')' )
coltypes.append('Currency')
colwidths.append('150px')
coloptions.append('')
col_idx[str(c) + ' (' + str(name) +')' ] = len(colnames) - 1
col = ['Cost Center', 'Account', 'Budget Allocated', 'Distribution Id']
for c in col:
colnames.append(str(c))
coltypes.append((c=='Budget Allocated') and'Currency' or 'Link')
colwidths.append('150px')
coloptions.append((c=='Budget Allocated') and '' or (c == 'Distribution Id') and 'Budget Distribution' or c)
col_idx[str(c)] = len(colnames) - 1
start_date = get_value('Fiscal Year', fiscal_year, 'year_start_date')
if not start_date:
msgprint("Please Define Year Start Date for Fiscal Year " + str(fiscal_year))
raise Exception
start_date = start_date.strftime('%Y-%m-%d')
make_month_list(append_colnames, start_date, mon_list, period, colnames, coltypes, colwidths, coloptions, col_idx)
# Get Object Of GL Control
glc_obj = get_obj('GL Control')
bc_obj = get_obj('Budget Control')
for r in res:
count = 0
for idx in range(4, len(colnames), 3):
r.append(bc_obj.get_monthly_budget( r[3], fiscal_year, mon_list[count][data['start_date']], mon_list[count][data['end_date']], r[2]))
r.append(glc_obj.get_period_difference(r[1] + '~~~' + mon_list[count][data['start_date']] + '~~~' + mon_list[count][data['end_date']], r[0]))
r.append(r[idx] - r[idx + 1])
count = count +1

View File

@ -1 +0,0 @@
select t2.name, t1.account, t1.budget_allocated, t1.distribution_id from `tabBudget Detail` t1, `tabCost Center` t2 where t1.fiscal_year = '%(fiscal_year)s' and t1.parent = t2.name and t2.name like '%(cost_center)s%%' and t1.account like '%(account_head)s%%' and t2.docstatus != 2

View File

@ -1,37 +0,0 @@
[
{
'add_col': None,
'add_cond': None,
'add_tab': None,
'columns': 'Cost Center\x01ID,Budget Detail\x01Account,Budget Detail\x01Fiscal Year,Budget Detail\x01Budget Allocated,Budget Detail\x01Actual,Budget Detail\x01Distribution ID',
'creation': '2010-08-08 17:09:31',
'criteria_name': 'Budget Variance Report1',
'custom_query': None,
'description': None,
'dis_filters': None,
'disabled': None,
'doc_type': 'Budget Detail',
'docstatus': 0,
'doctype': 'Search Criteria',
'filters': "{'Budget Detail\x01Fiscal Year':''}",
'graph_series': None,
'graph_values': None,
'group_by': None,
'idx': None,
'modified': '2010-07-28 14:52:44',
'modified_by': 'Administrator',
'module': 'Accounts',
'name': 'budget_variance_report1',
'owner': 'jai@webnotestech.com',
'page_len': 50,
'parent': None,
'parent_doc_type': 'Cost Center',
'parentfield': None,
'parenttype': None,
'report_script': None,
'server_script': None,
'sort_by': '`tabCost Center`.`name`',
'sort_order': 'DESC',
'standard': 'Yes'
}
]

View File

@ -1 +1,31 @@
[{'section_style': 'Simple', 'is_transaction_doc': None, 'creation': '2009-03-12 12:09:21', 'search_fields': None, 'module': 'Analysis', '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': 1, 'allow_rename': None, 'smallicon': '', 'allow_attach': None, 'show_in_menu': 0, 'max_attachments': None, 'version': 124, 'menu_index': None, 'docstatus': 0, 'allow_copy': None, 'istable': None, 'description': None, 'parent': None, 'server_code': '', 'allow_trash': None, 'allow_print': None, 'autoname': None, 'client_script_core': None, 'client_string': None, 'use_template': None, 'modified_by': 'Administrator', 'document_type': '', 'name': 'MIS Control', 'idx': None, 'hide_toolbar': None, 'colour': 'White:FFF', 'client_script': '', 'modified': '2010-10-25 17:20:04', 'server_code_error': ' ', 'name_case': '', 'parenttype': None, 'read_only_onload': None, 'server_code_core': None, 'server_code_compiled': None, 'parent_node': None, 'parentfield': None}]
# DocType, MIS Control
[
# These values are common in all dictionaries
{
'creation': '2010-08-08 17:09:10',
'docstatus': 0,
'modified': '2011-01-03 17:32:31',
'modified_by': 'umair@iwebnotes.com',
'owner': 'Administrator'
},
# These values are common for all DocType
{
'colour': 'White:FFF',
'doctype': 'DocType',
'issingle': 1,
'module': 'Analysis',
'name': '__common__',
'section_style': 'Simple',
'server_code_error': ' ',
'show_in_menu': 0,
'version': 120
},
# DocType, MIS Control
{
'doctype': 'DocType',
'name': 'MIS Control'
}
]

View File

@ -1 +1,32 @@
[{'section_style': 'Simple', 'is_transaction_doc': None, 'creation': '2011-01-07 14:56:35', 'search_fields': None, 'module': 'Analysis', 'doctype': 'DocType', 'change_log': None, 'print_outline': None, 'owner': 'Administrator', 'in_dialog': None, 'in_create': 1, 'read_only': 1, 'allow_email': None, 'dt_template': None, 'hide_heading': None, 'issingle': 1, 'allow_rename': None, 'smallicon': None, 'allow_attach': None, 'show_in_menu': None, 'max_attachments': None, 'version': 1, 'menu_index': None, 'docstatus': 0, 'allow_copy': None, 'istable': None, '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': 'TA Control', 'idx': None, 'hide_toolbar': None, 'colour': 'White:FFF', 'client_script': None, 'modified': '2011-01-07 14:56:35', 'server_code_error': None, 'name_case': None, 'parenttype': None, 'read_only_onload': None, 'server_code_core': None, 'server_code_compiled': None, 'parent_node': None, 'parentfield': None}]
# DocType, TA Control
[
# These values are common in all dictionaries
{
'creation': '2010-11-09 09:35:22',
'docstatus': 0,
'modified': '2010-12-02 18:00:30',
'modified_by': 'Administrator',
'owner': 'saumil@webnotestech.com'
},
# These values are common for all DocType
{
'colour': 'White:FFF',
'doctype': 'DocType',
'in_create': 1,
'issingle': 1,
'module': 'Analysis',
'name': '__common__',
'read_only': 1,
'section_style': 'Simple',
'server_code_error': ' ',
'version': 11
},
# DocType, TA Control
{
'doctype': 'DocType',
'name': 'TA Control'
}
]

View File

@ -1 +0,0 @@
[{'modified_by': 'Administrator', 'name': 'Payable Voucher', 'parent': None, 'dt_label': 'Purchase Invoice', 'creation': '2010-06-10 10:44:55', 'modified': '2010-06-10 10:44:55', 'module': 'Application Internal', 'doctype': 'DocType Label', 'idx': None, 'parenttype': None, 'owner': 'Administrator', 'docstatus': 0, 'dt': 'Payable Voucher', 'parentfield': None}]

View File

@ -1 +0,0 @@
[{'modified_by': 'Administrator', 'name': 'Receivable Voucher', 'parent': None, 'dt_label': 'Sales Invoice', 'creation': '2010-06-10 10:44:40', 'modified': '2010-06-10 10:44:40', 'module': 'Application Internal', 'doctype': 'DocType Label', 'idx': None, 'parenttype': None, 'owner': 'Administrator', 'docstatus': 0, 'dt': 'Receivable Voucher', 'parentfield': None}]

View File

@ -1,218 +0,0 @@
[
{
'_last_update': None,
'creation': '2010-11-30 17:30:06',
'disabled': 'No',
'docstatus': 0,
'doctype': 'Module Def',
'doctype_list': 'DocType Label, Payable Voucher\nDocType Label, Receivable Voucher',
'file_list': None,
'idx': None,
'is_hidden': None,
'last_updated_date': '2010-11-29 12:02:02',
'modified': '2010-09-25 00:00:00',
'modified_by': 'Administrator',
'module_desc': None,
'module_icon': None,
'module_label': 'Application Internal',
'module_name': 'Application Internal',
'module_page': None,
'module_seq': None,
'name': 'Application Internal',
'owner': 'Administrator',
'parent': None,
'parentfield': None,
'parenttype': None,
'trash_reason': None,
'widget_code': None
},
{
'click_function': None,
'creation': '2010-11-30 17:30:06',
'description': None,
'display_name': 'Code History',
'doc_name': 'Code History',
'doc_type': 'Forms',
'docstatus': 0,
'doctype': 'Module Def Item',
'fields': None,
'hide': None,
'icon': None,
'idx': None,
'modified': '2011-03-24 15:04:46',
'modified_by': 'Administrator',
'name': 'MDI00016',
'owner': 'Administrator',
'parent': 'Application Internal',
'parentfield': 'items',
'parenttype': 'Module Def'
},
{
'click_function': None,
'creation': '2010-11-30 17:30:06',
'description': None,
'display_name': 'DocType Label',
'doc_name': 'DocType Label',
'doc_type': 'Forms',
'docstatus': 0,
'doctype': 'Module Def Item',
'fields': None,
'hide': None,
'icon': None,
'idx': None,
'modified': '2011-03-24 15:04:46',
'modified_by': 'Administrator',
'name': 'MDI00017',
'owner': 'Administrator',
'parent': 'Application Internal',
'parentfield': 'items',
'parenttype': 'Module Def'
},
{
'click_function': None,
'creation': '2010-11-30 17:30:06',
'description': None,
'display_name': 'DocType Mapper',
'doc_name': 'DocType Mapper',
'doc_type': 'Forms',
'docstatus': 0,
'doctype': 'Module Def Item',
'fields': None,
'hide': None,
'icon': None,
'idx': None,
'modified': '2011-03-24 15:04:46',
'modified_by': 'Administrator',
'name': 'MDI00018',
'owner': 'Administrator',
'parent': 'Application Internal',
'parentfield': 'items',
'parenttype': 'Module Def'
},
{
'click_function': None,
'creation': '2010-11-30 17:30:06',
'description': None,
'display_name': 'Form Settings',
'doc_name': 'Form Settings',
'doc_type': 'Forms',
'docstatus': 0,
'doctype': 'Module Def Item',
'fields': None,
'hide': None,
'icon': None,
'idx': None,
'modified': '2011-03-24 15:04:46',
'modified_by': 'Administrator',
'name': 'MDI00019',
'owner': 'Administrator',
'parent': 'Application Internal',
'parentfield': 'items',
'parenttype': 'Module Def'
},
{
'click_function': None,
'creation': '2010-11-30 17:30:06',
'description': None,
'display_name': 'GL Mapper',
'doc_name': 'GL Mapper',
'doc_type': 'Forms',
'docstatus': 0,
'doctype': 'Module Def Item',
'fields': None,
'hide': None,
'icon': None,
'idx': None,
'modified': '2011-03-24 15:04:46',
'modified_by': 'Administrator',
'name': 'MDI00020',
'owner': 'Administrator',
'parent': 'Application Internal',
'parentfield': 'items',
'parenttype': 'Module Def'
},
{
'click_function': None,
'creation': '2010-11-30 17:30:06',
'description': None,
'display_name': 'Impact Analysis',
'doc_name': 'Impact Analysis',
'doc_type': 'Forms',
'docstatus': 0,
'doctype': 'Module Def Item',
'fields': None,
'hide': None,
'icon': None,
'idx': None,
'modified': '2011-03-24 15:04:46',
'modified_by': 'Administrator',
'name': 'MDI00021',
'owner': 'Administrator',
'parent': 'Application Internal',
'parentfield': 'items',
'parenttype': 'Module Def'
},
{
'click_function': None,
'creation': '2010-11-30 17:30:06',
'description': None,
'display_name': 'Rating Template',
'doc_name': 'Rating Template',
'doc_type': 'Forms',
'docstatus': 0,
'doctype': 'Module Def Item',
'fields': None,
'hide': None,
'icon': None,
'idx': None,
'modified': '2011-03-24 15:04:46',
'modified_by': 'Administrator',
'name': 'MDI00022',
'owner': 'Administrator',
'parent': 'Application Internal',
'parentfield': 'items',
'parenttype': 'Module Def'
},
{
'click_function': None,
'creation': '2010-11-30 17:30:06',
'description': None,
'display_name': 'Search Criteria',
'doc_name': 'Search Criteria',
'doc_type': 'Forms',
'docstatus': 0,
'doctype': 'Module Def Item',
'fields': None,
'hide': None,
'icon': None,
'idx': None,
'modified': '2011-03-24 15:04:46',
'modified_by': 'Administrator',
'name': 'MDI00023',
'owner': 'Administrator',
'parent': 'Application Internal',
'parentfield': 'items',
'parenttype': 'Module Def'
},
{
'click_function': None,
'creation': '2011-03-24 15:04:46',
'description': None,
'display_name': None,
'doc_name': 'Forms',
'doc_type': 'Separator',
'docstatus': 0,
'doctype': 'Module Def Item',
'fields': None,
'hide': None,
'icon': None,
'idx': None,
'modified': '2011-03-24 15:04:46',
'modified_by': 'Administrator',
'name': '000003078',
'owner': 'Administrator',
'parent': 'Application Internal',
'parentfield': 'items',
'parenttype': 'Module Def'
}
]

View File

@ -1,204 +0,0 @@
// get the script
loadscript("js/edit_area/edit_area_full.js", function() { });
// property div
cur_frm.fields_dict['Property HTML'].prop_div = $a(cur_frm.fields_dict['Property HTML'].wrapper,'div','',{margin:'8px 0px'});
// comment div
cur_frm.cscript.comment_div = $a(cur_frm.fields_dict['Code Toolbar'].wrapper,'div','',{display: 'none', marginBottom:'8px', width: '90%', backgroundColor: '#FFD', fontSize: '14px', padding:'4px'})
// field master
cur_frm.cscript.type_fields = {
'DocType': 'doc_type'
,'Page': 'page_name'
,'Search Criteria': 'criteria_id'
,'Print Format': 'print_format'
}
// syntax master
// -------------
cur_frm.cscript.code_syntax = {
// --- DocType
client_script:'js'
,client_script_core:'js'
,server_code:'python'
,server_code_core:'python'
// --- Page
,content:'html'
,script:'js'
,style:'css'
// --- Search Criteria
,report_script:'js'
,server_script:'python'
// --- Print Format
,code:'html'
}
// get field name of code
// ----------------------
cur_frm.cscript.get_field_name = function(doc) {
// field names
if(doc.script_from =='DocType') {
var code_field = doc.code_type.toLowerCase().replace(/ /g,'_');
} else if(doc.script_from =='Page') {
var code_field = doc.code_type_page.toLowerCase().replace(/ /g,'_');
} else if(doc.script_from =='Search Criteria') {
var code_field = doc.code_type_criteria.toLowerCase().replace(/ /g,'_');
} else if(doc.script_from =='Print Format') {
var code_field = 'html';
}
return code_field;
}
// update comment
// --------------
cur_frm.cscript.update_comment = function() {
var ce = cur_frm.cscript.cur_editor;
if(!ce) return;
var c = cur_frm.cscript.comment_div;
c.innerHTML = "Currently Editing '<b>" + ce.fn + "</b>' from " + ce.dt + " <b>" + ce.dn + "</b><span style='color: #888'> (Last Modified: " + ce.code_modified + ")</span>";
if(ce.saved)
c.innerHTML += "<br><b style='color: GREEN'>Saved</b>"
else
c.innerHTML += "<br><b style='color: ORANGE'>Changes are not saved</b>"
$ds(c);
}
// get code button
// ---------------
cur_frm.cscript.get_code = function() {
var doc = locals[cur_frm.doctype][cur_frm.docname];
if(!editAreaLoader) {
msgprint('Waiting for the editor to load. Please try again');
return;
}
if(cur_frm.cscript.cur_editor && (!cur_frm.cscript.cur_editor.saved)) {
if(!confirm("Current script not saved. Do you want to continue?")) return;
}
// field names
var code_field = cur_frm.cscript.get_field_name(doc);
var callback = function(r, rt) {
cur_frm.cscript.make_editor(cur_frm.cscript.code_syntax[code_field]);
editAreaLoader.setValue(cur_frm.cscript.cur_editor.editor_id, r.message[0]);
var ce = cur_frm.cscript.cur_editor;
ce.code_modified = r.message[1];
ce.dt = doc.script_from;
ce.dn = doc[cur_frm.cscript.type_fields[doc.script_from]];
ce.fn = code_field;
ce.saved = 1;
cur_frm.cscript.update_comment();
}
$c_obj([doc], 'get_code', [doc.script_from, doc[cur_frm.cscript.type_fields[doc.script_from]], code_field].join('~~~'), callback);
}
// make a new editor
// -----------------
cur_frm.cscript.make_editor = function(syntax) {
// hide editor if exists
if(cur_frm.cscript.cur_editor) {
}
// set id
var myid = 'code_edit_1' //+ cur_frm.cscript.mycnt;
editAreaLoader.init({id: myid, start_highlight: true, word_wrap: false, syntax: syntax
,change_callback : "cur_frm.cscript.editor_change_callback"
,EA_load_callback: "cur_frm.cscript.editor_load_callback"
});
editAreaLoader.window_loaded(); // make the editor
if(!cur_frm.cscript.cur_editor) {
// parent
var div = $a(cur_frm.fields_dict['Code HTML'].wrapper,'div');
div.editor_id = myid;
// make the form
div.innerHTML = '<form method="POST"></form>';
div.form = div.childNodes[0];
// make the text area
div.ta = $a(div.form,'textarea','',{height: '400px'}); div.ta.setAttribute('id',myid);
cur_frm.cscript.cur_editor = div;
}
}
cur_frm.cscript.editor_change_callback = function(id) {
cur_frm.cscript.cur_editor.saved = 0; cur_frm.cscript.update_comment();
}
cur_frm.cscript.editor_load_callback = function(id) {
cur_frm.cscript.cur_editor.saved = 1; cur_frm.cscript.update_comment();
}
// get properties
// --------------
cur_frm.cscript.get_properties = function() {
var callback = function(r,rt) {
var div = cur_frm.fields_dict['Property HTML'].prop_div;
div.innerHTML = '';
var t = make_table(div, r.message.length, 4, '90%', ['25%','25%','25%','25%'], {padding: '3px'})
var cl = r.message;
for(var i=0; i<cl.length; i++) {
$td(t,i,0).innerHTML = cl[i][0];
$td(t,i,1).innerHTML = cl[i][1];
$td(t,i,2).innerHTML = cl[i][2];
$td(t,i,3).innerHTML = cl[i][3];
}
}
$c_obj([locals[cur_frm.doctype][cur_frm.docname]], 'get_properties', '', callback);
}
// set code button
// ---------------
cur_frm.cscript.set_code = function() {
ce = cur_frm.cscript.cur_editor;
var doc = locals[cur_frm.doctype][cur_frm.docname];
if(doc.add_to_history) {
var comment = prompt("Please enter comment before saving");
if(!comment) { msgprint("Comment is necessary. Not saved"); return; }
}
doc.code = editAreaLoader.getValue(ce.editor_id);
$c_obj([doc], 'set_code', [ce.dt, ce.dn, ce.fn, comment, ce.code_modified].join('~~~'),
function(r,rt) {
if(r.exc)return;
cur_frm.cscript.cur_editor.code_modified = r.message;
cur_frm.cscript.cur_editor.saved = 1;
cur_frm.cscript.update_comment();
}
);
}
cur_frm.cscript.is_doctype = function(doc,dt,dn) { return doc.script_from == 'DocType' }
cur_frm.cscript.is_page = function(doc,dt,dn) { return doc.script_from == 'Page' }
cur_frm.cscript.is_criteria = function(doc,dt,dn) { return doc.script_from == 'Search Criteria' }
cur_frm.cscript.is_print_format = function(doc,dt,dn) { return doc.script_from == 'Print Format' }
cur_frm.cscript.test = function(doc,dt,dn) { return false }
cur_frm.cscript.refresh = function(doc, dt, dn) {
cur_frm.cscript.update_comment();
}

View File

@ -1,73 +0,0 @@
# 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
# get the code
# ------------
def get_code(self, arg):
dt, dn, field = arg.split('~~~')
return [str(r or '') for r in sql("select `%s`, modified from `tab%s` where name='%s'" % (field, dt, dn))[0]]
# set code
# check modified, add to history, update code
# -------------------------------------------
def set_code(self, arg):
dt, dn, field, comment, modified = arg.split('~~~')
# validate modified
old_modified = sql("select modified from `tab%s` where name='%s'" % (dt, dn))[0][0]
if str(old_modified) != modified:
msgprint('error:Someone has updated the code after you checked it out. Please update to the latest copy of the code before saving.')
raise Exception
# add to history
if self.doc.add_to_history:
self.add_to_history(dt, dn, field, self.doc.code, comment)
# update
new_modified = now()
sql("update `tab%s` set `%s` = %s, modified = %s where name=%s" % (dt, field, '%s', '%s', '%s'), (self.doc.code, new_modified, dn))
# compile
if dt=='DocType':
get_obj('DocType',dn).compile_code()
sql("delete from __DocTypeCache where name=%s", dn)
msgprint('ok:Saved')
return new_modified
# get properties
# --------------
def get_properties(self, arg=''):
#return convert_to_lists(sql("select fieldname, label, fieldtype, options from tabDocField where parent=%s and ifnull(fieldname,'') != '' order by idx asc", self.doc.select_doctype))
return convert_to_lists(sql("select fieldname, label, fieldtype, options from tabDocField where parent=%s and ifnull(label,'') != '' order by idx asc", self.doc.select_doctype))
# add to history
# --------------
def add_to_history(self, dt, dn, fn, code, comment):
ch = Document('Code History')
ch.script_from = dt
ch.record_id = dn
ch.field_name = fn
ch.comment = comment
ch.code = code
ch.save(1)

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,25 +0,0 @@
cur_frm.fields_dict['doctype_name'].get_query = function(doc){
return 'SELECT tabDocType.name FROM tabDocType WHERE (tabDocType.istable != 1 OR tabDocType.istable is null) AND (tabDocType.issingle !=1 OR tabDocType.issingle is null) AND tabDocType.name LIKE "%s"';
}
cur_frm.fields_dict['report_filter_details'].grid.get_field("field_label_fr").get_query = function(doc){
return 'SELECT tabDocField.label FROM tabDocField WHERE tabDocField.parent = "' + doc.doctype_name+ '" AND tabDocField.fieldname is not null AND tabDocField.fieldname != "'+''+'" AND tabDocField.fieldtype != "Table" AND tabDocField.label LIKE "%s"';
}
cur_frm.fields_dict['report_field_details'].grid.get_field("field_label_fd").get_query = function(doc){
return 'SELECT tabDocField.label FROM tabDocField WHERE tabDocField.parent = "' + doc.doctype_name+ '" AND tabDocField.fieldname is not null AND tabDocField.fieldname != "'+''+'" AND tabDocField.fieldtype != "Table" AND tabDocField.label LIKE "%s"';
}
cur_frm.cscript.field_label_fr = function(doc,cdt,cdn){
var d = locals[cdt][cdn];
if(d.field_label_fr){
get_server_fields('get_filter_details',d.field_label_fr,'report_filter_details',doc,cdt,cdn,1);
}
}
cur_frm.cscript.field_label_fd = function(doc,cdt,cdn){
var d = locals[cdt][cdn];
if(d.field_label_fd){
get_server_fields('get_field_details',d.field_label_fd,'report_field_details',doc,cdt,cdn,1);
}
}

View File

@ -1,54 +0,0 @@
# 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 autoname(self):
rep_nm = self.doc.doctype_name + '-' + 'Settings'
if sql("select name from `tabForm Settings` where name=%s",rep_nm):
msgprint("Settings for this form already created, please open existing form to do any changes.")
raise Exception
else:
self.doc.name = rep_nm
def get_filter_details(self,arg=''):
dt_det = sql("select label, fieldtype, options, fieldname from tabDocField where parent=%s and label=%s",(self.doc.doctype_name,arg),as_dict=1)
ret = {
'field_label_fr' : dt_det and dt_det[0]['label'] or '',
'field_type_fr' : dt_det and dt_det[0]['fieldtype'] or '',
'options_fr' : dt_det and dt_det[0]['options'] or '',
'field_name_fr' : dt_det and dt_det[0]['fieldname'] or '',
'table_name_fr' : self.doc.doctype_name
}
return cstr(ret)
def get_field_details(self,arg=''):
dt_det = sql("select label, fieldtype, options, fieldname from tabDocField where parent=%s and label=%s",(self.doc.doctype_name,arg),as_dict=1)
ret = {
'field_label_fd' : dt_det and dt_det[0]['label'] or '',
'field_type_fd' : dt_det and dt_det[0]['fieldtype'] or '',
'options_fd' : dt_det and dt_det[0]['options'] or '',
'field_name_fd' : dt_det and dt_det[0]['fieldname'] or '',
'table_name_fd' : self.doc.doctype_name
}
return cstr(ret)

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-03-12 12:09:20', 'search_fields': None, 'module': 'Application Internal', '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': '', 'allow_attach': None, 'show_in_menu': 0, 'max_attachments': None, 'version': 2, 'menu_index': None, 'docstatus': 0, 'allow_copy': None, 'istable': None, 'description': None, 'parent': None, 'server_code': '', 'allow_trash': None, 'allow_print': None, 'autoname': 'field:doc_type', 'client_script_core': None, 'client_string': None, 'use_template': None, 'modified_by': 'Administrator', 'document_type': None, 'name': 'GL Mapper', 'idx': None, 'hide_toolbar': None, 'colour': 'White:FFF', 'client_script': '', '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}, {'cancel': 0, 'amend': 0, 'execute': None, 'modified_by': 'Administrator', 'name': 'PERM00034', 'parent': 'GL Mapper', 'read': 1, 'create': 0, 'creation': '2009-03-12 12:09:20', 'modified': '2010-04-08 12:29:12', 'submit': 0, 'doctype': 'DocPerm', 'write': 0, 'idx': 1, 'parenttype': 'DocType', 'role': 'Accounts User', 'owner': 'Administrator', 'docstatus': 0, 'permlevel': 0, 'match': '', 'parentfield': 'permissions'}, {'cancel': None, 'amend': None, 'execute': None, 'modified_by': 'Administrator', 'name': 'PERM00660', 'parent': 'GL Mapper', 'read': 1, 'create': None, 'creation': '2010-02-10 13:50:27', 'modified': '2010-03-31 10:38:44', 'submit': None, 'doctype': 'DocPerm', 'write': 1, 'idx': 2, 'parenttype': 'DocType', 'role': 'Administrator', 'owner': 'wasim@webnotestech.com', 'docstatus': 0, 'permlevel': 0, 'match': None, 'parentfield': 'permissions'}, {'no_copy': None, 'oldfieldtype': 'Link', 'creation': '2009-03-12 12:09:20', 'doctype': 'DocField', 'oldfieldname': 'doc_type', 'owner': 'Administrator', 'reqd': 1, 'in_filter': None, 'print_hide': None, 'modified_by': 'Administrator', 'label': 'Doc Type', 'width': None, 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'GL Mapper', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL00361', 'idx': 1, 'default': None, 'colour': None, 'modified': '2010-03-31 10:38:44', 'parenttype': 'DocType', 'fieldname': 'doc_type', 'fieldtype': 'Link', 'options': 'DocType', 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': None, 'oldfieldtype': 'Table', 'creation': '2009-03-12 12:09:20', 'doctype': 'DocField', 'oldfieldname': 'fields', 'owner': 'Administrator', 'reqd': None, 'in_filter': None, 'print_hide': None, 'modified_by': 'Administrator', 'label': 'Fields', 'width': None, 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'GL Mapper', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL00362', 'idx': 2, 'default': None, 'colour': None, 'modified': '2010-03-31 10:38:44', 'parenttype': 'DocType', 'fieldname': 'fields', 'fieldtype': 'Table', 'options': 'GL Mapper Detail', 'report_hide': None, 'parentfield': 'fields'}]

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
[{'section_style': 'Simple', 'is_transaction_doc': None, 'creation': '2010-06-04 10:40:44', 'search_fields': None, 'module': 'Application Internal', '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': '', 'allow_attach': None, 'show_in_menu': None, 'max_attachments': None, 'version': 3, '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': 'saumil@webnotestech.com', 'document_type': None, 'name': 'Mail Participant Details', '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': '2010-06-04 10:40:44', 'doctype': 'DocField', 'oldfieldname': 'participant_name', 'owner': 'Administrator', 'reqd': 0, 'in_filter': None, 'print_hide': None, 'modified_by': 'saumil@webnotestech.com', 'label': 'Participant Name', 'width': None, 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'Mail Participant Details', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL05240', 'idx': 1, 'default': None, 'colour': None, 'modified': '2010-08-08 15:04:17', 'parenttype': 'DocType', 'fieldname': 'participant_name', 'fieldtype': 'Data', 'options': None, 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': None, 'oldfieldtype': 'Select', 'creation': '2010-06-04 10:40:44', 'doctype': 'DocField', 'oldfieldname': 'read_status', 'owner': 'Administrator', 'reqd': None, 'in_filter': None, 'print_hide': None, 'modified_by': 'saumil@webnotestech.com', 'label': 'Read Status', 'width': None, 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'Mail Participant Details', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL05241', 'idx': 2, 'default': None, 'colour': None, 'modified': '2010-08-08 15:04:17', 'parenttype': 'DocType', 'fieldname': 'read_status', 'fieldtype': 'Select', 'options': '\nRead\nUnread', 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': None, 'oldfieldtype': 'Select', 'creation': '2010-06-04 10:40:44', 'doctype': 'DocField', 'oldfieldname': 'delete_status', 'owner': 'Administrator', 'reqd': None, 'in_filter': None, 'print_hide': None, 'modified_by': 'saumil@webnotestech.com', 'label': 'Delete Status', 'width': None, 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'Mail Participant Details', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL05242', 'idx': 3, 'default': None, 'colour': None, 'modified': '2010-08-08 15:04:17', 'parenttype': 'DocType', 'fieldname': 'delete_status', 'fieldtype': 'Select', 'options': '\nYes\nNo', 'report_hide': None, 'parentfield': 'fields'}]

View File

@ -1 +0,0 @@
[{'section_style': 'Simple', 'is_transaction_doc': None, 'creation': '2009-06-12 12:08:31', 'search_fields': None, 'module': 'Application Internal', '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': 1, 'allow_rename': None, 'smallicon': '', 'allow_attach': None, 'show_in_menu': 0, 'max_attachments': None, 'version': 55, 'menu_index': None, 'docstatus': 0, 'allow_copy': None, 'istable': None, 'description': None, 'parent': None, 'server_code': '', 'allow_trash': None, 'allow_print': None, 'autoname': None, 'client_script_core': '', 'client_string': None, 'use_template': None, 'modified_by': 'Administrator', 'document_type': None, 'name': 'Menu Control', '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}]

View File

@ -1 +0,0 @@
[{'section_style': 'Simple', 'is_transaction_doc': None, 'creation': '2010-04-13 13:47:58', 'search_fields': None, 'module': 'Application Internal', 'doctype': 'DocType', 'change_log': None, 'print_outline': '', 'owner': 'Administrator', 'in_dialog': None, 'in_create': 1, 'read_only': 1, 'allow_email': None, 'dt_template': None, 'hide_heading': None, 'issingle': None, 'allow_rename': None, 'smallicon': '', 'allow_attach': None, 'show_in_menu': None, 'max_attachments': None, 'version': 2, 'menu_index': None, 'docstatus': 0, 'allow_copy': None, 'istable': None, 'description': None, 'parent': None, 'server_code': None, 'allow_trash': None, 'allow_print': None, 'autoname': 'MSG.#####', 'client_script_core': None, 'client_string': None, 'use_template': None, 'modified_by': 'saumil@webnotestech.com', 'document_type': None, 'name': 'Message', '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}, {'cancel': None, 'amend': None, 'execute': None, 'modified_by': 'saumil@webnotestech.com', 'name': 'PERM00770', 'parent': 'Message', 'read': 1, 'create': 1, 'creation': '2010-04-13 13:47:58', 'modified': '2010-08-08 15:03:43', 'submit': None, 'doctype': 'DocPerm', 'write': 1, 'idx': 1, 'parenttype': 'DocType', 'role': 'Customer', 'owner': 'Administrator', 'docstatus': 0, 'permlevel': 0, 'match': None, 'parentfield': 'permissions'}, {'cancel': None, 'amend': None, 'execute': None, 'modified_by': 'saumil@webnotestech.com', 'name': 'PERM00771', 'parent': 'Message', 'read': 1, 'create': 1, 'creation': '2010-04-13 13:47:58', 'modified': '2010-08-08 15:03:43', 'submit': None, 'doctype': 'DocPerm', 'write': 1, 'idx': 2, 'parenttype': 'DocType', 'role': 'Supplier', 'owner': 'Administrator', 'docstatus': 0, 'permlevel': 0, 'match': None, 'parentfield': 'permissions'}, {'cancel': None, 'amend': None, 'execute': None, 'modified_by': 'saumil@webnotestech.com', 'name': 'PERM00772', 'parent': 'Message', 'read': 1, 'create': 1, 'creation': '2010-04-13 13:47:58', 'modified': '2010-08-08 15:03:43', 'submit': None, 'doctype': 'DocPerm', 'write': 1, 'idx': 3, 'parenttype': 'DocType', 'role': 'Administrator', 'owner': 'Administrator', 'docstatus': 0, 'permlevel': 0, 'match': None, 'parentfield': 'permissions'}, {'no_copy': None, 'oldfieldtype': 'Data', 'creation': '2010-04-13 13:47:58', 'doctype': 'DocField', 'oldfieldname': 'subject', 'owner': 'Administrator', 'reqd': None, 'in_filter': None, 'print_hide': None, 'modified_by': 'saumil@webnotestech.com', 'label': 'Subject', 'width': None, 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'Message', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL04639', 'idx': 1, 'default': None, 'colour': None, 'modified': '2010-08-08 15:03:43', 'parenttype': 'DocType', 'fieldname': 'subject', 'fieldtype': 'Data', 'options': None, 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': None, 'oldfieldtype': 'Select', 'creation': '2010-04-13 13:47:58', 'doctype': 'DocField', 'oldfieldname': 'message_type', 'owner': 'Administrator', 'reqd': None, 'in_filter': None, 'print_hide': None, 'modified_by': 'saumil@webnotestech.com', 'label': 'Message Type', 'width': None, 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'Message', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL04641', 'idx': 2, 'default': None, 'colour': None, 'modified': '2010-08-08 15:03:43', 'parenttype': 'DocType', 'fieldname': 'message_type', 'fieldtype': 'Select', 'options': 'Enquiry\nFeedback\nComplaint\nSuggestion', 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': None, 'oldfieldtype': 'Text', 'creation': '2010-04-13 13:47:58', 'doctype': 'DocField', 'oldfieldname': 'details', 'owner': 'Administrator', 'reqd': None, 'in_filter': None, 'print_hide': None, 'modified_by': 'saumil@webnotestech.com', 'label': 'Details', 'width': None, 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'Message', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL04640', 'idx': 3, 'default': None, 'colour': None, 'modified': '2010-08-08 15:03:43', 'parenttype': 'DocType', 'fieldname': 'details', 'fieldtype': 'Text', 'options': None, 'report_hide': None, 'parentfield': 'fields'}]

View File

@ -1,307 +0,0 @@
# 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
#get list of unread messages
#------------------------------------
def get_unread_msg_lst(self,arg):
ret = {}
ret['ur_lst'] = convert_to_lists(sql("select t1.name from `tabMail` t1, `tabMail Participant Details` t2 where t2.participant_name = '%s' and t2.parent = t1.name and (t2.read_status = 'No' or t2.read_status is NULL) and (t2.delete_status = 'No' or t2.delete_status is NULL) and t1.last_updated_by != t2.participant_name" % arg))
return ret
# get list of email participants at the time of reply msg. This will give name of iwebnotes user and email id of non iwebnotes user if envolved in that email
#------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
def get_thread_details(self,arg):
arg = eval(arg)
ret = {}
to_list3 = []
ret['tl'] = convert_to_lists(sql("select t1.subject,t1.message, t1.owner, t1.message_date, t1.main_thread_id, t2.first_name, t2.file_list from `tabMail` t1, `tabProfile` t2 where t1.main_thread_id='%s' and t2.name=t1.owner" % arg['cur_msg_id']))
to_user_list = sql("select participant_name from `tabMail Participant Details` where participant_name != '%s' and parent = '%s'" % (arg['user_name'], arg['cur_msg_id']))
to_list1 = [x[0] for x in to_user_list]
non_member_dict = self.get_non_member_list(to_list1)
non_member_list = non_member_dict['non_erp_user']
for m in to_list1:
if m not in non_member_list:
to_list2 = sql("select first_name from `tabProfile` where name = '%s'" % (m))
to_list3.append(to_list2[0][0])
for y in non_member_list:
to_list3.append(y)
ret['to_list'] = to_list3
return ret
#validate message
#---------------------
def validate_message(self, msg, to_list = []):
ml = ['subject','message']
for m in ml:
if not msg.fields.get(m):
msgprint("error:To, Subject and Message are required. Please try again.")
raise Exception
#get list of emails which are not registered on that iwebnotes account
#----------------------------------------------------------------------------------
def get_non_member_list(self, arg):
to_list, ret, new_list, non_valid_lst, non_valid_lst_msg= arg, {}, [], [], ''
for m in to_list:
check_user = sql("select name from `tabProfile` where name = '%s'" % m)
check_user = check_user and check_user[0][0] or 'not_user'
if check_user == 'not_user':
if not validate_email_add(m):
non_valid_lst.append(m)
else:
new_list.append(m)
if non_valid_lst:
for x in non_valid_lst:
if non_valid_lst_msg == '' :
non_valid_lst_msg = x
else :
non_valid_lst_msg = non_valid_lst_msg + ', ' + x
msgprint("error:Incorrect email id format. Message can not be sent to following mentioned email-id(s)." + "\n" + "\n" + non_valid_lst_msg)
ret['non_erp_user'] = new_list
ret['non_valid_lst'] = non_valid_lst
return ret
#create message thread
#----------------------------------
def create_msg_thread(self, arg, to_list, new_msg):
arg = eval(arg)
msg_fld = {'message_date':nowdate(), 'owner':arg['user_name'], 'subject':arg['subject'], 'message':arg['message'], 'last_updated_on':nowdate(), 'last_updated_by':arg['user_name'], 'is_main_thread':new_msg and 'Yes' or 'No', 'to_user':new_msg and cstr(to_list) or '', 'from_user': new_msg and arg['user_name'] or '', 'previous_updated_by': new_msg and arg['user_name'] or ''}
msg = Document('Mail')
for f in msg_fld:
msg.fields[f]=msg_fld[f]
if new_msg:
self.validate_message(msg, to_list)
if not new_msg:
msg.main_thread_id = arg['message_id']
msg.save(new=1)
return msg.name
#add mail participants
#---------------------------
def add_mail_participants(self, participant, msg_id):
fields = {'participant_name': participant, 'parent':msg_id, 'parenttype':'Mail', 'parentfield':'mail_participant'}
child = Document('Mail Participant Details')
for f in fields:
child.fields[f]=fields[f]
child.save(new=1)
#send email notification to personal id
#-----------------------------------------------
def email_to_personal_id(self, email_arg, non_member_list):
message_subject =''
if email_arg['participant'] not in non_member_list:
r_full_nm = sql("select first_name from`tabProfile` where name = '%s'" % email_arg['participant'])
r_full_nm = r_full_nm and r_full_nm[0][0] or ''
if not(email_arg['participant'] == email_arg['sender']):
if email_arg['participant'] not in non_member_list:
self.notification_email_to_members(email_arg['participant'],r_full_nm,email_arg['sender'],email_arg['sender_nm'])
else :
message_subject = 'Message from ' + cstr(email_arg['sender_nm']) + '- '
if email_arg['new_msg']:
message_subject=message_subject+ cstr(email_arg['mail_sub'])
else:
message_subject=message_subject+ 'Re: '+cstr(email_arg['mail_sub'])
self.notification_email_to_non_members(email_arg['participant'], email_arg['sender'], email_arg['sender_nm'], message_subject, email_arg['mail_msg'])
#send new message
#----------------------------
def send_message(self,arg1):
arg = eval(arg1)
val, to_list1 = 'false', arg['to_list'].split(',')
new_list = [l.strip() for l in to_list1 if l.strip()]
non_member_dict = self.get_non_member_list(new_list)
non_member_list = non_member_dict['non_erp_user']
non_valid_lst = non_member_dict['non_valid_lst']
if len(new_list) > len(non_valid_lst) :
to_list = [m for m in new_list if m not in non_valid_lst]
to_list.append(arg['user_name'])
msg_id = self.create_msg_thread(arg1, to_list, 1)
sql("update `tabMail` set main_thread_id = '%s' where name = '%s'" % (msg_id, msg_id))
s_full_nm = sql("select first_name from`tabProfile` where name = '%s'" % arg['user_name'])
s_full_nm = s_full_nm and s_full_nm[0][0] or ''
for t in to_list:
self.add_mail_participants(t,msg_id)
val = 'true'
# email notification to personal email id
email_arg = {'participant':t, 'sender':arg['user_name'], 'sender_nm':s_full_nm, 'mail_sub':arg['subject'], 'mail_msg':arg['message'], 'new_msg':1}
self.email_to_personal_id(email_arg, non_member_list)
return cstr(val)
else :
msgprint("error:Please mention preper email-ids. Message can not be sent.");
#update main msg thread
#---------------------------------
def update_main_thread_msg(self, arg):
thread_msg = Document('Mail',arg['message_id'])
thread_msg.last_updated_on = nowdate()
if thread_msg.last_updated_by != session['user']:
thread_msg.previous_updated_by = thread_msg.last_updated_by
thread_msg.last_updated_by = arg['user_name']
thread_msg.save()
#send reply msg
#---------------------
def send_reply(self,arg1):
arg = eval(arg1)
val = 'false'
if not arg['message']:
msgprint("Please type some message")
raise Exception
msg_id = self.create_msg_thread(arg1, '', 0)
self.update_main_thread_msg(arg)
nm = sql("select name from `tabMail` where main_thread_id = '%s' and is_main_thread = 'Yes'" % arg['message_id'])
msg_nm = nm and nm[0][0] or ''
sql("update `tabMail Participant Details` set delete_status = 'No' where parent='%s'" % (msg_nm))
sql("update `tabMail Participant Details` set read_status = 'No' where parent='%s' and participant_name != '%s'" % (msg_nm, session['user']))
val = 'true'
p_nm = sql("select participant_name from `tabMail Participant Details` where parent='%s' and participant_name!='%s'"%(msg_nm, session['user']))
if p_nm:
p_nm_lst = [x[0] for x in p_nm]
non_member_dict = self.get_non_member_list(p_nm_lst)
non_member_list = non_member_dict['non_erp_user']
s_full_nm = sql("select first_name from`tabProfile` where name = '%s'" % arg['user_name'])
s_full_nm = s_full_nm and s_full_nm[0][0] or ''
for m in p_nm_lst:
# email notification to personal email id
email_arg = {'participant':m, 'sender':arg['user_name'], 'sender_nm':s_full_nm, 'mail_sub':arg['subject'], 'mail_msg':arg['message'], 'new_msg':0}
self.email_to_personal_id(email_arg, non_member_list)
return cstr(val)
#delete message
#----------------------
def delete_message(self, arg):
m_arg = arg.split('~~')
user_nm = m_arg[0]
msg_lst = m_arg[1].split(',')
msg_del = 'false'
for i in msg_lst:
sql("update `tabMail Participant Details` set delete_status = 'Yes' where parent='%s' and participant_name = '%s'" % (i, user_nm))
msg_del = 'true'
return cstr(msg_del)
# set read or unread status of message
#---------------------------------------------
def read_unread_message(self,arg):
arg = eval(arg);
sql("update `tabMail Participant Details` set read_status = '%s' where parent='%s' and participant_name = '%s'" % (arg['read'],arg['msg'], arg['user']))
# function for checking message is already read or not
#--------------------------------------------------------------
def check_read(self,arg):
arg = eval(arg);
chk_val=sql("select read_status from `tabMail Participant Details` where parent='%s' and participant_name = '%s'" % (arg['msg'], arg['user']))[0][0] or ''
if chk_val == '':
chk_val = 'blank'
return cstr(chk_val)
#list of autosuggested users for 'to list'
#-----------------------------------------------
def get_to_list(self, arg):
li = sql("select name, first_name from `tabProfile` where first_name like '%s%%' and name!='%s' and name!='Guest' limit 10" % (arg.strip(), session['user']))
li = [{'id':l[0], 'value':l[0], 'info':l[1]} for l in li]
return {'results':li}
# unread message count
#--------------------------
def get_unread_msg_count(self, arg):
ret = convert_to_lists(sql("select count(t1.name) from `tabMail` t1, `tabMail Participant Details` t2 where t2.participant_name = '%s' and t2.parent = t1.name and (t2.read_status = 'No' or t2.read_status is NULL) and (t2.delete_status = 'No' or t2.delete_status is NULL) and t1.last_updated_by != t2.participant_name" % arg))
if ret:
return cstr(ret[0][0])
else:
return cstr(0)
# email notification to personal email id of registered users
#--------------------------------------------------------------------
def notification_email_to_members(self, receiver_id, r_full_nm, sender_id, s_full_nm):
msg = """
<html>
<body>
Dear %s,<br><br>
You have received a new message from %s.<br>
To check the message, visit Inbox of erpnext.<br><br>
Stay connected using the link:<br><br>
<div><a href ='https://www.erpnext.com' target ='_blank'> https://www.erpnext.com</a></div><br><br>
Thank You,<br><br>
Administrator<br>
erpnext
</body>
</html>
""" % (r_full_nm, s_full_nm)
# send email
sendmail([receiver_id], sender = sender_id, msg=msg, subject='ERP - You have received a new message')
# email to non ERP member's personal id
#-------------------------------------------------------
def notification_email_to_non_members(self, receiver_id, sender_id, s_full_nm, message_subject, message):
msg = """
<html>
<body>
Hi,<br><br>
You have received a new message from %s via erpnext.<br><br>
Message:<br>
%s<br><br>
Not on erpnext? Sign up now! <br>
Stay connected using the link:<br><br>
<div><a href ='https://www.erpnext.com' target ='_blank'> https://www.erpnext.com</a></div><br><br>
Thank You,<br><br>
Administrator<br>
erpnext
</body>
</html>
""" % (s_full_nm, message)
# send email
sendmail([receiver_id], sender = sender_id, msg=msg, subject=message_subject)

View File

@ -1 +0,0 @@
[{'section_style': 'Simple', 'is_transaction_doc': None, 'creation': '2010-06-07 11:26:34', 'search_fields': None, 'module': 'Application Internal', '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': 1, 'allow_rename': None, 'smallicon': '', 'allow_attach': None, 'show_in_menu': None, 'max_attachments': None, 'version': 17, 'menu_index': None, 'docstatus': 0, 'allow_copy': None, 'istable': None, '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': 'saumil@webnotestech.com', 'document_type': '', 'name': 'Message Control', 'idx': None, 'hide_toolbar': None, 'colour': 'White:FFF', 'client_script': None, 'modified': '2010-10-04 14:20:37', 'server_code_error': ' ', 'name_case': '', 'parenttype': None, 'read_only_onload': None, 'server_code_core': None, 'server_code_compiled': None, 'parent_node': None, 'parentfield': None}]

View File

@ -1,25 +0,0 @@
# 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 set_module(self):
sql("update tabDocType set module=%s where name=%s", (self.doc.module, self.doc.doc_type))

View File

@ -1 +0,0 @@
[{'section_style': 'Simple', 'is_transaction_doc': None, 'creation': '2009-03-12 12:36:55', 'search_fields': None, 'module': 'Application Internal', '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': 1, 'allow_rename': None, 'smallicon': '', 'allow_attach': None, 'show_in_menu': 0, 'max_attachments': None, 'version': 4, 'menu_index': None, 'docstatus': 0, 'allow_copy': None, 'istable': None, 'description': None, 'parent': None, 'server_code': '', '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': 'Module Setter', 'idx': None, 'hide_toolbar': None, 'colour': 'White:FFF', 'client_script': '', '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}, {'cancel': None, 'amend': None, 'execute': None, 'modified_by': 'Administrator', 'name': 'PERM00143', 'parent': 'Module Setter', 'read': 1, 'create': 1, 'creation': '2009-03-12 12:36:55', 'modified': '2010-03-31 10:42:15', 'submit': None, 'doctype': 'DocPerm', 'write': 1, 'idx': 1, 'parenttype': 'DocType', 'role': 'Administrator', 'owner': 'Administrator', 'docstatus': 0, 'permlevel': 0, 'match': None, 'parentfield': 'permissions'}, {'no_copy': None, 'oldfieldtype': None, 'creation': '2009-03-12 12:36:55', 'doctype': 'DocField', 'oldfieldname': None, 'owner': 'Administrator', 'reqd': None, 'in_filter': None, 'print_hide': None, 'modified_by': 'Administrator', 'label': 'Doc Type', 'width': None, 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'Module Setter', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL01328', 'idx': 1, 'default': None, 'colour': None, 'modified': '2010-03-31 10:42:15', 'parenttype': 'DocType', 'fieldname': 'doc_type', 'fieldtype': 'Select', 'options': 'link:DocType', 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': None, 'oldfieldtype': None, 'creation': '2009-03-12 12:36:55', 'doctype': 'DocField', 'oldfieldname': None, 'owner': 'Administrator', 'reqd': None, 'in_filter': None, 'print_hide': None, 'modified_by': 'Administrator', 'label': 'Module', 'width': None, 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'Module Setter', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL01329', 'idx': 2, 'default': None, 'colour': None, 'modified': '2010-03-31 10:42:15', 'parenttype': 'DocType', 'fieldname': 'module', 'fieldtype': 'Select', 'options': 'link:Module Def', 'report_hide': None, 'parentfield': 'fields'}, {'no_copy': None, 'oldfieldtype': None, 'creation': '2009-03-12 12:36:55', 'doctype': 'DocField', 'oldfieldname': None, 'owner': 'Administrator', 'reqd': None, 'in_filter': None, 'print_hide': None, 'modified_by': 'Administrator', 'label': 'Set', 'width': None, 'trigger': None, 'depends_on': None, 'docstatus': 0, 'hidden': None, 'permlevel': 0, 'description': None, 'parent': 'Module Setter', 'search_index': None, 'allow_on_submit': None, 'icon': None, 'name': 'FL01330', 'idx': 3, 'default': None, 'colour': None, 'modified': '2010-03-31 10:42:15', 'parenttype': 'DocType', 'fieldname': None, 'fieldtype': 'Button', 'options': 'set_module', 'report_hide': None, 'parentfield': 'fields'}]

View File

@ -1,34 +0,0 @@
# 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
# get update on recent activities of module
# -----------------------------------------
def get_module_activity(self, args):
args = eval(args)
ret = {}
for tr in args['tr_list']:
cnt = sql("select ifnull(count(name),0) from `tab%s` where datediff(now(),creation) between 0 and 7"%(tr))
if cnt[0][0]:
ret[tr] = cnt
if ret:
return ret

View File

@ -1 +0,0 @@
[{'section_style': 'Simple', 'is_transaction_doc': None, 'creation': '2010-05-10 12:54:12', 'search_fields': None, 'module': 'Application Internal', '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': 1, 'allow_rename': None, 'smallicon': '', 'allow_attach': None, 'show_in_menu': None, 'max_attachments': None, 'version': 30, 'menu_index': None, 'docstatus': 0, 'allow_copy': None, 'istable': None, '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': '', 'name': 'Module Tip Control', 'idx': None, 'hide_toolbar': None, 'colour': 'White:FFF', 'client_script': None, 'modified': '2010-11-08 11:50:50', 'server_code_error': ' ', 'name_case': '', 'parenttype': None, 'read_only_onload': None, 'server_code_core': None, 'server_code_compiled': None, 'parent_node': None, 'parentfield': None}]

View File

@ -1,158 +0,0 @@
cur_frm.cscript.is_list = function(d) { return d.modules_or_list=='List' ? 1 : 0 }
cur_frm.cscript.is_modules = function(d) { return d.modules_or_list=='Modules' ? 1 : 0 }
cur_frm.cscript['Do Transfer'] = function(doc) {
al = getchildren('Transfer Account', doc.name, 'transfer_accounts');
ml = getchildren('Transfer Module', doc.name, 'transfer_modules');
sl = doc.selected_list.split(NEWLINE)
cur_frm.cscript.cancel_transfer = 0;
cur_frm.cscript.do_list = [];
// for each account
for(var ai = 0; ai < al.length; ai++) {
// if transfer
if(cint(al[ai].transfer)) {
// module
// ------
if(doc.modules_or_list == 'Modules') {
for(var mi = 0; mi < ml.length; mi++) {
if(ml[mi].transfer) {
var args = {server:al[ai].server, path:al[ai].path, pwd:al[ai].admin_password, act: al[ai].account, module:ml[mi].module, transfer_what:doc.transfer_what}
cur_frm.cscript.do_list.push(args);
}
}
}
// list
// ------
if(doc.modules_or_list == 'List') {
for(var si = 0; si < sl.length; si++) {
if(sl[si]){
var s = sl[si].split(',');
var args = {server:al[ai].server, path:al[ai].path, pwd:al[ai].admin_password, act: al[ai].account, dt: strip(s[0]), dn:strip(s[1]), transfer_what:doc.transfer_what}
cur_frm.cscript.do_list.push(args);}
}
}
}
}
locals[doc.doctype][doc.name].transfer_log = 'Transferring...'.bold();
refresh_field('transfer_log');
if(cur_frm.cscript.do_list.length)
cur_frm.cscript.do_next();
}
cur_frm.cscript.do_next = function() {
if(cur_frm.cscript.do_list.length){
var t = cur_frm.cscript.do_list[0];
// do transfer
locals[doc.doctype][doc.name].transfer_log += '<br>Transferring... Account:' + t.act + ':' + t.module + ', Record:'+t.dt + ',' + t.dn;
refresh_field('transfer_log');
$c_obj(make_doclist(doc.doctype, doc.name), 'do_transfer', docstring(t), cur_frm.cscript.ret_fn);
// remove from list
var tmp = [];
for(var i=1;i<cur_frm.cscript.do_list.length;i++)tmp.push(cur_frm.cscript.do_list[i]);
cur_frm.cscript.do_list = tmp;
}
}
cur_frm.cscript.ret_fn = function(r,rt) {
locals[doc.doctype][doc.name].transfer_log += '<br>' + r.message;
refresh_field('transfer_log');
if(cur_frm.cscript.do_list.length <= 0) {
locals[doc.doctype][doc.name].transfer_log += '<br><b>Completed!</b>';
refresh_field('transfer_log');
return;
}
if(!cur_frm.cscript.cancel_transfer)
cur_frm.cscript.do_next();
else {
locals[doc.doctype][doc.name].transfer_log += '<br><b>Cancelled!</b>';
refresh_field('transfer_log');
}
}
cur_frm.cscript['Cancel Transfer'] = function(doc,dt,dn) {
cur_frm.cscript.cancel_transfer = 1;
}
/*-------------------------- running remote script in account selected-----------------------*/
cur_frm.cscript['Update Accounts'] = function(doc) {
var al = getchildren('Transfer Account', doc.name, 'transfer_accounts');
cur_frm.cscript.update_list = [];
cur_frm.cscript.cancel_updates = 0;
for(var ai = 0; ai < al.length; ai++) {
if(cint(al[ai].transfer)){
var args = {server:al[ai].server, path:al[ai].path, pwd:al[ai].admin_password, act: al[ai].account};
cur_frm.cscript.update_list.push(args);
}
}
locals[doc.doctype][doc.name].transfer_log = 'Updating...'.bold();
refresh_field('transfer_log');
if(cur_frm.cscript.update_list.length)
cur_frm.cscript.update_accounts();
}
cur_frm.cscript.update_accounts = function(){
if(cur_frm.cscript.update_list.length){
var t = cur_frm.cscript.update_list[0];
// update account
locals[doc.doctype][doc.name].transfer_log += '<br>Updating... Account:' + t.act;
refresh_field('transfer_log');
$c_obj(make_doclist(doc.doctype, doc.name), 'execute_remote_code', docstring(t), cur_frm.cscript.accounts_updated);
// remove from list
var tmp = [];
for(var i=1;i<cur_frm.cscript.update_list.length;i++)tmp.push(cur_frm.cscript.update_list[i]);
cur_frm.cscript.update_list = tmp;
}
}
cur_frm.cscript.accounts_updated = function(r,rt){
locals[doc.doctype][doc.name].transfer_log += '<br>' + r.message;
refresh_field('transfer_log');
if(cur_frm.cscript.update_list.length <= 0) {
locals[doc.doctype][doc.name].transfer_log += '<br><b>Completed!</b>';
refresh_field('transfer_log');
return;
}
if(!cur_frm.cscript.cancel_updates)
cur_frm.cscript.update_accounts();
else {
locals[doc.doctype][doc.name].transfer_log += '<br><b>Cancelled!</b>';
refresh_field('transfer_log');
}
}
cur_frm.cscript['Cancel Updates'] = function(doc,dt,dn) {
cur_frm.cscript.cancel_updates = 1;
}

View File

@ -1,159 +0,0 @@
# 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
# Modules
# -----------
def get_module_items(self, mod, only_dt=0):
dl = []
if only_dt:
transfer_types = ['DocType']
else:
transfer_types = ['Role', 'Print Format','DocType', 'Page', 'DocType Mapper', 'Search Criteria','Menu Item']
dl = ['Module Def,'+mod]
for dt in transfer_types:
try:
dl2 = sql('select name from `tab%s` where module="%s"' % (dt,mod))
dl += [(dt+','+e[0]) for e in dl2]
except:
pass
if not only_dt:
dl1 = sql('select doctype_list from `tabModule Def` where name=%s', mod)
dl += dl1[0][0].split("\n")
# build finally
dl = [e.split(',') for e in dl]
dl = [[e[0].strip(), e[1].strip()] for e in dl] # remove blanks
return dl
def do_transfer(self, arg):
import datetime
arg = eval(arg)
# server, path, act, pwd, dt, dn, module
standard_menu_items = "" # to store all standard menu items in remote account
super_doclist = [] # to make the list of all doctypes to transfer and then send together
modified_time = ''
# get dt list
# -----------
dt_only = 1
if arg['transfer_what']=='Everything':
dt_only = 0
if arg.get('module'):
dtl = self.get_module_items(arg['module'], dt_only)
else:
dtl = [[arg['dt'], arg['dn']]]
# login to target
# ---------------
rem_serv = FrameworkServer(arg.get('server'),arg.get('path'),"Administrator",arg.get('pwd'),arg.get('act', ''))
msg = []
for dt in dtl:
transfer = 1
# check version
# -------------
if dt[0]=='DocType':
get_modified_time = '''msgprint(sql("SELECT modified FROM `tab%s` WHERE name = '%s'"))''' %(dt[0],dt[1])
ret = rem_serv.runserverobj('Control Panel','Control Panel','execute_test',get_modified_time)
if ret.get('exc'):
msg.append(ret['exc'])
elif eval(ret.get('server_messages')): # get modified time
modified_time = eval(ret.get('server_messages'))
for t in modified_time:
original_date = sql("select modified from `tab%s` where name = '%s'"%(dt[0],dt[1]))
if cstr(t[0])==cstr(original_date[0][0]):
transfer = 0
msg.append("DocType '%s' is already transferred"%(dt[1]))
else:
transfer = 1
# transfer menu items
# -------------------------
if dt[0]=='Menu Item' or dt[0]=='Print Format' or dt[0]=='Search Criteria' or dt[0]=='Page':
# get name and standard field of all menu items
get_standard_menu_items = '''msgprint(sql("SELECT name, standard, modified FROM `tab%s` WHERE name = '%s'"))''' %(dt[0],dt[1])
ret = rem_serv.runserverobj('Control Panel','Control Panel','execute_test',get_standard_menu_items)
if ret.get('exc'):
msg.append(ret['exc'])
elif eval(ret.get('server_messages')): # checks for standard menu items
standard_menu_items = eval(ret.get('server_messages'))
for sml in standard_menu_items:
original_date = sql("select modified from `tab%s` where name = '%s'"%(dt[0],sml[0]))
if sml[1] == 'Yes' and cmp(sml[2],original_date[0][0]) != 0:
super_doclist.append(self.transfer(dt[0], sml[0]))
else:
msg.append(dt[0]+" : "+dt[1]+" is customized or already transferred.")
transfer = 0
elif not eval(ret.get('server_messages')): # for first time entry
transfer = 1
if transfer != 0:
super_doclist.append(self.transfer(dt[0], dt[1]))
if super_doclist:
myargs = { 'ovr': 1, 'ignore': 1, 'onupdate': 1, 'super_doclist': {'super_doclist':super_doclist} }
res = rem_serv.http_get_response(method = 'acctr_remote_setdoclist', args = myargs)
data = eval(res.read())
msg.append(data['message'])
if data.has_key('exc'):
msg.append(data['exc'])
return '<br>'.join(msg)
def transfer(self, dt, dn):
tl = getdoc(dt, dn)
# clean up
no_export_fields = ('creation','modified_by','owner','server_code_compiled','recent_documents','oldfieldtype','oldfieldname','superclass','ss_colourkey','has_monitors','onupdate','permtype','no_copy', 'print_hide','transaction_safe','setup_test')
for d in tl:
for f in no_export_fields:
if d.fields.has_key(f): del d.fields[f]
return [d.fields for d in tl]
# run remote script
# ----------------------------------------
def execute_remote_code(self, arg):
msg = []
arg = eval(arg)
remote_server = FrameworkServer(arg.get('server'),arg.get('path'),"Administrator",arg.get('pwd'),arg.get('act', ''))
ret = remote_server.runserverobj('Control Panel','Control Panel','execute_test',self.doc.remote_code)
if ret.get('exc'):
msg.append(ret['exc'])
else:
if ret.get('server_messages'): # this returns msg in msgprints from remote account
msgprint(arg.get('act')+':')
msgprint(ret['server_messages'])
msg.append(arg.get('act')+" updated")
return '<br>'.join(msg)

File diff suppressed because one or more lines are too long

View File

@ -1,40 +0,0 @@
# 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 get_date_diff(self):
if session['user'] != 'Administrator' and session['user'] != 'Demo':
last_pwd_date = sql("select password_last_updated from tabProfile where name=%s",session['user'])[0][0] or ''
if cstr(last_pwd_date) == '':
sql("update tabProfile set password_last_updated = '%s' where name='%s'"% (nowdate(),session['user']))
else:
date_diff = (getdate(nowdate()) -last_pwd_date).days
return date_diff
def get_cur_pwd(self):
if session['user'] != 'Administrator' and session['user'] != 'Demo':
cur_pwd = sql("select password from tabProfile where name=%s",session['user'])[0][0] or ''
return cur_pwd
def reset_password(self,pwd):
sql("update tabProfile set password= '%s',password_last_updated='%s' where name = '%s'" % (pwd,nowdate(),session['user']))

View File

@ -1 +0,0 @@
[{'section_style': 'Tray', 'is_transaction_doc': None, 'creation': '2009-05-25 17:17:29', 'search_fields': None, 'module': 'Application Internal', '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': 1, 'allow_rename': None, 'smallicon': '', 'allow_attach': None, 'show_in_menu': 0, 'max_attachments': None, 'version': 7, 'menu_index': None, 'docstatus': 0, 'allow_copy': None, 'istable': None, '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': 'Password Control', '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}]

View File

@ -1 +0,0 @@
[{'section_style': 'Simple', 'is_transaction_doc': None, 'creation': '2010-12-15 09:56:48', 'search_fields': None, 'module': 'Application Internal', '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': 1, 'allow_rename': None, 'smallicon': None, 'allow_attach': None, 'show_in_menu': None, 'max_attachments': None, 'version': 6, 'menu_index': None, 'docstatus': 0, 'allow_copy': None, 'istable': None, 'description': None, 'parent': None, 'server_code': None, 'allow_trash': None, 'allow_print': None, 'autoname': None, 'client_script_core': '', 'client_string': None, 'use_template': None, 'modified_by': 'Administrator', 'document_type': '', 'name': 'Patch Util', 'idx': None, 'hide_toolbar': None, 'colour': 'White:FFF', 'client_script': None, 'modified': '2010-12-24 13:28:08', 'server_code_error': ' ', 'name_case': '', 'parenttype': None, 'read_only_onload': None, 'server_code_core': None, 'server_code_compiled': None, 'parent_node': None, 'parentfield': None}]

View File

@ -1,78 +0,0 @@
// Global dictionary of next steps for doctypes
// ============================================
pscript.payroll_tip_dict = {'Employee':['Payroll Rule', 'Salary Structure'], 'Salary Structure':['IT Checklist', 'Salary Slip']};
// Set tips depending on conditions
// ================================
cur_frm.cscript.get_tips = function(doc, cdt, cdn)
{
var next_step_list = pscript.payroll_tip_dict[cur_frm.doctype];
// from is shown in print format
if(!cur_frm.editable){
cur_frm.set_tip("Click on the <div style='font-weight:bold; display:inline'>Edit</div> button above to edit this " + cur_frm.doctype + ".");
}
// form is not in print format
if(cur_frm.editable){
// new doc
if(doc.__islocal){
if(doc.status=='Cancelled' || doc.amended_from)
cur_frm.set_tip("You can now make changes in this " + cur_frm.doctype + " and save it by clicking on the <div style='font-weight:bold; display:inline'>Save</div> button in the above toolbar.");
// doc is completely new
else{
// For Salary Slip
if(cur_frm.doctype=='Salary Slip'){
cur_frm.set_tip("To create " + cur_frm.doctype + " please enter all the details and save it by clicking on the <div style='font-weight:bold; display:inline'>Save</div> button in the above toolbar.");
cur_frm.append_tip("To calculate earnings and deductions click on <div style='font-weight:bold; display:inline'>Process Payroll</div> button after saving the form");
}
// For IT Checklist
else if(cur_frm.doctype=='IT Checklist'){
cur_frm.set_tip("To create " + cur_frm.doctype + " please enter all the details and click on <div style='font-weight:bold; display:inline'>Done</div> button below to fetch all the details in the remaining tabs.");
cur_frm.append_tip("To calculate taxes, please enter the actual amount in all the tables in the remaining tabs and click on <div style='font-weight:bold; display:inline'>Calculate</div> button in the <div style='font-weight:bold; display:inline'>Total Taxable Income</div> tab.");
}
// For Others
else
cur_frm.set_tip("To create " + cur_frm.doctype + " please start by entering all the mandatory fields(marked <div style='color:Red; display:inline'> Red</div>).<br><br> You can then save this form by clicking on the <div style='font-weight:bold; display:inline'>Save</div> button in the above toolbar.");
}
}
// doc exists
else if(!doc.__islocal){
// execute when doc is saved
if(doc.docstatus==0 && cur_frm.doctype=='Salary Slip'){
cur_frm.set_tip("You have saved your " + cur_frm.doctype + ". To calculate earnings and deductions click on <div style='font-weight:bold; display:inline'>Process Payroll</div> button below.");
cur_frm.append_tip("You can make this draft permanent by clicking on <div style='font-weight:bold; display:inline'>Submit</div> button above.")
}
// execute if doc is submitted
else if(doc.docstatus==1 && cur_frm.doctype=='Salary Slip'){
cur_frm.set_tip("You have submitted this " + cur_frm.doctype + ".");
cur_frm.append_tip("(To make changes in this "+ cur_frm.doctype + " click on the <div style='font-weight:bold; display:inline'>Cancel</div> button above.)");
}
// execute if doc has only save permission
else if(doc.docstatus==0 && (cur_frm.doctype=='IT Checklist' || cur_frm.doctype=='Salary Structure' || cur_frm.doctype=='Employee')){
cur_frm.set_tip("You have saved this " + cur_frm.doctype + ".");
for(var i=0; i<next_step_list.length; i++){
if(i==0) cur_frm.append_tip("To proceed select the Next Steps tab below and click the button to create " + next_step_list[i] +".");
else cur_frm.append_tip("You can also create a " + next_step_list[i] + " for this " + cur_frm.doctype + ".");
}
}
// execute when doc is amended
else if(doc.docstatus==2){
cur_frm.set_tip("To make this " + cur_frm.doctype + " editable click on the <div style='font-weight:bold; display:inline'>Amend</div> button above.");
}
}
}
}
// Executes when doc is edit status of doc is changed
// ==================================================
cur_frm.cscript.edit_status_changed = function(doc, cdt, cdn){
cur_frm.cscript.get_tips();
}

View File

@ -1 +0,0 @@
[{'section_style': 'Simple', 'is_transaction_doc': None, 'creation': '2010-05-28 14:31:18', 'search_fields': None, 'module': 'Application Internal', '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': 1, 'allow_rename': None, 'smallicon': None, 'allow_attach': None, 'show_in_menu': None, 'max_attachments': None, 'version': 9, 'menu_index': None, 'docstatus': 0, 'allow_copy': None, 'istable': None, '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': 'harshada@webnotestech.com', 'document_type': '', 'name': 'Payroll Tips Common', 'idx': None, 'hide_toolbar': None, 'colour': 'White:FFF', 'client_script': None, 'modified': '2010-11-03 10:13:58', 'server_code_error': ' ', 'name_case': '', 'parenttype': None, 'read_only_onload': None, 'server_code_core': None, 'server_code_compiled': None, 'parent_node': None, 'parentfield': None}]

View File

@ -1 +0,0 @@
[{'section_style': 'Simple', 'is_transaction_doc': None, 'creation': '2010-05-31 11:03:13', 'search_fields': None, 'module': 'Application Internal', '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': 1, 'allow_rename': None, 'smallicon': None, 'allow_attach': None, 'show_in_menu': None, 'max_attachments': None, 'version': 37, 'menu_index': None, 'docstatus': 0, 'allow_copy': None, 'istable': None, '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': 'Production Tips Common', '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}]

View File

@ -1,55 +0,0 @@
[
{
'allow_attach': None,
'allow_copy': None,
'allow_email': None,
'allow_print': None,
'allow_rename': None,
'allow_trash': None,
'autoname': None,
'change_log': None,
'client_script': None,
'client_script_core': None,
'client_string': None,
'colour': 'White:FFF',
'creation': '2009-05-29 12:19:21',
'description': None,
'docstatus': 0,
'doctype': 'DocType',
'document_type': None,
'dt_template': None,
'hide_heading': None,
'hide_toolbar': None,
'idx': None,
'in_create': None,
'in_dialog': None,
'is_transaction_doc': None,
'issingle': 1,
'istable': None,
'max_attachments': None,
'menu_index': None,
'modified': '2010-11-03 11:03:11',
'modified_by': 'Administrator',
'module': 'Application Internal',
'name': 'Profile Control',
'name_case': None,
'owner': 'Administrator',
'parent': None,
'parent_node': None,
'parentfield': None,
'parenttype': None,
'print_outline': None,
'read_only': None,
'read_only_onload': None,
'search_fields': None,
'section_style': 'Simple',
'server_code': None,
'server_code_compiled': None,
'server_code_core': None,
'server_code_error': '<pre style="text-align: left;"></pre>',
'show_in_menu': 0,
'smallicon': None,
'use_template': None,
'version': 12
}
]

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More