diff --git a/accounts/doctype/form_16a/form_16a.txt b/accounts/doctype/form_16a/form_16a.txt index 96ebb190cc..17164bb8d4 100644 --- a/accounts/doctype/form_16a/form_16a.txt +++ b/accounts/doctype/form_16a/form_16a.txt @@ -1,437 +1,344 @@ -# DocType, Form 16A [ - - # These values are common in all dictionaries - { - 'creation': '2012-03-27 14:35:41', - 'docstatus': 0, - 'modified': '2012-03-27 14:35:41', - 'modified_by': u'Administrator', - 'owner': u'Administrator' - }, - - # These values are common for all DocType - { - '_last_update': u'1308123438', - 'colour': u'White:FFF', - 'doctype': 'DocType', - 'in_create': 0, - 'module': u'Accounts', - 'name': '__common__', - 'section_style': u'Simple', - 'server_code_error': u' ', - 'show_in_menu': 0, - 'version': 75 - }, - - # These values are common for all DocField - { - 'doctype': u'DocField', - 'name': '__common__', - 'parent': u'Form 16A', - 'parentfield': u'fields', - 'parenttype': u'DocType' - }, - - # These values are common for all DocPerm - { - 'doctype': u'DocPerm', - 'name': '__common__', - 'parent': u'Form 16A', - 'parentfield': u'permissions', - 'parenttype': u'DocType', - 'read': 1 - }, - - # DocType, Form 16A - { - 'doctype': 'DocType', - 'name': u'Form 16A' - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - 'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'Accounts Manager', - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 1, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Accounts Manager', - 'submit': 0, - 'write': 1 - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - 'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'Accounts User', - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 1, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Accounts User', - 'submit': 0, - 'write': 1 - }, - - # DocPerm - { - 'create': 1, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'System Manager', - 'write': 1 - }, - - # DocPerm - { - 'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'System Manager' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'basic_info', - 'fieldtype': u'Section Break', - 'label': u'Basic Info', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break0', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'from_date', - 'fieldtype': u'Date', - 'label': u'From Date', - 'oldfieldname': u'from_date', - 'oldfieldtype': u'Date', - 'permlevel': 0, - 'reqd': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'to_date', - 'fieldtype': u'Date', - 'label': u'To Date', - 'oldfieldname': u'to_date', - 'oldfieldtype': u'Date', - 'permlevel': 0, - 'reqd': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'tds_category', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'TDS Category', - 'oldfieldname': u'tds_category', - 'oldfieldtype': u'Link', - 'options': u'TDS Category', - 'permlevel': 0, - 'reqd': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'party_name', - 'fieldtype': u'Link', - 'hidden': 0, - 'in_filter': 1, - 'label': u'Party Name', - 'oldfieldname': u'party_name', - 'oldfieldtype': u'Link', - 'options': u'Account', - 'permlevel': 0, - 'reqd': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'party_address', - 'fieldtype': u'Small Text', - 'label': u'Address', - 'oldfieldname': u'party_address', - 'oldfieldtype': u'Small Text', - 'permlevel': 1, - 'reqd': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'pan_number', - 'fieldtype': u'Data', - 'hidden': 0, - 'label': u'PAN No', - 'oldfieldname': u'pan_number', - 'oldfieldtype': u'Data', - 'permlevel': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break1', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'fiscal_year', - 'fieldtype': u'Select', - 'label': u'Fiscal Year', - 'oldfieldname': u'fiscal_year', - 'oldfieldtype': u'Select', - 'options': u'link:Fiscal Year', - 'permlevel': 0, - 'reqd': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'company', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Company ', - 'oldfieldname': u'company', - 'oldfieldtype': u'Link', - 'options': u'Company', - 'permlevel': 0, - 'reqd': 1, - 'search_index': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'company_address', - 'fieldtype': u'Small Text', - 'label': u'Company Address', - 'oldfieldname': u'company_address', - 'oldfieldtype': u'Small Text', - 'permlevel': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'registration_details', - 'fieldtype': u'Small Text', - 'label': u'Registration Details', - 'oldfieldname': u'registration_details', - 'oldfieldtype': u'Small Text', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'return_details', - 'fieldtype': u'Section Break', - 'label': u'Return Details', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'get_return_details', - 'fieldtype': u'Button', - 'label': u'Get Return Details', - 'oldfieldtype': u'Button', - 'options': u'get_return_ack_details', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'form_16A_ack_details', - 'fieldtype': u'Table', - 'label': u'Form 16A Ack Details', - 'oldfieldname': u'form_16A_ack_details', - 'oldfieldtype': u'Table', - 'options': u'Form 16A Ack Detail', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'payment_details', - 'fieldtype': u'Section Break', - 'label': u'Payment Details', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'get_tds', - 'fieldtype': u'Button', - 'label': u'Get TDS', - 'oldfieldtype': u'Button', - 'options': u'get_tds', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'form_16A_tax_details', - 'fieldtype': u'Table', - 'label': u'Tax Details', - 'oldfieldname': u'form_16A_tax_details', - 'oldfieldtype': u'Table', - 'options': u'Form 16A Tax Detail', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'total_amount', - 'fieldtype': u'Currency', - 'label': u'Total Amount', - 'oldfieldname': u'total_amount', - 'oldfieldtype': u'Currency', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'in_words', - 'fieldtype': u'Data', - 'label': u'In Words', - 'permlevel': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'section_break0', - 'fieldtype': u'Section Break', - 'oldfieldtype': u'Section Break', - 'options': u'Simple', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break2', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'place', - 'fieldtype': u'Data', - 'label': u'Place', - 'oldfieldname': u'place', - 'oldfieldtype': u'Data', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'dt', - 'fieldtype': u'Date', - 'label': u'Date', - 'oldfieldname': u'dt', - 'oldfieldtype': u'Date', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break3', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'full_name', - 'fieldtype': u'Data', - 'label': u'Full Name', - 'oldfieldname': u'full_name', - 'oldfieldtype': u'Data', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'designation', - 'fieldtype': u'Data', - 'label': u'Designation', - 'oldfieldname': u'designation', - 'oldfieldtype': u'Data', - 'permlevel': 0 - } -] + { + "owner": "Administrator", + "docstatus": 0, + "creation": "2012-07-03 13:29:51", + "modified_by": "Administrator", + "modified": "2012-03-27 14:35:41" + }, + { + "in_create": 0, + "doctype": "DocType", + "module": "Accounts", + "name": "__common__" + }, + { + "name": "__common__", + "parent": "Form 16A", + "doctype": "DocField", + "parenttype": "DocType", + "parentfield": "fields" + }, + { + "name": "__common__", + "parent": "Form 16A", + "read": 1, + "doctype": "DocPerm", + "parenttype": "DocType", + "parentfield": "permissions" + }, + { + "name": "Form 16A", + "doctype": "DocType" + }, + { + "oldfieldtype": "Column Break", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break0", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "oldfieldtype": "Date", + "doctype": "DocField", + "label": "From Date", + "oldfieldname": "from_date", + "fieldname": "from_date", + "fieldtype": "Date", + "reqd": 1, + "permlevel": 0 + }, + { + "oldfieldtype": "Date", + "doctype": "DocField", + "label": "To Date", + "oldfieldname": "to_date", + "trigger": "Client", + "fieldname": "to_date", + "fieldtype": "Date", + "reqd": 1, + "permlevel": 0 + }, + { + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "TDS Category", + "oldfieldname": "tds_category", + "options": "TDS Category", + "fieldname": "tds_category", + "fieldtype": "Link", + "reqd": 1, + "permlevel": 0, + "in_filter": 1 + }, + { + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Party Name", + "oldfieldname": "party_name", + "permlevel": 0, + "trigger": "Client", + "fieldname": "party_name", + "fieldtype": "Link", + "reqd": 1, + "hidden": 0, + "options": "Account", + "in_filter": 1 + }, + { + "oldfieldtype": "Small Text", + "doctype": "DocField", + "label": "Address", + "oldfieldname": "party_address", + "fieldname": "party_address", + "fieldtype": "Small Text", + "reqd": 0, + "permlevel": 1 + }, + { + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "PAN No", + "oldfieldname": "pan_number", + "fieldname": "pan_number", + "fieldtype": "Data", + "hidden": 0, + "permlevel": 1 + }, + { + "oldfieldtype": "Column Break", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break1", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "oldfieldtype": "Select", + "doctype": "DocField", + "label": "Fiscal Year", + "oldfieldname": "fiscal_year", + "options": "link:Fiscal Year", + "fieldname": "fiscal_year", + "fieldtype": "Select", + "reqd": 1, + "permlevel": 0 + }, + { + "oldfieldtype": "Link", + "doctype": "DocField", + "label": "Company ", + "oldfieldname": "company", + "options": "Company", + "fieldname": "company", + "fieldtype": "Link", + "search_index": 1, + "reqd": 1, + "permlevel": 0, + "in_filter": 1 + }, + { + "oldfieldtype": "Small Text", + "doctype": "DocField", + "label": "Company Address", + "oldfieldname": "company_address", + "fieldname": "company_address", + "fieldtype": "Small Text", + "permlevel": 1 + }, + { + "oldfieldtype": "Small Text", + "doctype": "DocField", + "label": "Registration Details", + "oldfieldname": "registration_details", + "fieldname": "registration_details", + "fieldtype": "Small Text", + "permlevel": 0 + }, + { + "oldfieldtype": "Section Break", + "doctype": "DocField", + "label": "Return Details", + "fieldname": "return_details", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "oldfieldtype": "Button", + "doctype": "DocField", + "label": "Get Return Details", + "options": "get_return_ack_details", + "fieldname": "get_return_details", + "fieldtype": "Button", + "permlevel": 0 + }, + { + "oldfieldtype": "Table", + "doctype": "DocField", + "label": "Form 16A Ack Details", + "oldfieldname": "form_16A_ack_details", + "options": "Form 16A Ack Detail", + "fieldname": "form_16A_ack_details", + "fieldtype": "Table", + "permlevel": 0 + }, + { + "oldfieldtype": "Section Break", + "doctype": "DocField", + "label": "Payment Details", + "fieldname": "payment_details", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "oldfieldtype": "Button", + "doctype": "DocField", + "label": "Get TDS", + "options": "get_tds", + "fieldname": "get_tds", + "fieldtype": "Button", + "permlevel": 0 + }, + { + "oldfieldtype": "Table", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Tax Details", + "oldfieldname": "form_16A_tax_details", + "options": "Form 16A Tax Detail", + "fieldname": "form_16A_tax_details", + "fieldtype": "Table", + "permlevel": 0 + }, + { + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Total Amount", + "oldfieldname": "total_amount", + "fieldname": "total_amount", + "fieldtype": "Currency", + "permlevel": 0 + }, + { + "doctype": "DocField", + "label": "In Words", + "fieldname": "in_words", + "fieldtype": "Data", + "permlevel": 1 + }, + { + "oldfieldtype": "Section Break", + "doctype": "DocField", + "options": "Simple", + "fieldname": "section_break0", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "oldfieldtype": "Column Break", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break2", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "Place", + "oldfieldname": "place", + "fieldname": "place", + "fieldtype": "Data", + "permlevel": 0 + }, + { + "oldfieldtype": "Date", + "doctype": "DocField", + "label": "Date", + "oldfieldname": "dt", + "fieldname": "dt", + "fieldtype": "Date", + "permlevel": 0 + }, + { + "oldfieldtype": "Column Break", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break3", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "Full Name", + "oldfieldname": "full_name", + "fieldname": "full_name", + "fieldtype": "Data", + "permlevel": 0 + }, + { + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "Designation", + "oldfieldname": "designation", + "fieldname": "designation", + "fieldtype": "Data", + "permlevel": 0 + }, + { + "amend": 0, + "create": 0, + "doctype": "DocPerm", + "submit": 0, + "write": 0, + "role": "Accounts Manager", + "cancel": 0, + "permlevel": 1 + }, + { + "amend": 0, + "create": 1, + "doctype": "DocPerm", + "submit": 0, + "write": 1, + "role": "Accounts Manager", + "cancel": 0, + "permlevel": 0 + }, + { + "amend": 0, + "create": 0, + "doctype": "DocPerm", + "submit": 0, + "write": 0, + "role": "Accounts User", + "cancel": 0, + "permlevel": 1 + }, + { + "amend": 0, + "create": 1, + "doctype": "DocPerm", + "submit": 0, + "write": 1, + "role": "Accounts User", + "cancel": 0, + "permlevel": 0 + }, + { + "create": 1, + "doctype": "DocPerm", + "write": 1, + "role": "System Manager", + "permlevel": 0 + }, + { + "doctype": "DocPerm", + "role": "System Manager", + "permlevel": 1 + } +] \ No newline at end of file diff --git a/accounts/doctype/journal_voucher/journal_voucher.txt b/accounts/doctype/journal_voucher/journal_voucher.txt index 7c1fa78dbf..1479a2e486 100644 --- a/accounts/doctype/journal_voucher/journal_voucher.txt +++ b/accounts/doctype/journal_voucher/journal_voucher.txt @@ -1,819 +1,676 @@ -# DocType, Journal Voucher [ - - # These values are common in all dictionaries - { - u'creation': '2012-10-02 18:51:46', - u'docstatus': 0, - u'modified': '2012-10-15 12:38:42', - u'modified_by': u'Administrator', - u'owner': u'Administrator' - }, - - # These values are common for all DocType - { - '_last_update': u'1311251040', - 'colour': u'White:FFF', - 'default_print_format': u'Standard', - u'doctype': u'DocType', - 'is_submittable': 1, - 'module': u'Accounts', - u'name': u'__common__', - 'read_only_onload': 1, - 'search_fields': u'voucher_type,posting_date, due_date, cheque_no', - 'section_style': u'Tabbed', - 'server_code_error': u' ', - 'show_in_menu': 0, - 'subject': u' ', - 'tag_fields': u'voucher_type', - 'version': 1 - }, - - # These values are common for all DocField - { - u'doctype': u'DocField', - u'name': u'__common__', - 'parent': u'Journal Voucher', - 'parentfield': u'fields', - 'parenttype': u'DocType' - }, - - # These values are common for all DocPerm - { - u'doctype': u'DocPerm', - u'name': u'__common__', - 'parent': u'Journal Voucher', - 'parentfield': u'permissions', - 'parenttype': u'DocType', - 'read': 1 - }, - - # DocType, Journal Voucher - { - u'doctype': u'DocType', - u'name': u'Journal Voucher' - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'basic_info', - 'fieldtype': u'Section Break', - 'label': u'Basic Info', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'column_break0', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'To manage multiple series please go to Setup > Manage Series', - u'doctype': u'DocField', - 'fieldname': u'naming_series', - 'fieldtype': u'Select', - 'label': u'Series', - 'no_copy': 1, - 'oldfieldname': u'naming_series', - 'oldfieldtype': u'Select', - 'options': u'JV', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'voucher_type', - 'fieldtype': u'Select', - 'in_filter': 1, - 'label': u'Voucher Type', - 'oldfieldname': u'voucher_type', - 'oldfieldtype': u'Select', - 'options': u'\nJournal Entry\nBank Voucher\nCash Voucher\nCredit Card Voucher\nDebit Note\nCredit Note\nContra Voucher\nExcise Voucher\nWrite Off Voucher', - 'permlevel': 0, - 'print_hide': 0, - 'search_index': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'column_break1', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'description': u'The date at which current entry will get or has actually executed.', - u'doctype': u'DocField', - 'fieldname': u'posting_date', - 'fieldtype': u'Date', - 'in_filter': 1, - 'label': u'Posting Date', - 'no_copy': 1, - 'oldfieldname': u'posting_date', - 'oldfieldtype': u'Date', - 'permlevel': 0, - 'reqd': 1, - 'search_index': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'2_add_edit_gl_entries', - 'fieldtype': u'Section Break', - 'label': u'Journal Entries', - 'oldfieldtype': u'Section Break', - 'options': u'Simple', - 'permlevel': 0 - }, - - # DocField - { - 'allow_on_submit': 1, - u'doctype': u'DocField', - 'fieldname': u'entries', - 'fieldtype': u'Table', - 'label': u'Entries', - 'oldfieldname': u'entries', - 'oldfieldtype': u'Table', - 'options': u'Journal Voucher Detail', - 'permlevel': 0, - 'print_hide': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'section_break99', - 'fieldtype': u'Section Break', - 'options': u'Simple', - 'permlevel': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'total_debit', - 'fieldtype': u'Currency', - 'in_filter': 1, - 'label': u'Total Debit', - 'no_copy': 1, - 'oldfieldname': u'total_debit', - 'oldfieldtype': u'Currency', - 'permlevel': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'total_credit', - 'fieldtype': u'Currency', - 'in_filter': 1, - 'label': u'Total Credit', - 'no_copy': 1, - 'oldfieldname': u'total_credit', - 'oldfieldtype': u'Currency', - 'permlevel': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'column_break99', - 'fieldtype': u'Column Break', - 'permlevel': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'difference', - 'fieldtype': u'Currency', - 'label': u'Difference', - 'no_copy': 1, - 'oldfieldname': u'difference', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'get_balance', - 'fieldtype': u'Button', - 'label': u'Make Difference Entry', - 'oldfieldtype': u'Button', - 'permlevel': 0, - 'trigger': u'Client' - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'reference', - 'fieldtype': u'Section Break', - 'label': u'Reference', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'eg. Cheque Number', - u'doctype': u'DocField', - 'fieldname': u'cheque_no', - 'fieldtype': u'Data', - 'in_filter': 1, - 'label': u'Reference Number', - 'no_copy': 1, - 'oldfieldname': u'cheque_no', - 'oldfieldtype': u'Data', - 'permlevel': 0, - 'search_index': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'cheque_date', - 'fieldtype': u'Date', - 'label': u'Reference Date', - 'no_copy': 1, - 'oldfieldname': u'cheque_date', - 'oldfieldtype': u'Date', - 'permlevel': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'clearance_date', - 'fieldtype': u'Date', - 'in_filter': 1, - 'label': u'Clearance Date', - 'no_copy': 1, - 'oldfieldname': u'clearance_date', - 'oldfieldtype': u'Date', - 'permlevel': 1, - 'print_hide': 0, - 'search_index': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'column_break98', - 'fieldtype': u'Column Break', - 'permlevel': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'user_remark', - 'fieldtype': u'Small Text', - 'in_filter': 1, - 'label': u'User Remark', - 'no_copy': 1, - 'oldfieldname': u'user_remark', - 'oldfieldtype': u'Small Text', - 'permlevel': 0 - }, - - # DocField - { - 'description': u'User Remark will be added to Auto Remark', - u'doctype': u'DocField', - 'fieldname': u'remark', - 'fieldtype': u'Small Text', - 'label': u'Remark', - 'no_copy': 1, - 'oldfieldname': u'remark', - 'oldfieldtype': u'Small Text', - 'permlevel': 1, - 'reqd': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'bill_no', - 'fieldtype': u'Data', - 'label': u'Bill No', - 'oldfieldname': u'bill_no', - 'oldfieldtype': u'Data', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'bill_date', - 'fieldtype': u'Date', - 'label': u'Bill Date', - 'oldfieldname': u'bill_date', - 'oldfieldtype': u'Date', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'due_date', - 'fieldtype': u'Date', - 'label': u'Due Date', - 'oldfieldname': u'due_date', - 'oldfieldtype': u'Date', - 'permlevel': 0, - 'print_hide': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'addtional_info', - 'fieldtype': u'Section Break', - 'label': u'More Info', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'column_break2', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'default': u'No', - u'doctype': u'DocField', - 'fieldname': u'is_opening', - 'fieldtype': u'Select', - 'in_filter': 1, - 'label': u'Is Opening', - 'oldfieldname': u'is_opening', - 'oldfieldtype': u'Select', - 'options': u'No\nYes', - 'permlevel': 0, - 'print_hide': 1, - 'search_index': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'For opening invoice entry, this date will reflect in the period-wise aging report.', - u'doctype': u'DocField', - 'fieldname': u'aging_date', - 'fieldtype': u'Date', - 'label': u'Aging Date', - 'no_copy': 0, - 'oldfieldname': u'aging_date', - 'oldfieldtype': u'Date', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'default': u'Accounts Receivable', - 'depends_on': u"eval:doc.voucher_type == 'Write Off Voucher'", - u'doctype': u'DocField', - 'fieldname': u'write_off_based_on', - 'fieldtype': u'Select', - 'label': u'Write Off Based On', - 'options': u'Accounts Receivable\nAccounts Payable', - 'permlevel': 0, - 'print_hide': 1, - 'report_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'depends_on': u"eval:doc.voucher_type == 'Write Off Voucher'", - u'doctype': u'DocField', - 'fieldname': u'write_off_amount', - 'fieldtype': u'Currency', - 'label': u'Write Off Amount <=', - 'permlevel': 0, - 'print_hide': 1, - 'report_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'depends_on': u"eval:doc.voucher_type == 'Write Off Voucher'", - u'doctype': u'DocField', - 'fieldname': u'get_outstanding_invoices', - 'fieldtype': u'Button', - 'label': u'Get Outstanding Invoices', - 'options': u'get_outstanding_invoices', - 'permlevel': 0, - 'print_hide': 1, - 'trigger': u'Server' - }, - - # DocField - { - 'colour': u'White:FFF', - 'default': u'Today', - 'description': u'Date of entry (not posting to ledgers)', - u'doctype': u'DocField', - 'fieldname': u'voucher_date', - 'fieldtype': u'Date', - 'in_filter': 1, - 'label': u'Voucher Date', - 'no_copy': 1, - 'oldfieldname': u'voucher_date', - 'oldfieldtype': u'Date', - 'permlevel': 0, - 'print_hide': 0, - 'reqd': 1, - 'search_index': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'column_break3', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'pay_to_recd_from', - 'fieldtype': u'Data', - 'hidden': 0, - 'label': u'Pay To / Recd From', - 'no_copy': 1, - 'permlevel': 0, - 'print_hide': 0, - 'report_hide': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'total_amount', - 'fieldtype': u'Data', - 'hidden': 1, - 'label': u'Total Amount', - 'no_copy': 1, - 'permlevel': 1, - 'print_hide': 1, - 'report_hide': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'total_amount_in_words', - 'fieldtype': u'Data', - 'hidden': 1, - 'label': u'Total Amount in Words', - 'no_copy': 1, - 'permlevel': 1, - 'print_hide': 1, - 'report_hide': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'fiscal_year', - 'fieldtype': u'Select', - 'in_filter': 1, - 'label': u'Fiscal Year', - 'oldfieldname': u'fiscal_year', - 'oldfieldtype': u'Select', - 'options': u'link:Fiscal Year', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1, - 'search_index': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'company', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Company', - 'oldfieldname': u'company', - 'oldfieldtype': u'Link', - 'options': u'Company', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1, - 'search_index': 1 - }, - - # DocField - { - 'allow_on_submit': 1, - 'colour': u'White:FFF', - u'doctype': u'DocField', - 'fieldname': u'select_print_heading', - 'fieldtype': u'Link', - 'label': u'Select Print Heading', - 'no_copy': 1, - 'oldfieldname': u'select_print_heading', - 'oldfieldtype': u'Link', - 'options': u'Print Heading', - 'permlevel': 0, - 'print_hide': 1, - 'report_hide': 1, - 'trigger': u'Client' - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'amended_from', - 'fieldtype': u'Link', - 'label': u'Amended From', - 'no_copy': 1, - 'oldfieldname': u'amended_from', - 'oldfieldtype': u'Link', - 'options': u'Journal Voucher', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'description': u'The date at which current entry is corrected in the system.', - u'doctype': u'DocField', - 'fieldname': u'amendment_date', - 'fieldtype': u'Date', - 'label': u'Amendment Date', - 'no_copy': 1, - 'oldfieldname': u'amendment_date', - 'oldfieldtype': u'Date', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'cancel_reason', - 'fieldtype': u'Data', - 'label': u'Cancel Reason', - 'no_copy': 1, - 'oldfieldname': u'cancel_reason', - 'oldfieldtype': u'Data', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'section_break0', - 'fieldtype': u'Section Break', - 'oldfieldtype': u'Section Break', - 'options': u'Simple', - 'permlevel': 0 - }, - - # DocField - { - 'allow_on_submit': 1, - u'doctype': u'DocField', - 'fieldname': u'view_ledger_entry', - 'fieldtype': u'Button', - 'label': u'View Ledger Entry', - 'oldfieldtype': u'Button', - 'permlevel': 0, - 'print_hide': 1, - 'trigger': u'Client' - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'tds', - 'fieldtype': u'Section Break', - 'label': u'TDS', - 'oldfieldtype': u'Section Break', - 'permlevel': 0, - 'print_hide': 0 - }, - - # DocField - { - 'default': u'No', - u'doctype': u'DocField', - 'fieldname': u'tds_applicable', - 'fieldtype': u'Select', - 'in_filter': 1, - 'label': u'TDS Applicable', - 'no_copy': 1, - 'oldfieldname': u'tds_applicable', - 'oldfieldtype': u'Select', - 'options': u'\nYes\nNo', - 'permlevel': 0, - 'print_hide': 1, - 'search_index': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - u'doctype': u'DocField', - 'fieldname': u'tds_category', - 'fieldtype': u'Select', - 'hidden': 0, - 'in_filter': 1, - 'label': u'TDS Category', - 'no_copy': 1, - 'oldfieldname': u'tds_category', - 'oldfieldtype': u'Select', - 'options': u'link:TDS Category', - 'permlevel': 0, - 'print_hide': 1, - 'search_index': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'colour': u'White:FFF', - u'doctype': u'DocField', - 'fieldname': u'supplier_account', - 'fieldtype': u'Link', - 'hidden': 0, - 'label': u'Supplier Account', - 'no_copy': 1, - 'oldfieldname': u'supplier_account', - 'oldfieldtype': u'Link', - 'options': u'Account', - 'permlevel': 0, - 'print_hide': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'colour': u'White:FFF', - u'doctype': u'DocField', - 'fieldname': u'get_tds', - 'fieldtype': u'Button', - 'label': u'Get TDS', - 'no_copy': 0, - 'oldfieldtype': u'Button', - 'permlevel': 0, - 'trigger': u'Client' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Tax Code will be populated based on account head mentioned in TDS Category master', - u'doctype': u'DocField', - 'fieldname': u'tax_code', - 'fieldtype': u'Link', - 'label': u'TDS Account Head', - 'no_copy': 1, - 'oldfieldname': u'tax_code', - 'oldfieldtype': u'Link', - 'options': u'Account', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'rate', - 'fieldtype': u'Currency', - 'label': u'Rate', - 'no_copy': 1, - 'oldfieldname': u'rate', - 'oldfieldtype': u'Currency', - 'permlevel': 0, - 'print_hide': 1, - 'trigger': u'Client' - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'ded_amount', - 'fieldtype': u'Currency', - 'label': u'Amount', - 'no_copy': 1, - 'oldfieldname': u'ded_amount', - 'oldfieldtype': u'Currency', - 'permlevel': 0, - 'print_hide': 1, - 'trigger': u'Client' - }, - - # DocPerm - { - 'amend': 1, - 'cancel': 1, - 'create': 1, - u'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Accounts User', - 'submit': 1, - 'write': 1 - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - u'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'Accounts User', - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - u'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'Accounts Manager', - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'amend': 1, - 'cancel': 1, - 'create': 1, - u'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Accounts Manager', - 'submit': 1, - 'write': 1 - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - u'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Auditor', - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - u'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'Auditor', - 'submit': 0, - 'write': 0 - } + { + "owner": "Administrator", + "docstatus": 0, + "creation": "2012-10-16 12:29:32", + "modified_by": "Administrator", + "modified": "2012-10-15 12:38:42" + }, + { + "is_submittable": 1, + "name": "__common__", + "default_print_format": "Standard", + "search_fields": "voucher_type,posting_date, due_date, cheque_no", + "module": "Accounts", + "doctype": "DocType", + "read_only_onload": 1 + }, + { + "name": "__common__", + "parent": "Journal Voucher", + "doctype": "DocField", + "parenttype": "DocType", + "parentfield": "fields" + }, + { + "name": "__common__", + "parent": "Journal Voucher", + "read": 1, + "doctype": "DocPerm", + "parenttype": "DocType", + "parentfield": "permissions" + }, + { + "name": "Journal Voucher", + "doctype": "DocType" + }, + { + "oldfieldtype": "Column Break", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break0", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "To manage multiple series please go to Setup > Manage Series", + "no_copy": 1, + "oldfieldtype": "Select", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Series", + "oldfieldname": "naming_series", + "permlevel": 0, + "fieldname": "naming_series", + "fieldtype": "Select", + "reqd": 1, + "options": "JV" + }, + { + "print_hide": 0, + "oldfieldtype": "Select", + "doctype": "DocField", + "label": "Voucher Type", + "oldfieldname": "voucher_type", + "options": "\nJournal Entry\nBank Voucher\nCash Voucher\nCredit Card Voucher\nDebit Note\nCredit Note\nContra Voucher\nExcise Voucher\nWrite Off Voucher", + "fieldname": "voucher_type", + "fieldtype": "Select", + "search_index": 1, + "permlevel": 0, + "in_filter": 1 + }, + { + "oldfieldtype": "Column Break", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break1", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "description": "The date at which current entry will get or has actually executed.", + "no_copy": 1, + "oldfieldtype": "Date", + "doctype": "DocField", + "label": "Posting Date", + "oldfieldname": "posting_date", + "fieldname": "posting_date", + "fieldtype": "Date", + "search_index": 1, + "reqd": 1, + "in_filter": 1, + "permlevel": 0 + }, + { + "oldfieldtype": "Section Break", + "doctype": "DocField", + "label": "Journal Entries", + "options": "Simple", + "fieldname": "2_add_edit_gl_entries", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 0, + "allow_on_submit": 1, + "oldfieldtype": "Table", + "doctype": "DocField", + "label": "Entries", + "oldfieldname": "entries", + "options": "Journal Voucher Detail", + "fieldname": "entries", + "fieldtype": "Table", + "permlevel": 0 + }, + { + "doctype": "DocField", + "options": "Simple", + "fieldname": "section_break99", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "no_copy": 1, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Total Debit", + "oldfieldname": "total_debit", + "fieldname": "total_debit", + "fieldtype": "Currency", + "permlevel": 1, + "in_filter": 1 + }, + { + "no_copy": 1, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Total Credit", + "oldfieldname": "total_credit", + "fieldname": "total_credit", + "fieldtype": "Currency", + "permlevel": 1, + "in_filter": 1 + }, + { + "doctype": "DocField", + "fieldname": "column_break99", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Difference", + "oldfieldname": "difference", + "fieldname": "difference", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "oldfieldtype": "Button", + "doctype": "DocField", + "label": "Make Difference Entry", + "trigger": "Client", + "fieldname": "get_balance", + "fieldtype": "Button", + "permlevel": 0 + }, + { + "doctype": "DocField", + "label": "Reference", + "fieldname": "reference", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "description": "eg. Cheque Number", + "no_copy": 1, + "oldfieldtype": "Data", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Reference Number", + "oldfieldname": "cheque_no", + "fieldname": "cheque_no", + "fieldtype": "Data", + "search_index": 1, + "in_filter": 1, + "permlevel": 0 + }, + { + "no_copy": 1, + "oldfieldtype": "Date", + "doctype": "DocField", + "label": "Reference Date", + "oldfieldname": "cheque_date", + "fieldname": "cheque_date", + "fieldtype": "Date", + "permlevel": 0 + }, + { + "print_hide": 0, + "no_copy": 1, + "oldfieldtype": "Date", + "doctype": "DocField", + "label": "Clearance Date", + "oldfieldname": "clearance_date", + "fieldname": "clearance_date", + "fieldtype": "Date", + "search_index": 1, + "permlevel": 1, + "in_filter": 1 + }, + { + "doctype": "DocField", + "fieldname": "column_break98", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "no_copy": 1, + "oldfieldtype": "Small Text", + "doctype": "DocField", + "label": "User Remark", + "oldfieldname": "user_remark", + "fieldname": "user_remark", + "fieldtype": "Small Text", + "permlevel": 0, + "in_filter": 1 + }, + { + "description": "User Remark will be added to Auto Remark", + "no_copy": 1, + "oldfieldtype": "Small Text", + "doctype": "DocField", + "label": "Remark", + "oldfieldname": "remark", + "fieldname": "remark", + "fieldtype": "Small Text", + "reqd": 0, + "permlevel": 1 + }, + { + "print_hide": 1, + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "Bill No", + "oldfieldname": "bill_no", + "fieldname": "bill_no", + "fieldtype": "Data", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Date", + "doctype": "DocField", + "label": "Bill Date", + "oldfieldname": "bill_date", + "fieldname": "bill_date", + "fieldtype": "Date", + "permlevel": 0 + }, + { + "print_hide": 0, + "oldfieldtype": "Date", + "doctype": "DocField", + "label": "Due Date", + "oldfieldname": "due_date", + "fieldname": "due_date", + "fieldtype": "Date", + "permlevel": 0 + }, + { + "oldfieldtype": "Section Break", + "doctype": "DocField", + "label": "More Info", + "fieldname": "addtional_info", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "oldfieldtype": "Column Break", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break2", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "default": "No", + "oldfieldtype": "Select", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Is Opening", + "oldfieldname": "is_opening", + "permlevel": 0, + "trigger": "Client", + "fieldname": "is_opening", + "fieldtype": "Select", + "search_index": 1, + "options": "No\nYes", + "in_filter": 1 + }, + { + "print_hide": 1, + "description": "For opening invoice entry, this date will reflect in the period-wise aging report.", + "no_copy": 0, + "oldfieldtype": "Date", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Aging Date", + "oldfieldname": "aging_date", + "fieldname": "aging_date", + "fieldtype": "Date", + "permlevel": 0 + }, + { + "print_hide": 1, + "default": "Accounts Receivable", + "depends_on": "eval:doc.voucher_type == 'Write Off Voucher'", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Write Off Based On", + "options": "Accounts Receivable\nAccounts Payable", + "fieldname": "write_off_based_on", + "fieldtype": "Select", + "permlevel": 0, + "report_hide": 1 + }, + { + "print_hide": 1, + "depends_on": "eval:doc.voucher_type == 'Write Off Voucher'", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Write Off Amount <=", + "fieldname": "write_off_amount", + "fieldtype": "Currency", + "permlevel": 0, + "report_hide": 1 + }, + { + "print_hide": 1, + "depends_on": "eval:doc.voucher_type == 'Write Off Voucher'", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Get Outstanding Invoices", + "trigger": "Server", + "fieldname": "get_outstanding_invoices", + "fieldtype": "Button", + "options": "get_outstanding_invoices", + "permlevel": 0 + }, + { + "print_hide": 0, + "description": "Date of entry (not posting to ledgers)", + "default": "Today", + "oldfieldtype": "Date", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Voucher Date", + "oldfieldname": "voucher_date", + "no_copy": 1, + "fieldname": "voucher_date", + "fieldtype": "Date", + "search_index": 1, + "reqd": 1, + "in_filter": 1, + "permlevel": 0 + }, + { + "oldfieldtype": "Column Break", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break3", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 0, + "no_copy": 1, + "doctype": "DocField", + "label": "Pay To / Recd From", + "fieldname": "pay_to_recd_from", + "fieldtype": "Data", + "hidden": 0, + "permlevel": 0, + "report_hide": 1 + }, + { + "print_hide": 1, + "no_copy": 1, + "doctype": "DocField", + "label": "Total Amount", + "fieldname": "total_amount", + "fieldtype": "Data", + "hidden": 1, + "permlevel": 1, + "report_hide": 1 + }, + { + "print_hide": 1, + "no_copy": 1, + "doctype": "DocField", + "label": "Total Amount in Words", + "fieldname": "total_amount_in_words", + "fieldtype": "Data", + "hidden": 1, + "permlevel": 1, + "report_hide": 1 + }, + { + "print_hide": 1, + "oldfieldtype": "Select", + "doctype": "DocField", + "label": "Fiscal Year", + "oldfieldname": "fiscal_year", + "permlevel": 0, + "fieldname": "fiscal_year", + "fieldtype": "Select", + "search_index": 1, + "reqd": 1, + "options": "link:Fiscal Year", + "in_filter": 1 + }, + { + "print_hide": 1, + "oldfieldtype": "Link", + "doctype": "DocField", + "label": "Company", + "oldfieldname": "company", + "permlevel": 0, + "fieldname": "company", + "fieldtype": "Link", + "search_index": 1, + "reqd": 1, + "options": "Company", + "in_filter": 1 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Link", + "colour": "White:FFF", + "allow_on_submit": 1, + "doctype": "DocField", + "label": "Select Print Heading", + "oldfieldname": "select_print_heading", + "permlevel": 0, + "trigger": "Client", + "fieldname": "select_print_heading", + "fieldtype": "Link", + "options": "Print Heading", + "report_hide": 1 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Link", + "doctype": "DocField", + "label": "Amended From", + "oldfieldname": "amended_from", + "options": "Journal Voucher", + "fieldname": "amended_from", + "fieldtype": "Link", + "permlevel": 1 + }, + { + "print_hide": 1, + "description": "The date at which current entry is corrected in the system.", + "no_copy": 1, + "oldfieldtype": "Date", + "doctype": "DocField", + "label": "Amendment Date", + "oldfieldname": "amendment_date", + "fieldname": "amendment_date", + "fieldtype": "Date", + "permlevel": 0 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "Cancel Reason", + "oldfieldname": "cancel_reason", + "fieldname": "cancel_reason", + "fieldtype": "Data", + "permlevel": 1 + }, + { + "oldfieldtype": "Section Break", + "doctype": "DocField", + "options": "Simple", + "fieldname": "section_break0", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "allow_on_submit": 1, + "oldfieldtype": "Button", + "doctype": "DocField", + "label": "View Ledger Entry", + "trigger": "Client", + "fieldname": "view_ledger_entry", + "fieldtype": "Button", + "permlevel": 0 + }, + { + "print_hide": 0, + "oldfieldtype": "Section Break", + "doctype": "DocField", + "label": "TDS", + "fieldname": "tds", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "permlevel": 0, + "no_copy": 1, + "oldfieldtype": "Select", + "doctype": "DocField", + "label": "TDS Applicable", + "oldfieldname": "tds_applicable", + "default": "No", + "fieldname": "tds_applicable", + "fieldtype": "Select", + "search_index": 1, + "options": "\nYes\nNo", + "in_filter": 1 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Select", + "colour": "White:FFF", + "doctype": "DocField", + "label": "TDS Category", + "oldfieldname": "tds_category", + "permlevel": 0, + "trigger": "Client", + "fieldname": "tds_category", + "fieldtype": "Select", + "search_index": 1, + "hidden": 0, + "options": "link:TDS Category", + "in_filter": 1 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Supplier Account", + "oldfieldname": "supplier_account", + "permlevel": 0, + "trigger": "Client", + "fieldname": "supplier_account", + "fieldtype": "Link", + "hidden": 0, + "options": "Account" + }, + { + "no_copy": 0, + "oldfieldtype": "Button", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Get TDS", + "trigger": "Client", + "fieldname": "get_tds", + "fieldtype": "Button", + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "Tax Code will be populated based on account head mentioned in TDS Category master", + "no_copy": 1, + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "TDS Account Head", + "oldfieldname": "tax_code", + "permlevel": 0, + "fieldname": "tax_code", + "fieldtype": "Link", + "options": "Account" + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Rate", + "oldfieldname": "rate", + "trigger": "Client", + "fieldname": "rate", + "fieldtype": "Currency", + "permlevel": 0 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Amount", + "oldfieldname": "ded_amount", + "trigger": "Client", + "fieldname": "ded_amount", + "fieldtype": "Currency", + "permlevel": 0 + }, + { + "amend": 1, + "create": 1, + "doctype": "DocPerm", + "submit": 1, + "write": 1, + "cancel": 1, + "role": "Accounts User", + "permlevel": 0 + }, + { + "amend": 0, + "create": 0, + "doctype": "DocPerm", + "submit": 0, + "write": 0, + "cancel": 0, + "role": "Accounts User", + "permlevel": 1 + }, + { + "amend": 0, + "create": 0, + "doctype": "DocPerm", + "submit": 0, + "write": 0, + "cancel": 0, + "role": "Accounts Manager", + "permlevel": 1 + }, + { + "amend": 1, + "create": 1, + "doctype": "DocPerm", + "submit": 1, + "write": 1, + "cancel": 1, + "role": "Accounts Manager", + "permlevel": 0 + }, + { + "amend": 0, + "create": 0, + "doctype": "DocPerm", + "submit": 0, + "write": 0, + "cancel": 0, + "role": "Auditor", + "permlevel": 0 + }, + { + "amend": 0, + "create": 0, + "doctype": "DocPerm", + "submit": 0, + "write": 0, + "cancel": 0, + "role": "Auditor", + "permlevel": 1 + } ] \ No newline at end of file diff --git a/accounts/doctype/mis_control/mis_control.py b/accounts/doctype/mis_control/mis_control.py index b1c228b358..e25c585642 100644 --- a/accounts/doctype/mis_control/mis_control.py +++ b/accounts/doctype/mis_control/mis_control.py @@ -241,7 +241,6 @@ class DocType: self.return_data.append([5, 'Profit/Loss (Provisional)'] + level0_diff) for i in range(len(totals)): # make totals level0_diff[i] = flt(totals[i]) + level0_diff[i] - self.return_data.append([4, 'Total '+c[0]] + level0_diff) else: self.return_data.append([4, 'Total '+c[0]] + totals) @@ -252,7 +251,6 @@ class DocType: self.return_data.append([5, 'Profit/Loss (Provisional)'] + level0_diff) for i in range(len(totals)): # make totals level0_diff[i] = flt(totals[i]) + level0_diff[i] - self.return_data.append([4, 'Total Income'] + level0_diff) else: self.return_data.append([4, 'Total '+c[0]] + totals) diff --git a/accounts/doctype/purchase_invoice/purchase_invoice.txt b/accounts/doctype/purchase_invoice/purchase_invoice.txt index be503e6972..86150db623 100755 --- a/accounts/doctype/purchase_invoice/purchase_invoice.txt +++ b/accounts/doctype/purchase_invoice/purchase_invoice.txt @@ -2,7 +2,7 @@ { "owner": "Administrator", "docstatus": 0, - "creation": "2012-07-17 13:24:59", + "creation": "2012-11-28 11:26:17", "modified_by": "Administrator", "modified": "2012-11-26 11:52:32" }, @@ -35,15 +35,6 @@ "name": "Purchase Invoice", "doctype": "DocType" }, - { - "oldfieldtype": "Section Break", - "allow_on_submit": 0, - "doctype": "DocField", - "label": "Basic Info", - "fieldname": "basic_info", - "fieldtype": "Section Break", - "permlevel": 0 - }, { "oldfieldtype": "Column Break", "doctype": "DocField", diff --git a/accounts/doctype/sales_invoice/sales_invoice.txt b/accounts/doctype/sales_invoice/sales_invoice.txt index ad92d22e06..4790bc6367 100644 --- a/accounts/doctype/sales_invoice/sales_invoice.txt +++ b/accounts/doctype/sales_invoice/sales_invoice.txt @@ -1,1723 +1,1390 @@ -# DocType, Sales Invoice [ - - # These values are common in all dictionaries - { - 'creation': '2012-07-18 16:02:44', - 'docstatus': 0, - 'modified': '2012-09-07 11:56:59', - 'modified_by': u'Administrator', - 'owner': u'Administrator' - }, - - # These values are common for all DocType - { - '_last_update': u'1330671142', - 'allow_attach': 1, - 'change_log': u'1. Change in pull_details method dt.-26-06-2009', - 'colour': u'White:FFF', - 'default_print_format': u'Standard', - 'doctype': 'DocType', - 'is_submittable': 1, - 'module': u'Accounts', - 'name': '__common__', - 'read_only_onload': 1, - 'search_fields': u'posting_date, due_date, debit_to, fiscal_year, grand_total, outstanding_amount', - 'section_style': u'Tabbed', - 'server_code_error': u' ', - 'show_in_menu': 0, - 'subject': u'To %(customer_name)s worth %(currency)s %(grand_total_export)s due on %(due_date)s | %(outstanding_amount)s outstanding', - 'version': 1 - }, - - # These values are common for all DocField - { - 'doctype': u'DocField', - 'name': '__common__', - 'parent': u'Sales Invoice', - 'parentfield': u'fields', - 'parenttype': u'DocType' - }, - - # These values are common for all DocPerm - { - 'doctype': u'DocPerm', - 'name': '__common__', - 'parent': u'Sales Invoice', - 'parentfield': u'permissions', - 'parenttype': u'DocType', - 'read': 1 - }, - - # DocType, Sales Invoice - { - 'doctype': 'DocType', - 'name': u'Sales Invoice' - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - 'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'Accounts Manager', - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'amend': 1, - 'cancel': 1, - 'create': 1, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Accounts Manager', - 'submit': 1, - 'write': 1 - }, - - # DocPerm - { - 'amend': 1, - 'cancel': 1, - 'create': 1, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Accounts User', - 'submit': 1, - 'write': 1 - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - 'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'Accounts User', - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Customer', - 'submit': 0, - 'write': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'basic_info', - 'fieldtype': u'Section Break', - 'label': u'Basic Info', - 'oldfieldtype': u'Section Break', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break0', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'print_hide': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'To manage multiple series please go to Setup > Manage Series', - 'doctype': u'DocField', - 'fieldname': u'naming_series', - 'fieldtype': u'Select', - 'label': u'Series', - 'no_copy': 1, - 'oldfieldname': u'naming_series', - 'oldfieldtype': u'Select', - 'options': u'INV\nINV/10-11/', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'is_pos', - 'fieldtype': u'Check', - 'label': u'Is POS', - 'oldfieldname': u'is_pos', - 'oldfieldtype': u'Check', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'default': u'1', - 'depends_on': u'eval:doc.is_pos==1', - 'doctype': u'DocField', - 'fieldname': u'update_stock', - 'fieldtype': u'Check', - 'label': u'Update Stock', - 'oldfieldname': u'update_stock', - 'oldfieldtype': u'Check', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'The account to which you will pay (have paid) the money to.', - 'doctype': u'DocField', - 'fieldname': u'debit_to', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Debit To', - 'oldfieldname': u'debit_to', - 'oldfieldtype': u'Link', - 'options': u'Account', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1, - 'search_index': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'customer', - 'fieldtype': u'Link', - 'hidden': 0, - 'label': u'Customer', - 'no_copy': 0, - 'oldfieldname': u'customer', - 'oldfieldtype': u'Link', - 'options': u'Customer', - 'permlevel': 0, - 'print_hide': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'customer_name', - 'fieldtype': u'Data', - 'hidden': 1, - 'label': u'Name', - 'oldfieldname': u'customer_name', - 'oldfieldtype': u'Data', - 'permlevel': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'address_display', - 'fieldtype': u'Small Text', - 'hidden': 1, - 'label': u'Address', - 'permlevel': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'contact_display', - 'fieldtype': u'Small Text', - 'hidden': 1, - 'label': u'Contact', - 'permlevel': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'contact_mobile', - 'fieldtype': u'Text', - 'hidden': 1, - 'label': u'Mobile No', - 'permlevel': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'contact_email', - 'fieldtype': u'Text', - 'hidden': 1, - 'label': u'Contact Email', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'column_break1', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'default': u'Today', - 'description': u'The date at which current entry will get or has actually executed.', - 'doctype': u'DocField', - 'fieldname': u'posting_date', - 'fieldtype': u'Date', - 'in_filter': 1, - 'label': u'Posting Date', - 'no_copy': 1, - 'oldfieldname': u'posting_date', - 'oldfieldtype': u'Date', - 'permlevel': 0, - 'print_hide': 0, - 'reqd': 1, - 'search_index': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'default': u'Today', - 'description': u'Enter the date by which payments from customer is expected against this invoice.', - 'doctype': u'DocField', - 'fieldname': u'due_date', - 'fieldtype': u'Date', - 'in_filter': 1, - 'label': u'Due Date', - 'no_copy': 1, - 'oldfieldname': u'due_date', - 'oldfieldtype': u'Date', - 'permlevel': 0, - 'reqd': 1, - 'search_index': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'mode_of_payment', - 'fieldtype': u'Select', - 'label': u'Mode of Payment', - 'oldfieldname': u'mode_of_payment', - 'oldfieldtype': u'Select', - 'options': u'link:Mode of Payment', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'items', - 'fieldtype': u'Section Break', - 'label': u'Items', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'allow_on_submit': 1, - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'entries', - 'fieldtype': u'Table', - 'label': u'Entries', - 'oldfieldname': u'entries', - 'oldfieldtype': u'Table', - 'options': u'Sales Invoice Item', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'sales_bom_help', - 'fieldtype': u'HTML', - 'label': u'Sales BOM Help', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'section_break0', - 'fieldtype': u'Section Break', - 'options': u'Simple', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'col_break26', - 'fieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'description': u'Will be calculated automatically when you enter the details', - 'doctype': u'DocField', - 'fieldname': u'net_total', - 'fieldtype': u'Currency', - 'label': u'Net Total*', - 'oldfieldname': u'net_total', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 0, - 'reqd': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'recalculate_values', - 'fieldtype': u'Button', - 'label': u'Re-Calculate Values', - 'oldfieldtype': u'Button', - 'permlevel': 0, - 'print_hide': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'col_break25', - 'fieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Select Items from Sales Order', - 'doctype': u'DocField', - 'fieldname': u'sales_order_main', - 'fieldtype': u'Link', - 'label': u'Sales Order', - 'oldfieldname': u'sales_order_main', - 'oldfieldtype': u'Link', - 'options': u'Sales Order', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Select Items from Delivery Note', - 'doctype': u'DocField', - 'fieldname': u'delivery_note_main', - 'fieldtype': u'Link', - 'label': u'Delivery Note', - 'oldfieldname': u'delivery_note_main', - 'oldfieldtype': u'Link', - 'options': u'Delivery Note', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'get_items', - 'fieldtype': u'Button', - 'label': u'Get Items', - 'oldfieldtype': u'Button', - 'permlevel': 0, - 'print_hide': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'currency_section', - 'fieldtype': u'Section Break', - 'label': u'Price List and Currency', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'col_break27', - 'fieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'price_list_name', - 'fieldtype': u'Select', - 'label': u'Price List', - 'oldfieldname': u'price_list_name', - 'oldfieldtype': u'Select', - 'options': u'link:Price List', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Select the currency in which price list is maintained', - 'doctype': u'DocField', - 'fieldname': u'price_list_currency', - 'fieldtype': u'Select', - 'label': u'Price List Currency', - 'options': u'link:Currency', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u"Rate at which Price list currency is converted to customer's base currency", - 'doctype': u'DocField', - 'fieldname': u'plc_conversion_rate', - 'fieldtype': u'Float', - 'label': u'Price List Currency Conversion Rate', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break2', - 'fieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'currency', - 'fieldtype': u'Select', - 'label': u'Currency', - 'oldfieldname': u'currency', - 'oldfieldtype': u'Select', - 'options': u'link:Currency', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'default': u'1.00', - 'description': u"Rate at which Customer Currency is converted to customer's base currency", - 'doctype': u'DocField', - 'fieldname': u'conversion_rate', - 'fieldtype': u'Float', - 'label': u'Conversion Rate', - 'oldfieldname': u'conversion_rate', - 'oldfieldtype': u'Currency', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'taxes', - 'fieldtype': u'Section Break', - 'label': u'Taxes and Charges', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'charge', - 'fieldtype': u'Link', - 'label': u'Taxes and Charges', - 'oldfieldname': u'charge', - 'oldfieldtype': u'Link', - 'options': u'Sales Taxes and Charges Master', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'get_charges', - 'fieldtype': u'Button', - 'label': u'Get Taxes and Charges', - 'oldfieldtype': u'Button', - 'permlevel': 0, - 'print_hide': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'allow_on_submit': 1, - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'other_charges', - 'fieldtype': u'Table', - 'label': u'Taxes and Charges1', - 'oldfieldname': u'other_charges', - 'oldfieldtype': u'Table', - 'options': u'Sales Taxes and Charges', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'calculate_charges', - 'fieldtype': u'Button', - 'label': u'Calculate Taxes and Charges', - 'oldfieldtype': u'Button', - 'permlevel': 0, - 'print_hide': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'other_charges_total', - 'fieldtype': u'Currency', - 'label': u'Total Taxes and Charges', - 'oldfieldname': u'other_charges_total', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'other_charges_calculation', - 'fieldtype': u'HTML', - 'label': u'Taxes and Charges Calculation', - 'oldfieldtype': u'HTML', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'totals', - 'fieldtype': u'Section Break', - 'label': u'Totals', - 'oldfieldtype': u'Section Break', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'column_break5', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'print_hide': 1, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'grand_total', - 'fieldtype': u'Currency', - 'in_filter': 1, - 'label': u'Grand Total', - 'oldfieldname': u'grand_total', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1, - 'reqd': 1, - 'search_index': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'rounded_total', - 'fieldtype': u'Currency', - 'label': u'Rounded Total', - 'oldfieldname': u'rounded_total', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'In Words will be visible once you save the Sales Invoice.', - 'doctype': u'DocField', - 'fieldname': u'in_words', - 'fieldtype': u'Data', - 'label': u'In Words', - 'oldfieldname': u'in_words', - 'oldfieldtype': u'Data', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'total_advance', - 'fieldtype': u'Currency', - 'label': u'Total Advance', - 'oldfieldname': u'total_advance', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'outstanding_amount', - 'fieldtype': u'Currency', - 'label': u'Outstanding Amount', - 'no_copy': 1, - 'oldfieldname': u'outstanding_amount', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'column_break6', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'print_hide': 1, - 'width': u'50%' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'grand_total_export', - 'fieldtype': u'Currency', - 'label': u'Grand Total (Export)', - 'oldfieldname': u'grand_total_export', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 0, - 'reqd': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'rounded_total_export', - 'fieldtype': u'Currency', - 'label': u'Rounded Total (Export)', - 'oldfieldname': u'rounded_total_export', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'in_words_export', - 'fieldtype': u'Data', - 'label': u'In Words (Export)', - 'oldfieldname': u'in_words_export', - 'oldfieldtype': u'Data', - 'permlevel': 1, - 'print_hide': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'gross_profit', - 'fieldtype': u'Currency', - 'label': u'Gross Profit', - 'oldfieldname': u'gross_profit', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'gross_profit_percent', - 'fieldtype': u'Currency', - 'label': u'Gross Profit (%)', - 'oldfieldname': u'gross_profit_percent', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'payments_section', - 'fieldtype': u'Section Break', - 'label': u'Payments', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'column_break3', - 'fieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'paid_amount', - 'fieldtype': u'Currency', - 'label': u'Paid Amount', - 'oldfieldname': u'paid_amount', - 'oldfieldtype': u'Currency', - 'permlevel': 0, - 'print_hide': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'cash_bank_account', - 'fieldtype': u'Link', - 'label': u'Cash/Bank Account', - 'oldfieldname': u'cash_bank_account', - 'oldfieldtype': u'Link', - 'options': u'Account', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'column_break4', - 'fieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'write_off_outstanding_amount_automatically', - 'fieldtype': u'Check', - 'label': u'Write Off Outstanding Amount', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'write_off_amount', - 'fieldtype': u'Currency', - 'label': u'Write Off Amount', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'write_off_account', - 'fieldtype': u'Link', - 'label': u'Write Off Account', - 'options': u'Account', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'write_off_cost_center', - 'fieldtype': u'Link', - 'label': u'Write Off Cost Center', - 'options': u'Cost Center', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'terms_section_break', - 'fieldtype': u'Section Break', - 'label': u'Terms and Conditions', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'tc_name', - 'fieldtype': u'Link', - 'label': u'Select Terms and Conditions', - 'oldfieldname': u'tc_name', - 'oldfieldtype': u'Link', - 'options': u'Terms and Conditions', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'get_terms', - 'fieldtype': u'Button', - 'label': u'Get Terms and Conditions', - 'oldfieldtype': u'Button', - 'options': u'get_tc_details', - 'permlevel': 0, - 'print_hide': 1, - 'trigger': u'Server' - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'terms_html', - 'fieldtype': u'HTML', - 'label': u'Terms and Conditions HTML', - 'oldfieldtype': u'HTML', - 'options': u'You can add Terms and Notes that will be printed in the Transaction', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'terms', - 'fieldtype': u'Text Editor', - 'label': u'Terms and Conditions Details', - 'oldfieldname': u'terms', - 'oldfieldtype': u'Text Editor', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'contact_section', - 'fieldtype': u'Section Break', - 'label': u'Contact Info', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'col_break23', - 'fieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'customer_address', - 'fieldtype': u'Link', - 'label': u'Customer Address', - 'options': u'Address', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'contact_person', - 'fieldtype': u'Link', - 'label': u'Contact Person', - 'options': u'Contact', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'col_break24', - 'fieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'territory', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Territory', - 'options': u'Territory', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1, - 'search_index': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'customer_group', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Customer Group', - 'options': u'Customer Group', - 'permlevel': 0, - 'print_hide': 1, - 'search_index': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'more_info', - 'fieldtype': u'Section Break', - 'label': u'More Info', - 'oldfieldtype': u'Section Break', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'column_break7', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'print_hide': 1, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'default': u'No', - 'doctype': u'DocField', - 'fieldname': u'is_opening', - 'fieldtype': u'Select', - 'in_filter': 1, - 'label': u'Is Opening', - 'oldfieldname': u'is_opening', - 'oldfieldtype': u'Select', - 'options': u'No\nYes', - 'permlevel': 0, - 'print_hide': 1, - 'search_index': 0, - 'trigger': u'Client' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'aging_date', - 'fieldtype': u'Date', - 'label': u'Aging Date', - 'oldfieldname': u'aging_date', - 'oldfieldtype': u'Date', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'posting_time', - 'fieldtype': u'Time', - 'label': u'Posting Time', - 'no_copy': 1, - 'oldfieldname': u'posting_time', - 'oldfieldtype': u'Time', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'allow_on_submit': 1, - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'letter_head', - 'fieldtype': u'Select', - 'label': u'Letter Head', - 'oldfieldname': u'letter_head', - 'oldfieldtype': u'Select', - 'options': u'link:Letter Head', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'c_form_applicable', - 'fieldtype': u'Select', - 'label': u'C-Form Applicable', - 'no_copy': 1, - 'options': u'No\nYes', - 'permlevel': 0, - 'print_hide': 1, - 'report_hide': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'c_form_no', - 'fieldtype': u'Link', - 'label': u'C-Form No', - 'no_copy': 1, - 'options': u'C-Form', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'depends_on': u"eval:doc.source == 'Campaign'", - 'doctype': u'DocField', - 'fieldname': u'campaign', - 'fieldtype': u'Link', - 'label': u'Campaign', - 'oldfieldname': u'campaign', - 'oldfieldtype': u'Link', - 'options': u'Campaign', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Track this Sales Invoice against any Project', - 'doctype': u'DocField', - 'fieldname': u'project_name', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Project Name', - 'oldfieldname': u'project_name', - 'oldfieldtype': u'Link', - 'options': u'Project', - 'permlevel': 0, - 'search_index': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'allow_on_submit': 1, - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'select_print_heading', - 'fieldtype': u'Link', - 'label': u'Select Print Heading', - 'no_copy': 1, - 'oldfieldname': u'select_print_heading', - 'oldfieldtype': u'Link', - 'options': u'Print Heading', - 'permlevel': 0, - 'print_hide': 1, - 'report_hide': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'column_break8', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'source', - 'fieldtype': u'Select', - 'label': u'Source', - 'oldfieldname': u'source', - 'oldfieldtype': u'Select', - 'options': u"\nExisting Customer\nReference\nAdvertisement\nCold Calling\nExhibition\nSupplier Reference\nMass Mailing\nCustomer's Vendor\nCampaign", - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'company', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Company', - 'oldfieldname': u'company', - 'oldfieldtype': u'Link', - 'options': u'Company', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1, - 'search_index': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'fiscal_year', - 'fieldtype': u'Select', - 'in_filter': 1, - 'label': u'Fiscal Year', - 'no_copy': 0, - 'oldfieldname': u'fiscal_year', - 'oldfieldtype': u'Select', - 'options': u'link:Fiscal Year', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1, - 'search_index': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'amended_from', - 'fieldtype': u'Link', - 'label': u'Amended From', - 'no_copy': 1, - 'oldfieldname': u'amended_from', - 'oldfieldtype': u'Link', - 'options': u'Sales Invoice', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'description': u'The date at which current entry is corrected in the system.', - 'doctype': u'DocField', - 'fieldname': u'amendment_date', - 'fieldtype': u'Date', - 'label': u'Amendment Date', - 'no_copy': 1, - 'oldfieldname': u'amendment_date', - 'oldfieldtype': u'Date', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'depends_on': u'eval:!doc.__islocal', - 'doctype': u'DocField', - 'fieldname': u'cancel_reason', - 'fieldtype': u'Data', - 'label': u'Cancel Reason', - 'oldfieldname': u'cancel_reason', - 'oldfieldtype': u'Data', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'remarks', - 'fieldtype': u'Small Text', - 'label': u'Remarks', - 'no_copy': 1, - 'oldfieldname': u'remarks', - 'oldfieldtype': u'Text', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'advances', - 'fieldtype': u'Section Break', - 'label': u'Advances', - 'oldfieldtype': u'Section Break', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'get_advances_received', - 'fieldtype': u'Button', - 'label': u'Get Advances Received', - 'oldfieldtype': u'Button', - 'options': u'get_advances', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'advance_adjustment_details', - 'fieldtype': u'Table', - 'label': u'Sales Invoice Advance', - 'oldfieldname': u'advance_adjustment_details', - 'oldfieldtype': u'Table', - 'options': u'Sales Invoice Advance', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'packing_list', - 'fieldtype': u'Section Break', - 'label': u'Packing List', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'packing_details', - 'fieldtype': u'Table', - 'label': u'Packing Details', - 'options': u'Delivery Note Packing Item', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'sales_team_section_break', - 'fieldtype': u'Section Break', - 'label': u'Sales Team', - 'oldfieldtype': u'Section Break', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'column_break9', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'print_hide': 1, - 'width': u'50%' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'sales_partner', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Sales Partner', - 'oldfieldname': u'sales_partner', - 'oldfieldtype': u'Link', - 'options': u'Sales Partner', - 'permlevel': 0, - 'print_hide': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'column_break10', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'print_hide': 1, - 'width': u'50%' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'commission_rate', - 'fieldtype': u'Currency', - 'label': u'Commission Rate (%)', - 'oldfieldname': u'commission_rate', - 'oldfieldtype': u'Currency', - 'permlevel': 0, - 'print_hide': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'total_commission', - 'fieldtype': u'Currency', - 'label': u'Total Commission', - 'oldfieldname': u'total_commission', - 'oldfieldtype': u'Currency', - 'permlevel': 0, - 'print_hide': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'section_break2', - 'fieldtype': u'Section Break', - 'options': u'Simple', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'sales_team', - 'fieldtype': u'Table', - 'label': u'Sales Team1', - 'oldfieldname': u'sales_team', - 'oldfieldtype': u'Table', - 'options': u'Sales Team', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'recurring_invoice', - 'fieldtype': u'Section Break', - 'label': u'Recurring Invoice', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break11', - 'fieldtype': u'Column Break', - 'permlevel': 0, - 'print_hide': 1, - 'width': u'50%' - }, - - # DocField - { - 'allow_on_submit': 1, - 'colour': u'White:FFF', - 'depends_on': u'eval:doc.docstatus==1', - 'description': u'Check if recurring invoice, uncheck to stop recurring or put proper End Date', - 'doctype': u'DocField', - 'fieldname': u'convert_into_recurring_invoice', - 'fieldtype': u'Check', - 'label': u'Convert into Recurring Invoice', - 'no_copy': 1, - 'permlevel': 0, - 'print_hide': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'allow_on_submit': 1, - 'depends_on': u'eval:doc.convert_into_recurring_invoice==1', - 'description': u'Select the period when the invoice will be generated automatically', - 'doctype': u'DocField', - 'fieldname': u'recurring_type', - 'fieldtype': u'Select', - 'label': u'Recurring Type', - 'no_copy': 1, - 'options': u'Monthly\nQuarterly\nHalf-yearly\nYearly', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'allow_on_submit': 1, - 'depends_on': u'eval:doc.convert_into_recurring_invoice==1', - 'description': u'The day of the month on which auto invoice will be generated e.g. 05, 28 etc ', - 'doctype': u'DocField', - 'fieldname': u'repeat_on_day_of_month', - 'fieldtype': u'Data', - 'label': u'Repeat on Day of Month', - 'no_copy': 1, - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'allow_on_submit': 1, - 'colour': u'White:FFF', - 'depends_on': u'eval:doc.convert_into_recurring_invoice==1', - 'description': u'Start date of the invoice period', - 'doctype': u'DocField', - 'fieldname': u'invoice_period_from_date', - 'fieldtype': u'Date', - 'label': u'Invoice Period From Date', - 'no_copy': 1, - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'allow_on_submit': 1, - 'depends_on': u'eval:doc.convert_into_recurring_invoice==1', - 'description': u'End date of the invoice period', - 'doctype': u'DocField', - 'fieldname': u'invoice_period_to_date', - 'fieldtype': u'Date', - 'label': u'Invoice Period To Date', - 'no_copy': 1, - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break12', - 'fieldtype': u'Column Break', - 'no_copy': 0, - 'permlevel': 0, - 'print_hide': 1, - 'width': u'50%' - }, - - # DocField - { - 'allow_on_submit': 1, - 'depends_on': u'eval:doc.convert_into_recurring_invoice==1', - 'description': u'Enter email id separated by commas, invoice will be mailed automatically on particular date', - 'doctype': u'DocField', - 'fieldname': u'notification_email_address', - 'fieldtype': u'Small Text', - 'label': u'Notification Email Address', - 'no_copy': 1, - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'depends_on': u'eval:doc.convert_into_recurring_invoice==1', - 'description': u'The unique id for tracking all recurring invoices ', - 'doctype': u'DocField', - 'fieldname': u'recurring_id', - 'fieldtype': u'Data', - 'label': u'Recurring Id', - 'no_copy': 1, - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'depends_on': u'eval:doc.convert_into_recurring_invoice==1', - 'description': u'The date on which next invoice will be generated ', - 'doctype': u'DocField', - 'fieldname': u'next_date', - 'fieldtype': u'Date', - 'label': u'Next Date', - 'no_copy': 1, - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'allow_on_submit': 1, - 'depends_on': u'eval:doc.convert_into_recurring_invoice==1', - 'description': u'The date on which recurring invoice will be stop', - 'doctype': u'DocField', - 'fieldname': u'end_date', - 'fieldtype': u'Date', - 'label': u'End Date', - 'no_copy': 1, - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'against_income_account', - 'fieldtype': u'Small Text', - 'hidden': 1, - 'label': u'Against Income Account', - 'no_copy': 1, - 'oldfieldname': u'against_income_account', - 'oldfieldtype': u'Small Text', - 'permlevel': 0, - 'print_hide': 1, - 'report_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'file_list', - 'fieldtype': u'Text', - 'hidden': 1, - 'label': u'File List', - 'no_copy': 1, - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - 'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'Accounts Manager', - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'amend': 1, - 'cancel': 1, - 'create': 1, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Accounts Manager', - 'submit': 1, - 'write': 1 - }, - - # DocPerm - { - 'amend': 1, - 'cancel': 1, - 'create': 1, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Accounts User', - 'submit': 1, - 'write': 1 - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - 'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'Accounts User', - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'doctype': u'DocPerm', - 'match': u'customer', - 'permlevel': 0, - 'role': u'Customer' - } + { + "owner": "Administrator", + "docstatus": 0, + "creation": "2012-10-10 10:52:22", + "modified_by": "Administrator", + "modified": "2012-09-07 11:56:59" + }, + { + "is_submittable": 1, + "allow_attach": 1, + "default_print_format": "Standard", + "search_fields": "posting_date, due_date, debit_to, fiscal_year, grand_total, outstanding_amount", + "module": "Accounts", + "doctype": "DocType", + "read_only_onload": 1, + "name": "__common__" + }, + { + "name": "__common__", + "parent": "Sales Invoice", + "doctype": "DocField", + "parenttype": "DocType", + "parentfield": "fields" + }, + { + "name": "__common__", + "parent": "Sales Invoice", + "doctype": "DocPerm", + "parenttype": "DocType", + "parentfield": "permissions" + }, + { + "name": "Sales Invoice", + "doctype": "DocType" + }, + { + "print_hide": 0, + "oldfieldtype": "Column Break", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break0", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "To manage multiple series please go to Setup > Manage Series", + "no_copy": 1, + "oldfieldtype": "Select", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Series", + "oldfieldname": "naming_series", + "permlevel": 0, + "fieldname": "naming_series", + "fieldtype": "Select", + "reqd": 1, + "options": "INV\nINV/10-11/" + }, + { + "print_hide": 1, + "oldfieldtype": "Check", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Is POS", + "oldfieldname": "is_pos", + "fieldname": "is_pos", + "fieldtype": "Check", + "permlevel": 0 + }, + { + "print_hide": 1, + "default": "1", + "oldfieldtype": "Check", + "doctype": "DocField", + "label": "Update Stock", + "oldfieldname": "update_stock", + "fieldname": "update_stock", + "fieldtype": "Check", + "depends_on": "eval:doc.is_pos==1", + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "The account to which you will pay (have paid) the money to.", + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Debit To", + "oldfieldname": "debit_to", + "permlevel": 0, + "trigger": "Client", + "fieldname": "debit_to", + "fieldtype": "Link", + "search_index": 1, + "reqd": 1, + "in_filter": 1, + "options": "Account" + }, + { + "print_hide": 1, + "no_copy": 0, + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Customer", + "oldfieldname": "customer", + "permlevel": 0, + "trigger": "Client", + "fieldname": "customer", + "fieldtype": "Link", + "hidden": 0, + "options": "Customer" + }, + { + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "Name", + "oldfieldname": "customer_name", + "fieldname": "customer_name", + "fieldtype": "Data", + "hidden": 1, + "permlevel": 1 + }, + { + "doctype": "DocField", + "label": "Address", + "fieldname": "address_display", + "fieldtype": "Small Text", + "hidden": 1, + "permlevel": 1 + }, + { + "doctype": "DocField", + "label": "Contact", + "fieldname": "contact_display", + "fieldtype": "Small Text", + "hidden": 1, + "permlevel": 1 + }, + { + "doctype": "DocField", + "label": "Mobile No", + "fieldname": "contact_mobile", + "fieldtype": "Text", + "hidden": 1, + "permlevel": 1 + }, + { + "print_hide": 1, + "doctype": "DocField", + "label": "Contact Email", + "fieldname": "contact_email", + "fieldtype": "Text", + "hidden": 1, + "permlevel": 1 + }, + { + "oldfieldtype": "Column Break", + "colour": "White:FFF", + "doctype": "DocField", + "fieldname": "column_break1", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 0, + "description": "The date at which current entry will get or has actually executed.", + "default": "Today", + "oldfieldtype": "Date", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Posting Date", + "oldfieldname": "posting_date", + "no_copy": 1, + "fieldname": "posting_date", + "fieldtype": "Date", + "search_index": 1, + "reqd": 1, + "in_filter": 1, + "permlevel": 0 + }, + { + "description": "Enter the date by which payments from customer is expected against this invoice.", + "default": "Today", + "oldfieldtype": "Date", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Due Date", + "oldfieldname": "due_date", + "no_copy": 1, + "fieldname": "due_date", + "fieldtype": "Date", + "search_index": 0, + "reqd": 1, + "in_filter": 1, + "permlevel": 0 + }, + { + "oldfieldtype": "Select", + "doctype": "DocField", + "label": "Mode of Payment", + "oldfieldname": "mode_of_payment", + "options": "link:Mode of Payment", + "fieldname": "mode_of_payment", + "fieldtype": "Select", + "permlevel": 0 + }, + { + "oldfieldtype": "Section Break", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Items", + "fieldname": "items", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "allow_on_submit": 1, + "oldfieldtype": "Table", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Entries", + "oldfieldname": "entries", + "options": "Sales Invoice Item", + "fieldname": "entries", + "fieldtype": "Table", + "permlevel": 0 + }, + { + "print_hide": 1, + "doctype": "DocField", + "label": "Sales BOM Help", + "fieldname": "sales_bom_help", + "fieldtype": "HTML", + "permlevel": 0 + }, + { + "doctype": "DocField", + "options": "Simple", + "fieldname": "section_break0", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "doctype": "DocField", + "width": "50%", + "fieldname": "col_break26", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 0, + "description": "Will be calculated automatically when you enter the details", + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Net Total*", + "oldfieldname": "net_total", + "fieldname": "net_total", + "fieldtype": "Currency", + "reqd": 1, + "permlevel": 1 + }, + { + "print_hide": 1, + "oldfieldtype": "Button", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Re-Calculate Values", + "trigger": "Client", + "fieldname": "recalculate_values", + "fieldtype": "Button", + "permlevel": 0 + }, + { + "doctype": "DocField", + "width": "50%", + "fieldname": "col_break25", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "Select Items from Sales Order", + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Sales Order", + "oldfieldname": "sales_order_main", + "options": "Sales Order", + "fieldname": "sales_order_main", + "fieldtype": "Link", + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "Select Items from Delivery Note", + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Delivery Note", + "oldfieldname": "delivery_note_main", + "options": "Delivery Note", + "fieldname": "delivery_note_main", + "fieldtype": "Link", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Button", + "doctype": "DocField", + "label": "Get Items", + "trigger": "Client", + "fieldname": "get_items", + "fieldtype": "Button", + "permlevel": 0 + }, + { + "doctype": "DocField", + "label": "Price List and Currency", + "fieldname": "currency_section", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "doctype": "DocField", + "width": "50%", + "fieldname": "col_break27", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Select", + "doctype": "DocField", + "label": "Price List", + "oldfieldname": "price_list_name", + "options": "link:Price List", + "fieldname": "price_list_name", + "fieldtype": "Select", + "reqd": 1, + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "Select the currency in which price list is maintained", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Price List Currency", + "options": "link:Currency", + "fieldname": "price_list_currency", + "fieldtype": "Select", + "reqd": 1, + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "Rate at which Price list currency is converted to customer's base currency", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Price List Currency Conversion Rate", + "fieldname": "plc_conversion_rate", + "fieldtype": "Float", + "reqd": 1, + "permlevel": 0 + }, + { + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break2", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Select", + "doctype": "DocField", + "label": "Currency", + "oldfieldname": "currency", + "options": "link:Currency", + "fieldname": "currency", + "fieldtype": "Select", + "reqd": 1, + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "Rate at which Customer Currency is converted to customer's base currency", + "default": "1.00", + "oldfieldtype": "Currency", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Conversion Rate", + "oldfieldname": "conversion_rate", + "fieldname": "conversion_rate", + "fieldtype": "Float", + "reqd": 1, + "permlevel": 0 + }, + { + "oldfieldtype": "Section Break", + "doctype": "DocField", + "label": "Taxes and Charges", + "fieldname": "taxes", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Link", + "doctype": "DocField", + "label": "Taxes and Charges", + "oldfieldname": "charge", + "options": "Sales Taxes and Charges Master", + "fieldname": "charge", + "fieldtype": "Link", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Button", + "doctype": "DocField", + "label": "Get Taxes and Charges", + "trigger": "Client", + "fieldname": "get_charges", + "fieldtype": "Button", + "permlevel": 0 + }, + { + "allow_on_submit": 1, + "oldfieldtype": "Table", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Taxes and Charges1", + "oldfieldname": "other_charges", + "options": "Sales Taxes and Charges", + "fieldname": "other_charges", + "fieldtype": "Table", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Button", + "doctype": "DocField", + "label": "Calculate Taxes and Charges", + "trigger": "Client", + "fieldname": "calculate_charges", + "fieldtype": "Button", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Total Taxes and Charges", + "oldfieldname": "other_charges_total", + "fieldname": "other_charges_total", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "print_hide": 1, + "oldfieldtype": "HTML", + "doctype": "DocField", + "label": "Taxes and Charges Calculation", + "fieldname": "other_charges_calculation", + "fieldtype": "HTML", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Section Break", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Totals", + "fieldname": "totals", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Column Break", + "colour": "White:FFF", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break5", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Currency", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Grand Total", + "oldfieldname": "grand_total", + "fieldname": "grand_total", + "fieldtype": "Currency", + "search_index": 0, + "reqd": 1, + "permlevel": 1, + "in_filter": 1 + }, + { + "print_hide": 1, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Rounded Total", + "oldfieldname": "rounded_total", + "fieldname": "rounded_total", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "print_hide": 1, + "description": "In Words will be visible once you save the Sales Invoice.", + "oldfieldtype": "Data", + "colour": "White:FFF", + "doctype": "DocField", + "label": "In Words", + "oldfieldname": "in_words", + "fieldname": "in_words", + "fieldtype": "Data", + "permlevel": 1 + }, + { + "print_hide": 1, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Total Advance", + "oldfieldname": "total_advance", + "fieldname": "total_advance", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Currency", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Outstanding Amount", + "oldfieldname": "outstanding_amount", + "fieldname": "outstanding_amount", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "print_hide": 1, + "oldfieldtype": "Column Break", + "colour": "White:FFF", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break6", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 0, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Grand Total (Export)", + "oldfieldname": "grand_total_export", + "fieldname": "grand_total_export", + "fieldtype": "Currency", + "reqd": 1, + "permlevel": 1 + }, + { + "print_hide": 0, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Rounded Total (Export)", + "oldfieldname": "rounded_total_export", + "fieldname": "rounded_total_export", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "print_hide": 0, + "oldfieldtype": "Data", + "colour": "White:FFF", + "doctype": "DocField", + "label": "In Words (Export)", + "oldfieldname": "in_words_export", + "fieldname": "in_words_export", + "fieldtype": "Data", + "permlevel": 1 + }, + { + "print_hide": 1, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Gross Profit", + "oldfieldname": "gross_profit", + "fieldname": "gross_profit", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "print_hide": 1, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Gross Profit (%)", + "oldfieldname": "gross_profit_percent", + "fieldname": "gross_profit_percent", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "colour": "White:FFF", + "doctype": "DocField", + "label": "Payments", + "fieldname": "payments_section", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "colour": "White:FFF", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break3", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Currency", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Paid Amount", + "oldfieldname": "paid_amount", + "trigger": "Client", + "fieldname": "paid_amount", + "fieldtype": "Currency", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Cash/Bank Account", + "oldfieldname": "cash_bank_account", + "options": "Account", + "fieldname": "cash_bank_account", + "fieldtype": "Link", + "permlevel": 0 + }, + { + "colour": "White:FFF", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break4", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "colour": "White:FFF", + "doctype": "DocField", + "label": "Write Off Outstanding Amount", + "fieldname": "write_off_outstanding_amount_automatically", + "fieldtype": "Check", + "permlevel": 0 + }, + { + "print_hide": 1, + "colour": "White:FFF", + "doctype": "DocField", + "label": "Write Off Amount", + "fieldname": "write_off_amount", + "fieldtype": "Currency", + "permlevel": 0 + }, + { + "print_hide": 1, + "colour": "White:FFF", + "doctype": "DocField", + "label": "Write Off Account", + "options": "Account", + "fieldname": "write_off_account", + "fieldtype": "Link", + "permlevel": 0 + }, + { + "print_hide": 1, + "colour": "White:FFF", + "doctype": "DocField", + "label": "Write Off Cost Center", + "options": "Cost Center", + "fieldname": "write_off_cost_center", + "fieldtype": "Link", + "permlevel": 0 + }, + { + "oldfieldtype": "Section Break", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Terms and Conditions", + "fieldname": "terms_section_break", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Link", + "doctype": "DocField", + "label": "Select Terms and Conditions", + "oldfieldname": "tc_name", + "options": "Terms and Conditions", + "fieldname": "tc_name", + "fieldtype": "Link", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Button", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Get Terms and Conditions", + "trigger": "Server", + "fieldname": "get_terms", + "fieldtype": "Button", + "options": "get_tc_details", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "HTML", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Terms and Conditions HTML", + "options": "You can add Terms and Notes that will be printed in the Transaction", + "fieldname": "terms_html", + "fieldtype": "HTML", + "permlevel": 0 + }, + { + "oldfieldtype": "Text Editor", + "doctype": "DocField", + "label": "Terms and Conditions Details", + "oldfieldname": "terms", + "fieldname": "terms", + "fieldtype": "Text Editor", + "permlevel": 0 + }, + { + "doctype": "DocField", + "label": "Contact Info", + "fieldname": "contact_section", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "doctype": "DocField", + "width": "50%", + "fieldname": "col_break23", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "doctype": "DocField", + "label": "Customer Address", + "options": "Address", + "fieldname": "customer_address", + "fieldtype": "Link", + "permlevel": 0 + }, + { + "print_hide": 1, + "doctype": "DocField", + "label": "Contact Person", + "options": "Contact", + "fieldname": "contact_person", + "fieldtype": "Link", + "permlevel": 0 + }, + { + "doctype": "DocField", + "width": "50%", + "fieldname": "col_break24", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "search_index": 0, + "doctype": "DocField", + "label": "Territory", + "options": "Territory", + "fieldname": "territory", + "fieldtype": "Link", + "reqd": 1, + "permlevel": 0, + "in_filter": 1 + }, + { + "print_hide": 1, + "search_index": 0, + "doctype": "DocField", + "label": "Customer Group", + "options": "Customer Group", + "fieldname": "customer_group", + "fieldtype": "Link", + "permlevel": 0, + "in_filter": 1 + }, + { + "print_hide": 1, + "oldfieldtype": "Section Break", + "colour": "White:FFF", + "doctype": "DocField", + "label": "More Info", + "fieldname": "more_info", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Column Break", + "colour": "White:FFF", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break7", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "default": "No", + "oldfieldtype": "Select", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Is Opening", + "oldfieldname": "is_opening", + "permlevel": 0, + "trigger": "Client", + "fieldname": "is_opening", + "fieldtype": "Select", + "search_index": 0, + "options": "No\nYes", + "in_filter": 1 + }, + { + "print_hide": 1, + "oldfieldtype": "Date", + "doctype": "DocField", + "label": "Aging Date", + "oldfieldname": "aging_date", + "fieldname": "aging_date", + "fieldtype": "Date", + "permlevel": 0 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Time", + "doctype": "DocField", + "label": "Posting Time", + "oldfieldname": "posting_time", + "fieldname": "posting_time", + "fieldtype": "Time", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Select", + "colour": "White:FFF", + "allow_on_submit": 1, + "doctype": "DocField", + "label": "Letter Head", + "oldfieldname": "letter_head", + "options": "link:Letter Head", + "fieldname": "letter_head", + "fieldtype": "Select", + "permlevel": 0 + }, + { + "print_hide": 1, + "no_copy": 1, + "doctype": "DocField", + "label": "C-Form Applicable", + "options": "No\nYes", + "fieldname": "c_form_applicable", + "fieldtype": "Select", + "permlevel": 0, + "report_hide": 0 + }, + { + "print_hide": 1, + "no_copy": 1, + "doctype": "DocField", + "label": "C-Form No", + "options": "C-Form", + "fieldname": "c_form_no", + "fieldtype": "Link", + "permlevel": 1 + }, + { + "print_hide": 1, + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Campaign", + "oldfieldname": "campaign", + "options": "Campaign", + "fieldname": "campaign", + "fieldtype": "Link", + "depends_on": "eval:doc.source == 'Campaign'", + "permlevel": 0 + }, + { + "description": "Track this Sales Invoice against any Project", + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Project Name", + "oldfieldname": "project_name", + "permlevel": 0, + "trigger": "Client", + "fieldname": "project_name", + "fieldtype": "Link", + "search_index": 1, + "in_filter": 1, + "options": "Project" + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Link", + "colour": "White:FFF", + "allow_on_submit": 1, + "doctype": "DocField", + "label": "Select Print Heading", + "oldfieldname": "select_print_heading", + "permlevel": 0, + "trigger": "Client", + "fieldname": "select_print_heading", + "fieldtype": "Link", + "options": "Print Heading", + "report_hide": 1 + }, + { + "print_hide": 1, + "oldfieldtype": "Column Break", + "colour": "White:FFF", + "doctype": "DocField", + "fieldname": "column_break8", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Select", + "doctype": "DocField", + "label": "Source", + "oldfieldname": "source", + "options": "\nExisting Customer\nReference\nAdvertisement\nCold Calling\nExhibition\nSupplier Reference\nMass Mailing\nCustomer's Vendor\nCampaign", + "fieldname": "source", + "fieldtype": "Select", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Link", + "doctype": "DocField", + "label": "Company", + "oldfieldname": "company", + "permlevel": 0, + "fieldname": "company", + "fieldtype": "Link", + "search_index": 0, + "reqd": 1, + "options": "Company", + "in_filter": 1 + }, + { + "print_hide": 1, + "no_copy": 0, + "oldfieldtype": "Select", + "doctype": "DocField", + "label": "Fiscal Year", + "oldfieldname": "fiscal_year", + "permlevel": 0, + "fieldname": "fiscal_year", + "fieldtype": "Select", + "search_index": 0, + "reqd": 1, + "options": "link:Fiscal Year", + "in_filter": 1 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Link", + "doctype": "DocField", + "label": "Amended From", + "oldfieldname": "amended_from", + "options": "Sales Invoice", + "fieldname": "amended_from", + "fieldtype": "Link", + "permlevel": 1 + }, + { + "print_hide": 1, + "description": "The date at which current entry is corrected in the system.", + "no_copy": 1, + "oldfieldtype": "Date", + "doctype": "DocField", + "label": "Amendment Date", + "oldfieldname": "amendment_date", + "fieldname": "amendment_date", + "fieldtype": "Date", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Data", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Cancel Reason", + "oldfieldname": "cancel_reason", + "fieldname": "cancel_reason", + "fieldtype": "Data", + "depends_on": "eval:!doc.__islocal", + "permlevel": 1 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Text", + "doctype": "DocField", + "label": "Remarks", + "oldfieldname": "remarks", + "fieldname": "remarks", + "fieldtype": "Small Text", + "reqd": 0, + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Section Break", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Advances", + "fieldname": "advances", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Button", + "doctype": "DocField", + "label": "Get Advances Received", + "options": "get_advances", + "fieldname": "get_advances_received", + "fieldtype": "Button", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Table", + "doctype": "DocField", + "label": "Sales Invoice Advance", + "oldfieldname": "advance_adjustment_details", + "options": "Sales Invoice Advance", + "fieldname": "advance_adjustment_details", + "fieldtype": "Table", + "permlevel": 0 + }, + { + "print_hide": 1, + "doctype": "DocField", + "label": "Packing List", + "fieldname": "packing_list", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "doctype": "DocField", + "label": "Packing Details", + "options": "Delivery Note Packing Item", + "fieldname": "packing_details", + "fieldtype": "Table", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Section Break", + "doctype": "DocField", + "label": "Sales Team", + "fieldname": "sales_team_section_break", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Column Break", + "colour": "White:FFF", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break9", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Link", + "doctype": "DocField", + "label": "Sales Partner", + "oldfieldname": "sales_partner", + "trigger": "Client", + "fieldname": "sales_partner", + "fieldtype": "Link", + "options": "Sales Partner", + "permlevel": 0, + "in_filter": 1 + }, + { + "print_hide": 1, + "oldfieldtype": "Column Break", + "colour": "White:FFF", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break10", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Commission Rate (%)", + "oldfieldname": "commission_rate", + "trigger": "Client", + "fieldname": "commission_rate", + "fieldtype": "Currency", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Currency", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Total Commission", + "oldfieldname": "total_commission", + "trigger": "Client", + "fieldname": "total_commission", + "fieldtype": "Currency", + "permlevel": 0 + }, + { + "print_hide": 1, + "doctype": "DocField", + "options": "Simple", + "fieldname": "section_break2", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Table", + "doctype": "DocField", + "label": "Sales Team1", + "oldfieldname": "sales_team", + "options": "Sales Team", + "fieldname": "sales_team", + "fieldtype": "Table", + "permlevel": 0 + }, + { + "print_hide": 1, + "colour": "White:FFF", + "doctype": "DocField", + "label": "Recurring Invoice", + "fieldname": "recurring_invoice", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break11", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "Check if recurring invoice, uncheck to stop recurring or put proper End Date", + "no_copy": 1, + "depends_on": "eval:doc.docstatus==1", + "colour": "White:FFF", + "allow_on_submit": 1, + "doctype": "DocField", + "label": "Convert into Recurring Invoice", + "trigger": "Client", + "fieldname": "convert_into_recurring_invoice", + "fieldtype": "Check", + "permlevel": 0 + }, + { + "print_hide": 1, + "allow_on_submit": 1, + "description": "Select the period when the invoice will be generated automatically", + "no_copy": 1, + "depends_on": "eval:doc.convert_into_recurring_invoice==1", + "doctype": "DocField", + "label": "Recurring Type", + "options": "Monthly\nQuarterly\nHalf-yearly\nYearly", + "fieldname": "recurring_type", + "fieldtype": "Select", + "permlevel": 0 + }, + { + "print_hide": 1, + "allow_on_submit": 1, + "description": "The day of the month on which auto invoice will be generated e.g. 05, 28 etc ", + "no_copy": 1, + "depends_on": "eval:doc.convert_into_recurring_invoice==1", + "doctype": "DocField", + "label": "Repeat on Day of Month", + "fieldname": "repeat_on_day_of_month", + "fieldtype": "Data", + "permlevel": 0 + }, + { + "print_hide": 1, + "allow_on_submit": 1, + "description": "Start date of the invoice period", + "no_copy": 1, + "depends_on": "eval:doc.convert_into_recurring_invoice==1", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Invoice Period From Date", + "fieldname": "invoice_period_from_date", + "fieldtype": "Date", + "permlevel": 0 + }, + { + "print_hide": 1, + "allow_on_submit": 1, + "description": "End date of the invoice period", + "no_copy": 1, + "depends_on": "eval:doc.convert_into_recurring_invoice==1", + "doctype": "DocField", + "label": "Invoice Period To Date", + "fieldname": "invoice_period_to_date", + "fieldtype": "Date", + "permlevel": 0 + }, + { + "print_hide": 1, + "no_copy": 0, + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break12", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "allow_on_submit": 1, + "description": "Enter email id separated by commas, invoice will be mailed automatically on particular date", + "no_copy": 1, + "depends_on": "eval:doc.convert_into_recurring_invoice==1", + "doctype": "DocField", + "label": "Notification Email Address", + "fieldname": "notification_email_address", + "fieldtype": "Small Text", + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "The unique id for tracking all recurring invoices ", + "no_copy": 1, + "depends_on": "eval:doc.convert_into_recurring_invoice==1", + "doctype": "DocField", + "label": "Recurring Id", + "fieldname": "recurring_id", + "fieldtype": "Data", + "permlevel": 1 + }, + { + "print_hide": 1, + "description": "The date on which next invoice will be generated ", + "no_copy": 1, + "depends_on": "eval:doc.convert_into_recurring_invoice==1", + "doctype": "DocField", + "label": "Next Date", + "fieldname": "next_date", + "fieldtype": "Date", + "permlevel": 1 + }, + { + "print_hide": 1, + "allow_on_submit": 1, + "description": "The date on which recurring invoice will be stop", + "no_copy": 1, + "depends_on": "eval:doc.convert_into_recurring_invoice==1", + "doctype": "DocField", + "label": "End Date", + "fieldname": "end_date", + "fieldtype": "Date", + "permlevel": 0 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Small Text", + "doctype": "DocField", + "label": "Against Income Account", + "oldfieldname": "against_income_account", + "fieldname": "against_income_account", + "fieldtype": "Small Text", + "hidden": 1, + "permlevel": 0, + "report_hide": 1 + }, + { + "print_hide": 1, + "no_copy": 1, + "doctype": "DocField", + "label": "File List", + "fieldname": "file_list", + "fieldtype": "Text", + "hidden": 1, + "permlevel": 0 + }, + { + "doctype": "DocPerm", + "role": "Material Manager", + "permlevel": 0 + }, + { + "amend": 1, + "create": 1, + "doctype": "DocPerm", + "submit": 1, + "write": 1, + "read": 1, + "role": "Accounts User", + "permlevel": 0, + "cancel": 1 + }, + { + "amend": 0, + "create": 0, + "doctype": "DocPerm", + "submit": 0, + "write": 0, + "read": 1, + "role": "Accounts User", + "permlevel": 1, + "cancel": 0 + }, + { + "read": 1, + "doctype": "DocPerm", + "role": "Customer", + "permlevel": 0, + "match": "customer" + }, + { + "amend": 0, + "create": 0, + "doctype": "DocPerm", + "submit": 0, + "write": 0, + "read": 1, + "role": "Accounts Manager", + "permlevel": 1, + "cancel": 0 + }, + { + "amend": 1, + "create": 1, + "doctype": "DocPerm", + "submit": 1, + "write": 1, + "read": 1, + "role": "Accounts Manager", + "permlevel": 0, + "cancel": 1 + } ] \ No newline at end of file diff --git a/accounts/page/financial_analytics/financial_analytics.js b/accounts/page/financial_analytics/financial_analytics.js index 06c8a29fab..cf96258044 100644 --- a/accounts/page/financial_analytics/financial_analytics.js +++ b/accounts/page/financial_analytics/financial_analytics.js @@ -76,7 +76,7 @@ erpnext.FinancialAnalytics = erpnext.AccountTreeGrid.extend({ }, init_filter_values: function() { this._super(); - this.filter_inputs.range.val('Weekly'); + this.filter_inputs.range.val('Monthly'); }, prepare_balances: function() { var me = this; @@ -141,6 +141,46 @@ erpnext.FinancialAnalytics = erpnext.AccountTreeGrid.extend({ } this.update_groups(); this.accounts_initialized = true; + + if(!me.is_default("company")) { + // show Net Profit / Loss + var net_profit = { + company: me.company, + id: "Net Profit / Loss", + name: "Net Profit / Loss", + indent: 0, + opening: 0, + checked: false, + is_pl_account: me.pl_or_bs=="Balance Sheet" ? "No" : "Yes", + }; + me.item_by_name[net_profit.name] = net_profit; + + $.each(me.data, function(i, ac) { + if(!ac.parent_account && me.apply_filter(ac, "company")) { + if(me.pl_or_bs == "Balance Sheet") { + var valid_account = ac.is_pl_account!="Yes"; + var do_addition_for = "Debit"; + } else { + var valid_account = ac.is_pl_account=="Yes"; + var do_addition_for = "Credit"; + } + if(valid_account) { + $.each(me.columns, function(i, col) { + if(col.formatter==me.currency_formatter) { + if(!net_profit[col.field]) net_profit[col.field] = 0; + if(ac.debit_or_credit==do_addition_for) { + net_profit[col.field] += ac[col.field]; + } else { + net_profit[col.field] -= ac[col.field]; + } + } + }); + } + } + }); + + this.data.push(net_profit); + } }, add_balance: function(field, account, gl) { account[field] = flt(account[field]) + diff --git a/buying/doctype/purchase_order/purchase_order.txt b/buying/doctype/purchase_order/purchase_order.txt index b1a70bb506..61a30d7151 100644 --- a/buying/doctype/purchase_order/purchase_order.txt +++ b/buying/doctype/purchase_order/purchase_order.txt @@ -1,1081 +1,892 @@ -# DocType, Purchase Order [ - - # These values are common in all dictionaries - { - 'creation': '2012-07-02 14:44:19', - 'docstatus': 0, - 'modified': '2012-08-06 17:14:19', - 'modified_by': u'Administrator', - 'owner': u'Administrator' - }, - - # These values are common for all DocType - { - '_last_update': u'1330339817', - 'allow_attach': 1, - 'colour': u'White:FFF', - 'default_print_format': u'Standard', - 'doctype': 'DocType', - 'document_type': u'Transaction', - 'is_submittable': 1, - 'is_transaction_doc': 1, - 'module': u'Buying', - 'name': '__common__', - 'read_only_onload': 1, - 'search_fields': u'status, transaction_date, supplier,grand_total', - 'section_style': u'Tabbed', - 'server_code_error': u' ', - 'show_in_menu': 0, - 'subject': u'To %(supplier_name)s on %(transaction_date)s | %(per_received)s% delivered', - 'version': 1 - }, - - # These values are common for all DocField - { - 'doctype': u'DocField', - 'name': '__common__', - 'parent': u'Purchase Order', - 'parentfield': u'fields', - 'parenttype': u'DocType' - }, - - # These values are common for all DocPerm - { - 'doctype': u'DocPerm', - 'name': '__common__', - 'parent': u'Purchase Order', - 'parentfield': u'permissions', - 'parenttype': u'DocType', - 'read': 1 - }, - - # DocType, Purchase Order - { - 'doctype': 'DocType', - 'name': u'Purchase Order' - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'basic_info', - 'fieldtype': u'Section Break', - 'label': u'Basic Info', - 'oldfieldtype': u'Section Break', - 'permlevel': 0, - 'print_hide': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break0', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'To manage multiple series please go to Setup > Manage Series', - 'doctype': u'DocField', - 'fieldname': u'naming_series', - 'fieldtype': u'Select', - 'label': u'Series', - 'no_copy': 1, - 'oldfieldname': u'naming_series', - 'oldfieldtype': u'Select', - 'options': u'\nPO', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Supplier (vendor) name as entered in supplier master', - 'doctype': u'DocField', - 'fieldname': u'supplier', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Supplier', - 'oldfieldname': u'supplier', - 'oldfieldtype': u'Link', - 'options': u'Supplier', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1, - 'search_index': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'supplier_name', - 'fieldtype': u'Data', - 'hidden': 1, - 'label': u'Name', - 'permlevel': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'address_display', - 'fieldtype': u'Small Text', - 'hidden': 1, - 'label': u'Address', - 'permlevel': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'contact_display', - 'fieldtype': u'Small Text', - 'hidden': 1, - 'label': u'Contact', - 'permlevel': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'contact_mobile', - 'fieldtype': u'Text', - 'hidden': 1, - 'label': u'Mobile No', - 'permlevel': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'contact_email', - 'fieldtype': u'Text', - 'hidden': 1, - 'label': u'Contact Email', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break1', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'print_hide': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'The date at which current entry is made in system.', - 'doctype': u'DocField', - 'fieldname': u'transaction_date', - 'fieldtype': u'Date', - 'in_filter': 1, - 'label': u'Purchase Order Date', - 'oldfieldname': u'transaction_date', - 'oldfieldtype': u'Date', - 'permlevel': 0, - 'reqd': 1, - 'search_index': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'items', - 'fieldtype': u'Section Break', - 'label': u'Items', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'allow_on_submit': 1, - 'doctype': u'DocField', - 'fieldname': u'po_details', - 'fieldtype': u'Table', - 'label': u'Purchase Order Items', - 'no_copy': 0, - 'oldfieldname': u'po_details', - 'oldfieldtype': u'Table', - 'options': u'Purchase Order Item', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'section_break0', - 'fieldtype': u'Section Break', - 'options': u'Simple', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break2', - 'fieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'net_total', - 'fieldtype': u'Currency', - 'label': u'Net Total*', - 'no_copy': 1, - 'oldfieldname': u'net_total', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1, - 'reqd': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'net_total_import', - 'fieldtype': u'Currency', - 'label': u'Net Total (Import)', - 'no_copy': 0, - 'oldfieldname': u'net_total_import', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'get_last_purchase_rate', - 'fieldtype': u'Button', - 'label': u'Get Last Purchase Rate', - 'oldfieldtype': u'Button', - 'permlevel': 0, - 'print_hide': 0, - 'trigger': u'Client' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'recalculate_values', - 'fieldtype': u'Button', - 'label': u'Re-Calculate Values', - 'oldfieldtype': u'Button', - 'permlevel': 0, - 'trigger': u'Client' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break3', - 'fieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u"Supplier's currency", - 'doctype': u'DocField', - 'fieldname': u'currency', - 'fieldtype': u'Select', - 'label': u'Currency', - 'no_copy': 0, - 'oldfieldname': u'currency', - 'oldfieldtype': u'Select', - 'options': u'link:Currency', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'default': u'1', - 'description': u"Rate at which supplier's currency is converted to company's base currency", - 'doctype': u'DocField', - 'fieldname': u'conversion_rate', - 'fieldtype': u'Float', - 'hidden': 0, - 'label': u'Conversion Rate', - 'no_copy': 1, - 'oldfieldname': u'conversion_rate', - 'oldfieldtype': u'Currency', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'You can make a purchase order from multiple Purchase Requests. Select Purchase Requests one by one and click on the button below.', - 'doctype': u'DocField', - 'fieldname': u'indent_no', - 'fieldtype': u'Link', - 'hidden': 0, - 'label': u'Select Purchase Request', - 'no_copy': 1, - 'oldfieldname': u'indent_no', - 'oldfieldtype': u'Link', - 'options': u'Purchase Request', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'get_items', - 'fieldtype': u'Button', - 'hidden': 0, - 'label': u'Get Items', - 'no_copy': 0, - 'oldfieldtype': u'Button', - 'options': u'get_indent_details', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'description': u'You can make a purchase order from multiple Supplier Quotations. Select Supplier Quotations one by one and click on the button below.', - 'doctype': u'DocField', - 'fieldname': u'supplier_quotation', - 'fieldtype': u'Link', - 'label': u'Select Supplier Quotation', - 'no_copy': 1, - 'options': u'Supplier Quotation', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'get_supplier_quotation_items', - 'fieldtype': u'Button', - 'label': u'Get Items', - 'options': u'get_supplier_quotation_items', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'taxes', - 'fieldtype': u'Section Break', - 'label': u'Taxes', - 'oldfieldtype': u'Section Break', - 'permlevel': 0, - 'print_hide': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'If you have created a standard template in Purchase Taxes and Charges Master, select one and click on the button below.', - 'doctype': u'DocField', - 'fieldname': u'purchase_other_charges', - 'fieldtype': u'Link', - 'label': u'Purchase Taxes and Charges', - 'no_copy': 1, - 'oldfieldname': u'purchase_other_charges', - 'oldfieldtype': u'Link', - 'options': u'Purchase Taxes and Charges Master', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'get_tax_detail', - 'fieldtype': u'Button', - 'label': u'Get Tax Detail', - 'oldfieldtype': u'Button', - 'options': u'get_purchase_tax_details', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'purchase_tax_details', - 'fieldtype': u'Table', - 'label': u'Purchase Taxes and Charges', - 'no_copy': 0, - 'oldfieldname': u'purchase_tax_details', - 'oldfieldtype': u'Table', - 'options': u'Purchase Taxes and Charges', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'calculate_tax', - 'fieldtype': u'Button', - 'label': u'Calculate Tax', - 'oldfieldtype': u'Button', - 'permlevel': 0, - 'print_hide': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'tax_calculation', - 'fieldtype': u'HTML', - 'label': u'Tax Calculation', - 'no_copy': 1, - 'oldfieldtype': u'HTML', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'total_tax', - 'fieldtype': u'Currency', - 'label': u'Total Tax*', - 'no_copy': 1, - 'oldfieldname': u'total_tax', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'totals', - 'fieldtype': u'Section Break', - 'label': u'Totals', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'grand_total', - 'fieldtype': u'Currency', - 'label': u'Grand Total', - 'no_copy': 1, - 'oldfieldname': u'grand_total', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'rounded_total', - 'fieldtype': u'Currency', - 'label': u'Rounded Total', - 'oldfieldname': u'rounded_total', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'In Words will be visible once you save the Purchase Order.', - 'doctype': u'DocField', - 'fieldname': u'in_words', - 'fieldtype': u'Data', - 'label': u'In Words', - 'oldfieldname': u'in_words', - 'oldfieldtype': u'Data', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'other_charges_added', - 'fieldtype': u'Currency', - 'label': u'Taxes and Charges Added', - 'no_copy': 0, - 'oldfieldname': u'other_charges_added', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'other_charges_deducted', - 'fieldtype': u'Currency', - 'label': u'Taxes and Charges Deducted', - 'no_copy': 0, - 'oldfieldname': u'other_charges_deducted', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break4', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'print_hide': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'grand_total_import', - 'fieldtype': u'Currency', - 'label': u'Grand Total (Import)', - 'no_copy': 0, - 'oldfieldname': u'grand_total_import', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1, - 'report_hide': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'in_words_import', - 'fieldtype': u'Data', - 'label': u'In Words(Import)', - 'oldfieldname': u'in_words_import', - 'oldfieldtype': u'Data', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'other_charges_added_import', - 'fieldtype': u'Currency', - 'label': u'Taxes and Charges Added (Import)', - 'no_copy': 0, - 'oldfieldname': u'other_charges_added_import', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1, - 'report_hide': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'other_charges_deducted_import', - 'fieldtype': u'Currency', - 'label': u'Taxes and Charges Deducted (Import)', - 'no_copy': 0, - 'oldfieldname': u'other_charges_deducted_import', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1, - 'report_hide': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'terms_section_break', - 'fieldtype': u'Section Break', - 'label': u'Terms and Conditions', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'allow_on_submit': 1, - 'doctype': u'DocField', - 'fieldname': u'letter_head', - 'fieldtype': u'Select', - 'label': u'Letter Head', - 'oldfieldname': u'letter_head', - 'oldfieldtype': u'Select', - 'options': u'link:Letter Head', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'tc_name', - 'fieldtype': u'Link', - 'label': u'Select Terms and Conditions', - 'oldfieldname': u'tc_name', - 'oldfieldtype': u'Link', - 'options': u'Terms and Conditions', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'get_terms', - 'fieldtype': u'Button', - 'label': u'Get Terms and Conditions', - 'oldfieldtype': u'Button', - 'options': u'get_tc_details', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'terms_html', - 'fieldtype': u'HTML', - 'label': u'Terms and Conditions HTML', - 'oldfieldtype': u'HTML', - 'options': u'You can add Terms and Notes that will be printed in the Transaction', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'terms', - 'fieldtype': u'Text Editor', - 'label': u'Terms and Conditions1', - 'oldfieldname': u'terms', - 'oldfieldtype': u'Text Editor', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'contact_section', - 'fieldtype': u'Section Break', - 'label': u'Contact Info', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'supplier_address', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Supplier Address', - 'options': u'Address', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'contact_person', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Contact Person', - 'options': u'Contact', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'more_info', - 'fieldtype': u'Section Break', - 'label': u'More Info', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'status', - 'fieldtype': u'Select', - 'in_filter': 1, - 'label': u'Status', - 'no_copy': 1, - 'oldfieldname': u'status', - 'oldfieldtype': u'Select', - 'options': u'\nDraft\nSubmitted\nStopped\nCancelled', - 'permlevel': 1, - 'print_hide': 1, - 'reqd': 1, - 'search_index': 1 - }, - - # DocField - { - 'default': u'No', - 'doctype': u'DocField', - 'fieldname': u'is_subcontracted', - 'fieldtype': u'Select', - 'label': u'Is Subcontracted', - 'options': u'\nYes\nNo', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'ref_sq', - 'fieldtype': u'Data', - 'hidden': 1, - 'label': u'Ref SQ', - 'no_copy': 1, - 'oldfieldname': u'ref_sq', - 'oldfieldtype': u'Data', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'amended_from', - 'fieldtype': u'Data', - 'hidden': 0, - 'label': u'Amended From', - 'no_copy': 1, - 'oldfieldname': u'amended_from', - 'oldfieldtype': u'Data', - 'permlevel': 1, - 'print_hide': 1, - 'report_hide': 0 - }, - - # DocField - { - 'description': u'The date at which current entry is corrected in the system.', - 'doctype': u'DocField', - 'fieldname': u'amendment_date', - 'fieldtype': u'Date', - 'hidden': 0, - 'label': u'Amendment Date', - 'no_copy': 1, - 'oldfieldname': u'amendment_date', - 'oldfieldtype': u'Date', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Select the relevant company name if you have multiple companies', - 'doctype': u'DocField', - 'fieldname': u'company', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Company', - 'no_copy': 0, - 'oldfieldname': u'company', - 'oldfieldtype': u'Link', - 'options': u'Company', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1, - 'search_index': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'fiscal_year', - 'fieldtype': u'Select', - 'in_filter': 1, - 'label': u'Fiscal Year', - 'no_copy': 0, - 'oldfieldname': u'fiscal_year', - 'oldfieldtype': u'Select', - 'options': u'link:Fiscal Year', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1, - 'search_index': 1 - }, - - # DocField - { - 'allow_on_submit': 1, - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'select_print_heading', - 'fieldtype': u'Link', - 'label': u'Select Print Heading', - 'no_copy': 1, - 'oldfieldname': u'select_print_heading', - 'oldfieldtype': u'Link', - 'options': u'Print Heading', - 'permlevel': 0, - 'print_hide': 1, - 'report_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'instructions', - 'fieldtype': u'Text', - 'label': u'Instructions', - 'oldfieldname': u'instructions', - 'oldfieldtype': u'Text', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break5', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'print_hide': 1, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'depends_on': u'eval:!doc.__islocal', - 'description': u'% of materials received against this Purchase Order', - 'doctype': u'DocField', - 'fieldname': u'per_received', - 'fieldtype': u'Currency', - 'label': u'% Received', - 'no_copy': 1, - 'oldfieldname': u'per_received', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'depends_on': u'eval:!doc.__islocal', - 'description': u'% of materials billed against this Purchase Order.', - 'doctype': u'DocField', - 'fieldname': u'per_billed', - 'fieldtype': u'Currency', - 'label': u'% Billed', - 'no_copy': 1, - 'oldfieldname': u'per_billed', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'payment_terms', - 'fieldtype': u'Text', - 'label': u'Payment Terms', - 'no_copy': 1, - 'oldfieldname': u'payment_terms', - 'oldfieldtype': u'Text', - 'permlevel': 0, - 'print_hide': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'remarks', - 'fieldtype': u'Text', - 'label': u'Remarks', - 'no_copy': 1, - 'oldfieldname': u'remarks', - 'oldfieldtype': u'Text', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'depends_on': u'eval:!doc.__islocal', - 'doctype': u'DocField', - 'fieldname': u'cancel_reason', - 'fieldtype': u'Data', - 'hidden': 0, - 'label': u'Cancel Reason', - 'no_copy': 1, - 'oldfieldname': u'cancel_reason', - 'oldfieldtype': u'Data', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Required raw materials issued to the supplier for producing a sub - contracted item.', - 'doctype': u'DocField', - 'fieldname': u'raw_material_details', - 'fieldtype': u'Section Break', - 'label': u'Raw Material Details', - 'oldfieldtype': u'Section Break', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'allow_on_submit': 1, - 'doctype': u'DocField', - 'fieldname': u'po_raw_material_details', - 'fieldtype': u'Table', - 'label': u'Purchase Order Items Supplied', - 'no_copy': 0, - 'oldfieldname': u'po_raw_material_details', - 'oldfieldtype': u'Table', - 'options': u'Purchase Order Item Supplied', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'file_list', - 'fieldtype': u'Text', - 'hidden': 1, - 'label': u'File List', - 'no_copy': 1, - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - 'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'Material User', - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Material User', - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - 'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'Purchase Manager', - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'amend': 1, - 'cancel': 1, - 'create': 1, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Purchase Manager', - 'submit': 1, - 'write': 1 - }, - - # DocPerm - { - 'amend': 1, - 'cancel': 1, - 'create': 1, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Purchase User', - 'submit': 1, - 'write': 1 - }, - - # DocPerm - { - 'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'All' - }, - - # DocPerm - { - 'doctype': u'DocPerm', - 'match': u'supplier', - 'permlevel': 0, - 'role': u'Supplier' - }, - - # DocPerm - { - 'doctype': u'DocPerm', - 'permlevel': 2, - 'role': u'All', - 'write': 1 - } + { + "owner": "Administrator", + "docstatus": 0, + "creation": "2012-08-06 20:00:37", + "modified_by": "Administrator", + "modified": "2012-08-06 17:14:19" + }, + { + "is_submittable": 1, + "allow_attach": 1, + "default_print_format": "Standard", + "search_fields": "status, transaction_date, supplier,grand_total", + "module": "Buying", + "doctype": "DocType", + "read_only_onload": 1, + "document_type": "Transaction", + "name": "__common__" + }, + { + "name": "__common__", + "parent": "Purchase Order", + "doctype": "DocField", + "parenttype": "DocType", + "parentfield": "fields" + }, + { + "name": "__common__", + "parent": "Purchase Order", + "read": 1, + "doctype": "DocPerm", + "parenttype": "DocType", + "parentfield": "permissions" + }, + { + "name": "Purchase Order", + "doctype": "DocType" + }, + { + "oldfieldtype": "Column Break", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break0", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "To manage multiple series please go to Setup > Manage Series", + "no_copy": 1, + "oldfieldtype": "Select", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Series", + "oldfieldname": "naming_series", + "permlevel": 0, + "fieldname": "naming_series", + "fieldtype": "Select", + "reqd": 1, + "options": "\nPO" + }, + { + "print_hide": 1, + "description": "Supplier (vendor) name as entered in supplier master", + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Supplier", + "oldfieldname": "supplier", + "permlevel": 0, + "trigger": "Client", + "fieldname": "supplier", + "fieldtype": "Link", + "search_index": 1, + "reqd": 1, + "in_filter": 1, + "options": "Supplier" + }, + { + "doctype": "DocField", + "label": "Name", + "fieldname": "supplier_name", + "fieldtype": "Data", + "hidden": 1, + "permlevel": 1 + }, + { + "doctype": "DocField", + "label": "Address", + "fieldname": "address_display", + "fieldtype": "Small Text", + "hidden": 1, + "permlevel": 1 + }, + { + "doctype": "DocField", + "label": "Contact", + "fieldname": "contact_display", + "fieldtype": "Small Text", + "hidden": 1, + "permlevel": 1 + }, + { + "doctype": "DocField", + "label": "Mobile No", + "fieldname": "contact_mobile", + "fieldtype": "Text", + "hidden": 1, + "permlevel": 1 + }, + { + "print_hide": 1, + "doctype": "DocField", + "label": "Contact Email", + "fieldname": "contact_email", + "fieldtype": "Text", + "hidden": 1, + "permlevel": 1 + }, + { + "print_hide": 0, + "oldfieldtype": "Column Break", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break1", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "description": "The date at which current entry is made in system.", + "oldfieldtype": "Date", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Purchase Order Date", + "oldfieldname": "transaction_date", + "trigger": "Client", + "fieldname": "transaction_date", + "fieldtype": "Date", + "search_index": 1, + "reqd": 1, + "in_filter": 1, + "permlevel": 0 + }, + { + "oldfieldtype": "Section Break", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Items", + "fieldname": "items", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "no_copy": 0, + "oldfieldtype": "Table", + "allow_on_submit": 1, + "doctype": "DocField", + "label": "Purchase Order Items", + "oldfieldname": "po_details", + "options": "Purchase Order Item", + "fieldname": "po_details", + "fieldtype": "Table", + "permlevel": 0 + }, + { + "doctype": "DocField", + "options": "Simple", + "fieldname": "section_break0", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break2", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Net Total*", + "oldfieldname": "net_total", + "fieldname": "net_total", + "fieldtype": "Currency", + "reqd": 0, + "permlevel": 1 + }, + { + "print_hide": 1, + "no_copy": 0, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Net Total (Import)", + "oldfieldname": "net_total_import", + "fieldname": "net_total_import", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "print_hide": 0, + "oldfieldtype": "Button", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Get Last Purchase Rate", + "trigger": "Client", + "fieldname": "get_last_purchase_rate", + "fieldtype": "Button", + "permlevel": 0 + }, + { + "oldfieldtype": "Button", + "doctype": "DocField", + "label": "Re-Calculate Values", + "trigger": "Client", + "fieldname": "recalculate_values", + "fieldtype": "Button", + "permlevel": 0 + }, + { + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break3", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "Supplier's currency", + "no_copy": 0, + "oldfieldtype": "Select", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Currency", + "oldfieldname": "currency", + "permlevel": 0, + "fieldname": "currency", + "fieldtype": "Select", + "reqd": 1, + "options": "link:Currency" + }, + { + "print_hide": 1, + "description": "Rate at which supplier's currency is converted to company's base currency", + "no_copy": 1, + "oldfieldtype": "Currency", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Conversion Rate", + "oldfieldname": "conversion_rate", + "default": "1", + "trigger": "Client", + "fieldname": "conversion_rate", + "fieldtype": "Float", + "reqd": 1, + "hidden": 0, + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "You can make a purchase order from multiple Purchase Requests. Select Purchase Requests one by one and click on the button below.", + "no_copy": 1, + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Select Purchase Request", + "oldfieldname": "indent_no", + "permlevel": 0, + "fieldname": "indent_no", + "fieldtype": "Link", + "hidden": 0, + "options": "Purchase Request" + }, + { + "print_hide": 1, + "no_copy": 0, + "oldfieldtype": "Button", + "doctype": "DocField", + "label": "Get Items", + "options": "get_indent_details", + "fieldname": "get_items", + "fieldtype": "Button", + "hidden": 0, + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "You can make a purchase order from multiple Supplier Quotations. Select Supplier Quotations one by one and click on the button below.", + "no_copy": 1, + "doctype": "DocField", + "label": "Select Supplier Quotation", + "options": "Supplier Quotation", + "fieldname": "supplier_quotation", + "fieldtype": "Link", + "permlevel": 0 + }, + { + "print_hide": 1, + "doctype": "DocField", + "label": "Get Items", + "options": "get_supplier_quotation_items", + "fieldname": "get_supplier_quotation_items", + "fieldtype": "Button", + "permlevel": 0 + }, + { + "print_hide": 0, + "oldfieldtype": "Section Break", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Taxes", + "fieldname": "taxes", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "If you have created a standard template in Purchase Taxes and Charges Master, select one and click on the button below.", + "no_copy": 1, + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Purchase Taxes and Charges", + "oldfieldname": "purchase_other_charges", + "permlevel": 0, + "fieldname": "purchase_other_charges", + "fieldtype": "Link", + "options": "Purchase Taxes and Charges Master" + }, + { + "print_hide": 1, + "oldfieldtype": "Button", + "doctype": "DocField", + "label": "Get Tax Detail", + "options": "get_purchase_tax_details", + "fieldname": "get_tax_detail", + "fieldtype": "Button", + "permlevel": 0 + }, + { + "no_copy": 0, + "oldfieldtype": "Table", + "doctype": "DocField", + "label": "Purchase Taxes and Charges", + "oldfieldname": "purchase_tax_details", + "options": "Purchase Taxes and Charges", + "fieldname": "purchase_tax_details", + "fieldtype": "Table", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Button", + "doctype": "DocField", + "label": "Calculate Tax", + "trigger": "Client", + "fieldname": "calculate_tax", + "fieldtype": "Button", + "permlevel": 0 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "HTML", + "doctype": "DocField", + "label": "Tax Calculation", + "fieldname": "tax_calculation", + "fieldtype": "HTML", + "permlevel": 0 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Total Tax*", + "oldfieldname": "total_tax", + "fieldname": "total_tax", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "oldfieldtype": "Section Break", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Totals", + "fieldname": "totals", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Grand Total", + "oldfieldname": "grand_total", + "fieldname": "grand_total", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "print_hide": 1, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Rounded Total", + "oldfieldname": "rounded_total", + "fieldname": "rounded_total", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "print_hide": 1, + "description": "In Words will be visible once you save the Purchase Order.", + "oldfieldtype": "Data", + "colour": "White:FFF", + "doctype": "DocField", + "label": "In Words", + "oldfieldname": "in_words", + "fieldname": "in_words", + "fieldtype": "Data", + "permlevel": 1 + }, + { + "print_hide": 1, + "no_copy": 0, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Taxes and Charges Added", + "oldfieldname": "other_charges_added", + "fieldname": "other_charges_added", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "print_hide": 1, + "no_copy": 0, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Taxes and Charges Deducted", + "oldfieldname": "other_charges_deducted", + "fieldname": "other_charges_deducted", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "print_hide": 0, + "oldfieldtype": "Column Break", + "doctype": "DocField", + "fieldname": "column_break4", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "no_copy": 0, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Grand Total (Import)", + "oldfieldname": "grand_total_import", + "fieldname": "grand_total_import", + "fieldtype": "Currency", + "permlevel": 1, + "report_hide": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Data", + "colour": "White:FFF", + "doctype": "DocField", + "label": "In Words(Import)", + "oldfieldname": "in_words_import", + "fieldname": "in_words_import", + "fieldtype": "Data", + "permlevel": 1 + }, + { + "print_hide": 1, + "no_copy": 0, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Taxes and Charges Added (Import)", + "oldfieldname": "other_charges_added_import", + "fieldname": "other_charges_added_import", + "fieldtype": "Currency", + "permlevel": 1, + "report_hide": 0 + }, + { + "print_hide": 1, + "no_copy": 0, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Taxes and Charges Deducted (Import)", + "oldfieldname": "other_charges_deducted_import", + "fieldname": "other_charges_deducted_import", + "fieldtype": "Currency", + "permlevel": 1, + "report_hide": 0 + }, + { + "oldfieldtype": "Section Break", + "doctype": "DocField", + "label": "Terms and Conditions", + "fieldname": "terms_section_break", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Select", + "allow_on_submit": 1, + "doctype": "DocField", + "label": "Letter Head", + "oldfieldname": "letter_head", + "options": "link:Letter Head", + "fieldname": "letter_head", + "fieldtype": "Select", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Link", + "doctype": "DocField", + "label": "Select Terms and Conditions", + "oldfieldname": "tc_name", + "options": "Terms and Conditions", + "fieldname": "tc_name", + "fieldtype": "Link", + "permlevel": 0 + }, + { + "oldfieldtype": "Button", + "doctype": "DocField", + "label": "Get Terms and Conditions", + "options": "get_tc_details", + "fieldname": "get_terms", + "fieldtype": "Button", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "HTML", + "doctype": "DocField", + "label": "Terms and Conditions HTML", + "options": "You can add Terms and Notes that will be printed in the Transaction", + "fieldname": "terms_html", + "fieldtype": "HTML", + "permlevel": 0 + }, + { + "oldfieldtype": "Text Editor", + "doctype": "DocField", + "label": "Terms and Conditions1", + "oldfieldname": "terms", + "fieldname": "terms", + "fieldtype": "Text Editor", + "permlevel": 0 + }, + { + "doctype": "DocField", + "label": "Contact Info", + "fieldname": "contact_section", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "doctype": "DocField", + "label": "Supplier Address", + "options": "Address", + "fieldname": "supplier_address", + "fieldtype": "Link", + "permlevel": 0, + "in_filter": 1 + }, + { + "print_hide": 1, + "doctype": "DocField", + "label": "Contact Person", + "options": "Contact", + "fieldname": "contact_person", + "fieldtype": "Link", + "permlevel": 0, + "in_filter": 1 + }, + { + "oldfieldtype": "Section Break", + "doctype": "DocField", + "label": "More Info", + "fieldname": "more_info", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Select", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Status", + "oldfieldname": "status", + "permlevel": 1, + "fieldname": "status", + "fieldtype": "Select", + "search_index": 1, + "reqd": 1, + "options": "\nDraft\nSubmitted\nStopped\nCancelled", + "in_filter": 1 + }, + { + "print_hide": 1, + "default": "No", + "doctype": "DocField", + "label": "Is Subcontracted", + "options": "\nYes\nNo", + "fieldname": "is_subcontracted", + "fieldtype": "Select", + "permlevel": 0 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "Ref SQ", + "oldfieldname": "ref_sq", + "fieldname": "ref_sq", + "fieldtype": "Data", + "hidden": 1, + "permlevel": 1 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "Amended From", + "oldfieldname": "amended_from", + "fieldname": "amended_from", + "fieldtype": "Data", + "hidden": 0, + "permlevel": 1, + "report_hide": 0 + }, + { + "print_hide": 1, + "description": "The date at which current entry is corrected in the system.", + "no_copy": 1, + "oldfieldtype": "Date", + "doctype": "DocField", + "label": "Amendment Date", + "oldfieldname": "amendment_date", + "fieldname": "amendment_date", + "fieldtype": "Date", + "hidden": 0, + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "Select the relevant company name if you have multiple companies", + "no_copy": 0, + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Company", + "oldfieldname": "company", + "permlevel": 0, + "fieldname": "company", + "fieldtype": "Link", + "search_index": 1, + "reqd": 1, + "in_filter": 1, + "options": "Company" + }, + { + "print_hide": 1, + "no_copy": 0, + "oldfieldtype": "Select", + "doctype": "DocField", + "label": "Fiscal Year", + "oldfieldname": "fiscal_year", + "permlevel": 0, + "fieldname": "fiscal_year", + "fieldtype": "Select", + "search_index": 1, + "reqd": 1, + "options": "link:Fiscal Year", + "in_filter": 1 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Link", + "colour": "White:FFF", + "allow_on_submit": 1, + "doctype": "DocField", + "label": "Select Print Heading", + "oldfieldname": "select_print_heading", + "permlevel": 0, + "fieldname": "select_print_heading", + "fieldtype": "Link", + "options": "Print Heading", + "report_hide": 1 + }, + { + "oldfieldtype": "Text", + "doctype": "DocField", + "label": "Instructions", + "oldfieldname": "instructions", + "fieldname": "instructions", + "fieldtype": "Text", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Column Break", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break5", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "% of materials received against this Purchase Order", + "no_copy": 1, + "oldfieldtype": "Currency", + "colour": "White:FFF", + "doctype": "DocField", + "label": "% Received", + "oldfieldname": "per_received", + "fieldname": "per_received", + "fieldtype": "Currency", + "depends_on": "eval:!doc.__islocal", + "permlevel": 1 + }, + { + "print_hide": 1, + "description": "% of materials billed against this Purchase Order.", + "no_copy": 1, + "oldfieldtype": "Currency", + "colour": "White:FFF", + "doctype": "DocField", + "label": "% Billed", + "oldfieldname": "per_billed", + "fieldname": "per_billed", + "fieldtype": "Currency", + "depends_on": "eval:!doc.__islocal", + "permlevel": 1 + }, + { + "print_hide": 0, + "no_copy": 1, + "oldfieldtype": "Text", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Payment Terms", + "oldfieldname": "payment_terms", + "fieldname": "payment_terms", + "fieldtype": "Text", + "permlevel": 0 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Text", + "doctype": "DocField", + "label": "Remarks", + "oldfieldname": "remarks", + "fieldname": "remarks", + "fieldtype": "Text", + "permlevel": 0 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Data", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Cancel Reason", + "oldfieldname": "cancel_reason", + "fieldname": "cancel_reason", + "fieldtype": "Data", + "depends_on": "eval:!doc.__islocal", + "hidden": 0, + "permlevel": 1 + }, + { + "print_hide": 1, + "description": "Required raw materials issued to the supplier for producing a sub - contracted item.", + "oldfieldtype": "Section Break", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Raw Material Details", + "fieldname": "raw_material_details", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "no_copy": 0, + "oldfieldtype": "Table", + "allow_on_submit": 1, + "doctype": "DocField", + "label": "Purchase Order Items Supplied", + "oldfieldname": "po_raw_material_details", + "options": "Purchase Order Item Supplied", + "fieldname": "po_raw_material_details", + "fieldtype": "Table", + "permlevel": 1 + }, + { + "print_hide": 1, + "no_copy": 1, + "doctype": "DocField", + "label": "File List", + "fieldname": "file_list", + "fieldtype": "Text", + "hidden": 1, + "permlevel": 0 + }, + { + "amend": 1, + "create": 1, + "doctype": "DocPerm", + "submit": 1, + "write": 1, + "role": "Purchase User", + "cancel": 1, + "permlevel": 0 + }, + { + "doctype": "DocPerm", + "role": "All", + "permlevel": 1 + }, + { + "doctype": "DocPerm", + "role": "Supplier", + "permlevel": 0, + "match": "supplier" + }, + { + "doctype": "DocPerm", + "write": 1, + "role": "All", + "permlevel": 2 + }, + { + "amend": 0, + "create": 0, + "doctype": "DocPerm", + "submit": 0, + "write": 0, + "role": "Purchase Manager", + "cancel": 0, + "permlevel": 1 + }, + { + "amend": 1, + "create": 1, + "doctype": "DocPerm", + "submit": 1, + "write": 1, + "role": "Purchase Manager", + "cancel": 1, + "permlevel": 0 + }, + { + "amend": 0, + "create": 0, + "doctype": "DocPerm", + "submit": 0, + "write": 0, + "role": "Material User", + "cancel": 0, + "permlevel": 1 + }, + { + "amend": 0, + "create": 0, + "doctype": "DocPerm", + "submit": 0, + "write": 0, + "role": "Material User", + "cancel": 0, + "permlevel": 0 + } ] \ No newline at end of file diff --git a/buying/doctype/purchase_request/purchase_request.txt b/buying/doctype/purchase_request/purchase_request.txt index 01111431a5..54401fab80 100644 --- a/buying/doctype/purchase_request/purchase_request.txt +++ b/buying/doctype/purchase_request/purchase_request.txt @@ -1,527 +1,426 @@ -# DocType, Purchase Request [ - - # These values are common in all dictionaries - { - 'creation': '2012-04-13 11:56:20', - 'docstatus': 0, - 'modified': '2012-05-01 13:02:17', - 'modified_by': u'Administrator', - 'owner': u'Administrator' - }, - - # These values are common for all DocType - { - '_last_update': u'1326190064', - 'allow_attach': 1, - 'allow_print': 0, - 'colour': u'White:FFF', - 'default_print_format': u'Standard', - 'doctype': 'DocType', - 'is_submittable': 1, - 'module': u'Buying', - 'name': '__common__', - 'read_only_onload': 1, - 'search_fields': u'status,transaction_date,sales_order_no', - 'section_style': u'Tabbed', - 'server_code_error': u' ', - 'show_in_menu': 0, - 'subject': u'%(per_ordered)s% ordered', - 'version': 1 - }, - - # These values are common for all DocField - { - 'doctype': u'DocField', - 'name': '__common__', - 'parent': u'Purchase Request', - 'parentfield': u'fields', - 'parenttype': u'DocType' - }, - - # These values are common for all DocPerm - { - 'doctype': u'DocPerm', - 'name': '__common__', - 'parent': u'Purchase Request', - 'parentfield': u'permissions', - 'parenttype': u'DocType', - 'read': 1 - }, - - # DocType, Purchase Request - { - 'doctype': 'DocType', - 'name': u'Purchase Request' - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - 'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'Purchase Manager', - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'amend': 1, - 'cancel': 1, - 'create': 1, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Purchase Manager', - 'submit': 1, - 'write': 1 - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - 'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'Material Manager', - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'amend': 1, - 'cancel': 1, - 'create': 1, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Material Manager', - 'submit': 1, - 'write': 1 - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - 'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'Material User', - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'amend': 1, - 'cancel': 1, - 'create': 1, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Material User', - 'submit': 1, - 'write': 1 - }, - - # DocPerm - { - 'amend': 1, - 'cancel': 1, - 'create': 1, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Purchase User', - 'submit': 1, - 'write': 1 - }, - - # DocPerm - { - 'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'Purchase User' - }, - - # DocField - { - 'colour': u'White:FFF', - 'default': u'Enter items and their details which are falling short in your warehouse and for which you want your purchase department to raise a purchase order.', - 'description': u'Enter items and their details for which you want your purchase department to raise a purchase order.', - 'doctype': u'DocField', - 'fieldname': u'basic_info', - 'fieldtype': u'Section Break', - 'label': u'Basic Info', - 'oldfieldtype': u'Section Break', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'To manage multiple series please go to Setup > Manage Series', - 'doctype': u'DocField', - 'fieldname': u'naming_series', - 'fieldtype': u'Select', - 'label': u'Series', - 'no_copy': 1, - 'oldfieldname': u'naming_series', - 'oldfieldtype': u'Select', - 'options': u'IDT', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'The date at which current entry is made in system.', - 'doctype': u'DocField', - 'fieldname': u'transaction_date', - 'fieldtype': u'Date', - 'in_filter': 1, - 'label': u'Transaction Date', - 'no_copy': 1, - 'oldfieldname': u'transaction_date', - 'oldfieldtype': u'Date', - 'permlevel': 0, - 'reqd': 1, - 'search_index': 1, - 'trigger': u'Client', - 'width': u'100px' - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'items', - 'fieldtype': u'Section Break', - 'label': u'Items', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'allow_on_submit': 1, - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'indent_details', - 'fieldtype': u'Table', - 'label': u'Purchase Requisition Details', - 'no_copy': 0, - 'oldfieldname': u'indent_details', - 'oldfieldtype': u'Table', - 'options': u'Purchase Request Item', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'section_break1', - 'fieldtype': u'Section Break', - 'options': u'Simple', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break4', - 'fieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'One or multiple Sales Order no which generated this Purchase Requisition', - 'doctype': u'DocField', - 'fieldname': u'sales_order_no', - 'fieldtype': u'Link', - 'label': u'Sales Order No', - 'no_copy': 1, - 'oldfieldname': u'sales_order_no', - 'oldfieldtype': u'Data', - 'options': u'Sales Order', - 'permlevel': 0, - 'width': u'100px' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break5', - 'fieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'pull_sales_order_details', - 'fieldtype': u'Button', - 'label': u'Pull Sales Order Items', - 'options': u'pull_so_details', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'default': u'Give additional details about the indent.', - 'description': u'Filing in Additional Information about the Purchase Requisition will help you analyze your data better.', - 'doctype': u'DocField', - 'fieldname': u'more_info', - 'fieldtype': u'Section Break', - 'label': u'More Info', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break1', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Select the relevant company name if you have multiple companies', - 'doctype': u'DocField', - 'fieldname': u'company', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Company', - 'oldfieldname': u'company', - 'oldfieldtype': u'Link', - 'options': u'Company', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1, - 'search_index': 1, - 'width': u'150px' - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'fiscal_year', - 'fieldtype': u'Select', - 'in_filter': 1, - 'label': u'Fiscal Year', - 'oldfieldname': u'fiscal_year', - 'oldfieldtype': u'Select', - 'options': u'link:Fiscal Year', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1, - 'search_index': 1, - 'width': u'150px' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Name of the entity who has requested for the Purchase Requisition', - 'doctype': u'DocField', - 'fieldname': u'requested_by', - 'fieldtype': u'Data', - 'label': u'Requested By', - 'no_copy': 1, - 'oldfieldname': u'requested_by', - 'oldfieldtype': u'Data', - 'permlevel': 0, - 'width': u'100px' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'After cancelling the Purchase Requisition, a dialog box will ask you reason for cancellation which will be reflected in this field', - 'doctype': u'DocField', - 'fieldname': u'cancel_reason', - 'fieldtype': u'Data', - 'label': u'Cancel Reason', - 'no_copy': 1, - 'oldfieldname': u'cancel_reason', - 'oldfieldtype': u'Data', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break2', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'allow_on_submit': 1, - 'doctype': u'DocField', - 'fieldname': u'letter_head', - 'fieldtype': u'Select', - 'label': u'Letter Head', - 'oldfieldname': u'letter_head', - 'oldfieldtype': u'Select', - 'options': u'link:Letter Head', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'status', - 'fieldtype': u'Select', - 'in_filter': 1, - 'label': u'Status', - 'no_copy': 1, - 'oldfieldname': u'status', - 'oldfieldtype': u'Select', - 'options': u'\nDraft\nSubmitted\nStopped\nCancelled', - 'permlevel': 1, - 'print_hide': 1, - 'reqd': 0, - 'search_index': 1, - 'width': u'100px' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'% of materials ordered against this Purchase Requisition', - 'doctype': u'DocField', - 'fieldname': u'per_ordered', - 'fieldtype': u'Currency', - 'label': u'% Ordered', - 'no_copy': 1, - 'oldfieldname': u'per_ordered', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'amended_from', - 'fieldtype': u'Data', - 'label': u'Amended From', - 'no_copy': 1, - 'oldfieldname': u'amended_from', - 'oldfieldtype': u'Data', - 'permlevel': 1, - 'print_hide': 1, - 'width': u'150px' - }, - - # DocField - { - 'description': u'The date at which current entry is corrected in the system.', - 'doctype': u'DocField', - 'fieldname': u'amendment_date', - 'fieldtype': u'Date', - 'label': u'Amendment Date', - 'no_copy': 1, - 'oldfieldname': u'amendment_date', - 'oldfieldtype': u'Date', - 'permlevel': 0, - 'print_hide': 1, - 'width': u'100px' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'remark', - 'fieldtype': u'Small Text', - 'label': u'Remarks', - 'no_copy': 1, - 'oldfieldname': u'remark', - 'oldfieldtype': u'Small Text', - 'permlevel': 0, - 'print_hide': 0, - 'width': u'150px' - }, - - # DocField - { - 'description': u'Add Terms and Conditions for the Purchase Requisition. You can also prepare a Terms and Conditions Master and use the Template', - 'doctype': u'DocField', - 'fieldname': u'terms_section_break', - 'fieldtype': u'Section Break', - 'label': u'Terms and Conditions', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'tc_name', - 'fieldtype': u'Link', - 'label': u'Select Terms and Conditions', - 'oldfieldname': u'tc_name', - 'oldfieldtype': u'Link', - 'options': u'Terms and Conditions', - 'permlevel': 0, - 'print_hide': 1, - 'report_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'get_terms', - 'fieldtype': u'Button', - 'label': u'Get Terms and Conditions', - 'oldfieldtype': u'Button', - 'options': u'get_tc_details', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'terms', - 'fieldtype': u'Text Editor', - 'label': u'Terms and Conditions Content', - 'oldfieldname': u'terms', - 'oldfieldtype': u'Text Editor', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'file_list', - 'fieldtype': u'Text', - 'hidden': 1, - 'label': u'File List', - 'no_copy': 1, - 'permlevel': 0, - 'print_hide': 1 - } + { + "owner": "Administrator", + "docstatus": 0, + "creation": "2012-07-03 13:29:58", + "modified_by": "Administrator", + "modified": "2012-05-01 13:02:17" + }, + { + "is_submittable": 1, + "allow_attach": 1, + "default_print_format": "Standard", + "allow_print": 0, + "search_fields": "status,transaction_date,sales_order_no", + "module": "Buying", + "doctype": "DocType", + "read_only_onload": 1, + "name": "__common__" + }, + { + "name": "__common__", + "parent": "Purchase Request", + "doctype": "DocField", + "parenttype": "DocType", + "parentfield": "fields" + }, + { + "name": "__common__", + "parent": "Purchase Request", + "read": 1, + "doctype": "DocPerm", + "parenttype": "DocType", + "parentfield": "permissions" + }, + { + "name": "Purchase Request", + "doctype": "DocType" + }, + { + "print_hide": 1, + "description": "To manage multiple series please go to Setup > Manage Series", + "no_copy": 1, + "oldfieldtype": "Select", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Series", + "oldfieldname": "naming_series", + "permlevel": 0, + "fieldname": "naming_series", + "fieldtype": "Select", + "reqd": 1, + "options": "IDT" + }, + { + "description": "The date at which current entry is made in system.", + "no_copy": 1, + "oldfieldtype": "Date", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Transaction Date", + "oldfieldname": "transaction_date", + "width": "100px", + "trigger": "Client", + "fieldname": "transaction_date", + "fieldtype": "Date", + "search_index": 1, + "reqd": 1, + "in_filter": 1, + "permlevel": 0 + }, + { + "oldfieldtype": "Section Break", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Items", + "fieldname": "items", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "no_copy": 0, + "oldfieldtype": "Table", + "colour": "White:FFF", + "allow_on_submit": 1, + "doctype": "DocField", + "label": "Purchase Requisition Details", + "oldfieldname": "indent_details", + "options": "Purchase Request Item", + "fieldname": "indent_details", + "fieldtype": "Table", + "permlevel": 0 + }, + { + "doctype": "DocField", + "options": "Simple", + "fieldname": "section_break1", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break4", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "permlevel": 0, + "description": "One or multiple Sales Order no which generated this Purchase Requisition", + "no_copy": 1, + "oldfieldtype": "Data", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Sales Order No", + "oldfieldname": "sales_order_no", + "width": "100px", + "fieldname": "sales_order_no", + "fieldtype": "Link", + "options": "Sales Order" + }, + { + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break5", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "doctype": "DocField", + "label": "Pull Sales Order Items", + "options": "pull_so_details", + "fieldname": "pull_sales_order_details", + "fieldtype": "Button", + "permlevel": 0 + }, + { + "description": "Filing in Additional Information about the Purchase Requisition will help you analyze your data better.", + "default": "Give additional details about the indent.", + "oldfieldtype": "Section Break", + "colour": "White:FFF", + "doctype": "DocField", + "label": "More Info", + "fieldname": "more_info", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "oldfieldtype": "Column Break", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break1", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "Select the relevant company name if you have multiple companies", + "permlevel": 0, + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Company", + "oldfieldname": "company", + "width": "150px", + "fieldname": "company", + "fieldtype": "Link", + "search_index": 1, + "reqd": 1, + "in_filter": 1, + "options": "Company" + }, + { + "print_hide": 1, + "permlevel": 0, + "oldfieldtype": "Select", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Fiscal Year", + "oldfieldname": "fiscal_year", + "width": "150px", + "fieldname": "fiscal_year", + "fieldtype": "Select", + "search_index": 1, + "reqd": 1, + "options": "link:Fiscal Year", + "in_filter": 1 + }, + { + "description": "Name of the entity who has requested for the Purchase Requisition", + "no_copy": 1, + "oldfieldtype": "Data", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Requested By", + "oldfieldname": "requested_by", + "width": "100px", + "fieldname": "requested_by", + "fieldtype": "Data", + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "After cancelling the Purchase Requisition, a dialog box will ask you reason for cancellation which will be reflected in this field", + "no_copy": 1, + "oldfieldtype": "Data", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Cancel Reason", + "oldfieldname": "cancel_reason", + "fieldname": "cancel_reason", + "fieldtype": "Data", + "permlevel": 1 + }, + { + "oldfieldtype": "Column Break", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break2", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Select", + "allow_on_submit": 1, + "doctype": "DocField", + "label": "Letter Head", + "oldfieldname": "letter_head", + "options": "link:Letter Head", + "fieldname": "letter_head", + "fieldtype": "Select", + "permlevel": 0 + }, + { + "print_hide": 1, + "permlevel": 1, + "no_copy": 1, + "oldfieldtype": "Select", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Status", + "oldfieldname": "status", + "width": "100px", + "fieldname": "status", + "fieldtype": "Select", + "search_index": 1, + "reqd": 0, + "options": "\nDraft\nSubmitted\nStopped\nCancelled", + "in_filter": 1 + }, + { + "print_hide": 1, + "description": "% of materials ordered against this Purchase Requisition", + "no_copy": 1, + "oldfieldtype": "Currency", + "colour": "White:FFF", + "doctype": "DocField", + "label": "% Ordered", + "oldfieldname": "per_ordered", + "fieldname": "per_ordered", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "Amended From", + "oldfieldname": "amended_from", + "width": "150px", + "fieldname": "amended_from", + "fieldtype": "Data", + "permlevel": 1 + }, + { + "print_hide": 1, + "description": "The date at which current entry is corrected in the system.", + "no_copy": 1, + "oldfieldtype": "Date", + "doctype": "DocField", + "label": "Amendment Date", + "oldfieldname": "amendment_date", + "width": "100px", + "fieldname": "amendment_date", + "fieldtype": "Date", + "permlevel": 0 + }, + { + "print_hide": 0, + "no_copy": 1, + "oldfieldtype": "Small Text", + "doctype": "DocField", + "label": "Remarks", + "oldfieldname": "remark", + "width": "150px", + "fieldname": "remark", + "fieldtype": "Small Text", + "permlevel": 0 + }, + { + "description": "Add Terms and Conditions for the Purchase Requisition. You can also prepare a Terms and Conditions Master and use the Template", + "oldfieldtype": "Section Break", + "doctype": "DocField", + "label": "Terms and Conditions", + "fieldname": "terms_section_break", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Link", + "doctype": "DocField", + "label": "Select Terms and Conditions", + "oldfieldname": "tc_name", + "options": "Terms and Conditions", + "fieldname": "tc_name", + "fieldtype": "Link", + "permlevel": 0, + "report_hide": 1 + }, + { + "oldfieldtype": "Button", + "doctype": "DocField", + "label": "Get Terms and Conditions", + "options": "get_tc_details", + "fieldname": "get_terms", + "fieldtype": "Button", + "permlevel": 0 + }, + { + "oldfieldtype": "Text Editor", + "doctype": "DocField", + "label": "Terms and Conditions Content", + "oldfieldname": "terms", + "fieldname": "terms", + "fieldtype": "Text Editor", + "permlevel": 0 + }, + { + "print_hide": 1, + "no_copy": 1, + "doctype": "DocField", + "label": "File List", + "fieldname": "file_list", + "fieldtype": "Text", + "hidden": 1, + "permlevel": 0 + }, + { + "amend": 1, + "create": 1, + "doctype": "DocPerm", + "submit": 1, + "write": 1, + "role": "Purchase User", + "cancel": 1, + "permlevel": 0, + "match": "" + }, + { + "doctype": "DocPerm", + "role": "Purchase User", + "permlevel": 1 + }, + { + "amend": 0, + "create": 0, + "doctype": "DocPerm", + "submit": 0, + "write": 0, + "role": "Purchase Manager", + "cancel": 0, + "permlevel": 1 + }, + { + "amend": 1, + "create": 1, + "doctype": "DocPerm", + "submit": 1, + "write": 1, + "role": "Purchase Manager", + "cancel": 1, + "permlevel": 0 + }, + { + "amend": 0, + "create": 0, + "doctype": "DocPerm", + "submit": 0, + "write": 0, + "role": "Material Manager", + "cancel": 0, + "permlevel": 1 + }, + { + "amend": 1, + "create": 1, + "doctype": "DocPerm", + "submit": 1, + "write": 1, + "role": "Material Manager", + "cancel": 1, + "permlevel": 0 + }, + { + "amend": 0, + "create": 0, + "doctype": "DocPerm", + "submit": 0, + "write": 0, + "role": "Material User", + "cancel": 0, + "permlevel": 1 + }, + { + "amend": 1, + "create": 1, + "doctype": "DocPerm", + "submit": 1, + "write": 1, + "role": "Material User", + "cancel": 1, + "permlevel": 0 + } ] \ No newline at end of file diff --git a/buying/doctype/supplier/supplier.txt b/buying/doctype/supplier/supplier.txt index 62c1f5c147..833c1273b8 100644 --- a/buying/doctype/supplier/supplier.txt +++ b/buying/doctype/supplier/supplier.txt @@ -1,355 +1,272 @@ -# DocType, Supplier [ - - # These values are common in all dictionaries - { - 'creation': '2012-05-15 12:14:41', - 'docstatus': 0, - 'modified': '2012-07-18 17:41:49', - 'modified_by': u'Administrator', - 'owner': u'Administrator' - }, - - # These values are common for all DocType - { - '_last_update': u'1306471021', - 'allow_trash': 1, - 'colour': u'White:FFF', - 'doctype': 'DocType', - 'document_type': u'Master', - 'module': u'Buying', - 'name': '__common__', - 'search_fields': u'supplier_name,supplier_type', - 'section_style': u'Tabbed', - 'server_code_error': u' ', - 'show_in_menu': 0, - 'subject': u' ', - 'tag_fields': u'supplier_type', - 'version': 1 - }, - - # These values are common for all DocField - { - 'doctype': u'DocField', - 'name': '__common__', - 'parent': u'Supplier', - 'parentfield': u'fields', - 'parenttype': u'DocType' - }, - - # These values are common for all DocPerm - { - 'doctype': u'DocPerm', - 'name': '__common__', - 'parent': u'Supplier', - 'parentfield': u'permissions', - 'parenttype': u'DocType', - 'read': 1 - }, - - # DocType, Supplier - { - 'doctype': 'DocType', - 'name': u'Supplier' - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - 'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'Purchase Manager', - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Purchase Manager', - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'Purchase Master Manager' - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 1, - 'create': 1, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Purchase Master Manager', - 'submit': 0, - 'write': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Note: You Can Manage Multiple Address or Contacts via Addresses & Contacts', - 'doctype': u'DocField', - 'fieldname': u'basic_info', - 'fieldtype': u'Section Break', - 'label': u'Basic Info', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'supplier_name', - 'fieldtype': u'Data', - 'label': u'Supplier Name', - 'no_copy': 1, - 'oldfieldname': u'supplier_name', - 'oldfieldtype': u'Data', - 'permlevel': 0, - 'reqd': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'supplier_type', - 'fieldtype': u'Link', - 'label': u'Supplier Type', - 'oldfieldname': u'supplier_type', - 'oldfieldtype': u'Link', - 'options': u'Supplier Type', - 'permlevel': 0, - 'reqd': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break0', - 'fieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'naming_series', - 'fieldtype': u'Select', - 'label': u'Series', - 'no_copy': 1, - 'oldfieldname': u'naming_series', - 'oldfieldtype': u'Select', - 'options': u'\nSUPP\nSUPP/10-11/', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'address_contacts', - 'fieldtype': u'Section Break', - 'label': u'Address & Contacts', - 'oldfieldtype': u'Column Break', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'depends_on': u'eval:doc.__islocal', - 'doctype': u'DocField', - 'fieldname': u'address_desc', - 'fieldtype': u'HTML', - 'label': u'Address Desc', - 'options': u'Addresses will appear only when you save the supplier', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'address_html', - 'fieldtype': u'HTML', - 'label': u'Address HTML', - 'permlevel': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break1', - 'fieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'depends_on': u'eval:doc.__islocal', - 'doctype': u'DocField', - 'fieldname': u'contact_desc', - 'fieldtype': u'HTML', - 'label': u'Contact Desc', - 'options': u'Contact Details will appear only when you save the supplier', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'contact_html', - 'fieldtype': u'HTML', - 'label': u'Contact HTML', - 'permlevel': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'communication_history', - 'fieldtype': u'Section Break', - 'label': u'Communication History', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'communication_html', - 'fieldtype': u'HTML', - 'label': u'Communication HTML', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'more_info', - 'fieldtype': u'Section Break', - 'label': u'More Info', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Enter the company name under which Account Head will be created for this Supplier', - 'doctype': u'DocField', - 'fieldname': u'company', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Company', - 'oldfieldname': u'company', - 'oldfieldtype': u'Link', - 'options': u'Company', - 'permlevel': 0, - 'reqd': 1, - 'search_index': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'This currency will get fetched in Purchase transactions of this supplier', - 'doctype': u'DocField', - 'fieldname': u'default_currency', - 'fieldtype': u'Select', - 'label': u'Default Currency', - 'no_copy': 1, - 'options': u'link:Currency', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Statutory info and other general information about your Supplier', - 'doctype': u'DocField', - 'fieldname': u'supplier_details', - 'fieldtype': u'Text', - 'label': u'Supplier Details', - 'oldfieldname': u'supplier_details', - 'oldfieldtype': u'Code', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break2', - 'fieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'credit_days', - 'fieldtype': u'Int', - 'label': u'Credit Days', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'website', - 'fieldtype': u'Data', - 'label': u'Website', - 'oldfieldname': u'website', - 'oldfieldtype': u'Data', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'depends_on': u'eval:!doc.__islocal', - 'doctype': u'DocField', - 'fieldname': u'transaction_history', - 'fieldtype': u'Section Break', - 'label': u'Transaction History', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'depends_on': u'eval:!doc.__islocal', - 'doctype': u'DocField', - 'fieldname': u'history_html', - 'fieldtype': u'HTML', - 'label': u'History HTML', - 'oldfieldtype': u'HTML', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'trash_reason', - 'fieldtype': u'Small Text', - 'label': u'Trash Reason', - 'oldfieldname': u'trash_reason', - 'oldfieldtype': u'Small Text', - 'permlevel': 1 - } + { + "owner": "Administrator", + "docstatus": 0, + "creation": "2012-07-18 20:34:42", + "modified_by": "Administrator", + "modified": "2012-07-18 17:41:49" + }, + { + "name": "__common__", + "search_fields": "supplier_name,supplier_type", + "module": "Buying", + "doctype": "DocType", + "document_type": "Master" + }, + { + "name": "__common__", + "parent": "Supplier", + "doctype": "DocField", + "parenttype": "DocType", + "parentfield": "fields" + }, + { + "name": "__common__", + "parent": "Supplier", + "read": 1, + "doctype": "DocPerm", + "parenttype": "DocType", + "parentfield": "permissions" + }, + { + "name": "Supplier", + "doctype": "DocType" + }, + { + "no_copy": 1, + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "Supplier Name", + "oldfieldname": "supplier_name", + "fieldname": "supplier_name", + "fieldtype": "Data", + "reqd": 1, + "permlevel": 0 + }, + { + "oldfieldtype": "Link", + "doctype": "DocField", + "label": "Supplier Type", + "oldfieldname": "supplier_type", + "options": "Supplier Type", + "fieldname": "supplier_type", + "fieldtype": "Link", + "reqd": 1, + "permlevel": 0 + }, + { + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break0", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "no_copy": 1, + "oldfieldtype": "Select", + "doctype": "DocField", + "label": "Series", + "oldfieldname": "naming_series", + "options": "\nSUPP\nSUPP/10-11/", + "fieldname": "naming_series", + "fieldtype": "Select", + "permlevel": 0 + }, + { + "oldfieldtype": "Column Break", + "doctype": "DocField", + "label": "Address & Contacts", + "fieldname": "address_contacts", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "depends_on": "eval:doc.__islocal", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Address Desc", + "options": "Addresses will appear only when you save the supplier", + "fieldname": "address_desc", + "fieldtype": "HTML", + "permlevel": 0 + }, + { + "colour": "White:FFF", + "doctype": "DocField", + "label": "Address HTML", + "fieldname": "address_html", + "fieldtype": "HTML", + "permlevel": 1 + }, + { + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break1", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "depends_on": "eval:doc.__islocal", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Contact Desc", + "options": "Contact Details will appear only when you save the supplier", + "fieldname": "contact_desc", + "fieldtype": "HTML", + "permlevel": 0 + }, + { + "doctype": "DocField", + "label": "Contact HTML", + "fieldname": "contact_html", + "fieldtype": "HTML", + "permlevel": 1 + }, + { + "doctype": "DocField", + "label": "Communication History", + "fieldname": "communication_history", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "doctype": "DocField", + "label": "Communication HTML", + "fieldname": "communication_html", + "fieldtype": "HTML", + "permlevel": 0 + }, + { + "oldfieldtype": "Section Break", + "doctype": "DocField", + "label": "More Info", + "fieldname": "more_info", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "description": "Enter the company name under which Account Head will be created for this Supplier", + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Company", + "oldfieldname": "company", + "permlevel": 0, + "fieldname": "company", + "fieldtype": "Link", + "search_index": 0, + "reqd": 1, + "in_filter": 1, + "options": "Company" + }, + { + "description": "This currency will get fetched in Purchase transactions of this supplier", + "no_copy": 1, + "colour": "White:FFF", + "doctype": "DocField", + "label": "Default Currency", + "options": "link:Currency", + "fieldname": "default_currency", + "fieldtype": "Select", + "permlevel": 0 + }, + { + "description": "Statutory info and other general information about your Supplier", + "oldfieldtype": "Code", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Supplier Details", + "oldfieldname": "supplier_details", + "fieldname": "supplier_details", + "fieldtype": "Text", + "permlevel": 0 + }, + { + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break2", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "doctype": "DocField", + "label": "Credit Days", + "fieldname": "credit_days", + "fieldtype": "Int", + "permlevel": 0 + }, + { + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "Website", + "oldfieldname": "website", + "fieldname": "website", + "fieldtype": "Data", + "permlevel": 0 + }, + { + "oldfieldtype": "Section Break", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Transaction History", + "fieldname": "transaction_history", + "fieldtype": "Section Break", + "depends_on": "eval:!doc.__islocal", + "permlevel": 0 + }, + { + "oldfieldtype": "HTML", + "colour": "White:FFF", + "doctype": "DocField", + "label": "History HTML", + "fieldname": "history_html", + "fieldtype": "HTML", + "depends_on": "eval:!doc.__islocal", + "permlevel": 0 + }, + { + "oldfieldtype": "Small Text", + "doctype": "DocField", + "label": "Trash Reason", + "oldfieldname": "trash_reason", + "fieldname": "trash_reason", + "fieldtype": "Small Text", + "permlevel": 1 + }, + { + "doctype": "DocPerm", + "role": "Purchase Master Manager", + "permlevel": 1 + }, + { + "amend": 0, + "create": 1, + "doctype": "DocPerm", + "submit": 0, + "write": 1, + "role": "Purchase Master Manager", + "cancel": 1, + "permlevel": 0, + "match": "" + }, + { + "amend": 0, + "create": 0, + "doctype": "DocPerm", + "submit": 0, + "write": 0, + "role": "Purchase Manager", + "cancel": 0, + "permlevel": 1 + }, + { + "amend": 0, + "create": 0, + "doctype": "DocPerm", + "submit": 0, + "write": 0, + "role": "Purchase Manager", + "cancel": 0, + "permlevel": 0 + } ] \ No newline at end of file diff --git a/buying/doctype/supplier_quotation/supplier_quotation.txt b/buying/doctype/supplier_quotation/supplier_quotation.txt index e4a33ca91b..587478b66f 100644 --- a/buying/doctype/supplier_quotation/supplier_quotation.txt +++ b/buying/doctype/supplier_quotation/supplier_quotation.txt @@ -1,924 +1,765 @@ -# DocType, Supplier Quotation [ - - # These values are common in all dictionaries - { - 'creation': '2012-08-01 20:03:35', - 'docstatus': 0, - 'modified': '2012-08-02 18:04:35', - 'modified_by': u'Administrator', - 'owner': u'Administrator' - }, - - # These values are common for all DocType - { - 'allow_attach': 1, - 'default_print_format': u'Standard', - 'doctype': 'DocType', - 'document_type': u'Transaction', - 'is_submittable': 1, - 'is_transaction_doc': 1, - 'module': u'Buying', - 'name': '__common__', - 'read_only_onload': 1, - 'search_fields': u'status, transaction_date, supplier,grand_total', - 'version': 1 - }, - - # These values are common for all DocField - { - 'doctype': u'DocField', - 'name': '__common__', - 'parent': u'Supplier Quotation', - 'parentfield': u'fields', - 'parenttype': u'DocType' - }, - - # These values are common for all DocPerm - { - 'doctype': u'DocPerm', - 'name': '__common__', - 'parent': u'Supplier Quotation', - 'parentfield': u'permissions', - 'parenttype': u'DocType', - 'read': 1 - }, - - # DocType, Supplier Quotation - { - 'doctype': 'DocType', - 'name': u'Supplier Quotation' - }, - - # DocPerm - { - 'amend': 1, - 'cancel': 1, - 'create': 1, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Production Manager', - 'submit': 1, - 'write': 1 - }, - - # DocPerm - { - 'amend': 1, - 'cancel': 1, - 'create': 1, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Purchase Manager', - 'submit': 1, - 'write': 1 - }, - - # DocPerm - { - 'amend': 1, - 'cancel': 0, - 'create': 1, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Purchase User', - 'submit': 0, - 'write': 1 - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Material User', - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Supplier', - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - 'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'All', - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - 'doctype': u'DocPerm', - 'permlevel': 2, - 'role': u'All', - 'submit': 0, - 'write': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'basic_info', - 'fieldtype': u'Section Break', - 'label': u'Basic Info', - 'oldfieldtype': u'Section Break', - 'permlevel': 0, - 'print_hide': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break0', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'To manage multiple series please go to Setup > Manage Series', - 'doctype': u'DocField', - 'fieldname': u'naming_series', - 'fieldtype': u'Select', - 'label': u'Series', - 'no_copy': 1, - 'oldfieldname': u'naming_series', - 'oldfieldtype': u'Select', - 'options': u'SQTN', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Supplier (vendor) name as entered in supplier master', - 'doctype': u'DocField', - 'fieldname': u'supplier', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Supplier', - 'oldfieldname': u'supplier', - 'oldfieldtype': u'Link', - 'options': u'Supplier', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1, - 'search_index': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'supplier_name', - 'fieldtype': u'Data', - 'hidden': 1, - 'label': u'Name', - 'permlevel': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'address_display', - 'fieldtype': u'Small Text', - 'hidden': 1, - 'label': u'Address', - 'permlevel': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'contact_display', - 'fieldtype': u'Small Text', - 'hidden': 1, - 'label': u'Contact', - 'permlevel': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'contact_mobile', - 'fieldtype': u'Text', - 'hidden': 1, - 'label': u'Mobile No', - 'permlevel': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'contact_email', - 'fieldtype': u'Text', - 'hidden': 1, - 'label': u'Contact Email', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break1', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'print_hide': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'The date at which current entry is made in system.', - 'doctype': u'DocField', - 'fieldname': u'transaction_date', - 'fieldtype': u'Date', - 'in_filter': 1, - 'label': u'Quotation Date', - 'oldfieldname': u'transaction_date', - 'oldfieldtype': u'Date', - 'permlevel': 0, - 'reqd': 1, - 'search_index': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'items', - 'fieldtype': u'Section Break', - 'label': u'Items', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'allow_on_submit': 1, - 'doctype': u'DocField', - 'fieldname': u'quotation_items', - 'fieldtype': u'Table', - 'label': u'Quotation Items', - 'no_copy': 0, - 'oldfieldname': u'po_details', - 'oldfieldtype': u'Table', - 'options': u'Supplier Quotation Item', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'section_break0', - 'fieldtype': u'Section Break', - 'options': u'Simple', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break2', - 'fieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'net_total', - 'fieldtype': u'Currency', - 'label': u'Net Total*', - 'no_copy': 1, - 'oldfieldname': u'net_total', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1, - 'reqd': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'net_total_import', - 'fieldtype': u'Currency', - 'label': u'Net Total (Import)', - 'no_copy': 0, - 'oldfieldname': u'net_total_import', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'recalculate_values', - 'fieldtype': u'Button', - 'label': u'Re-Calculate Values', - 'oldfieldtype': u'Button', - 'permlevel': 0, - 'trigger': u'Client' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break3', - 'fieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u"Supplier's currency", - 'doctype': u'DocField', - 'fieldname': u'currency', - 'fieldtype': u'Select', - 'label': u'Currency', - 'no_copy': 0, - 'oldfieldname': u'currency', - 'oldfieldtype': u'Select', - 'options': u'link:Currency', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'default': u'1', - 'description': u"Rate at which supplier's currency is converted to company's base currency", - 'doctype': u'DocField', - 'fieldname': u'conversion_rate', - 'fieldtype': u'Currency', - 'hidden': 0, - 'label': u'Conversion Rate', - 'no_copy': 1, - 'oldfieldname': u'conversion_rate', - 'oldfieldtype': u'Currency', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'You can make a purchase order from multiple Purchase Requests. Select Purchase Requests one by one and click on the button below.', - 'doctype': u'DocField', - 'fieldname': u'indent_no', - 'fieldtype': u'Link', - 'hidden': 0, - 'label': u'Select Purchase Request', - 'no_copy': 1, - 'oldfieldname': u'indent_no', - 'oldfieldtype': u'Link', - 'options': u'Purchase Request', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'get_items', - 'fieldtype': u'Button', - 'hidden': 0, - 'label': u'Get Items', - 'oldfieldtype': u'Button', - 'options': u'get_indent_details', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'taxes', - 'fieldtype': u'Section Break', - 'label': u'Taxes', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'If you have created a standard template in Purchase Taxes and Charges Master, select one and click on the button below.', - 'doctype': u'DocField', - 'fieldname': u'purchase_other_charges', - 'fieldtype': u'Link', - 'label': u'Purchase Taxes and Charges', - 'no_copy': 1, - 'oldfieldname': u'purchase_other_charges', - 'oldfieldtype': u'Link', - 'options': u'Purchase Taxes and Charges Master', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'get_tax_detail', - 'fieldtype': u'Button', - 'label': u'Get Tax Detail', - 'oldfieldtype': u'Button', - 'options': u'get_purchase_tax_details', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'purchase_tax_details', - 'fieldtype': u'Table', - 'label': u'Purchase Taxes and Charges', - 'no_copy': 0, - 'oldfieldname': u'purchase_tax_details', - 'oldfieldtype': u'Table', - 'options': u'Purchase Taxes and Charges', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'calculate_tax', - 'fieldtype': u'Button', - 'label': u'Calculate Tax', - 'oldfieldtype': u'Button', - 'permlevel': 0, - 'print_hide': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'tax_calculation', - 'fieldtype': u'HTML', - 'label': u'Tax Calculation', - 'no_copy': 1, - 'oldfieldtype': u'HTML', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'total_tax', - 'fieldtype': u'Currency', - 'label': u'Total Tax*', - 'no_copy': 1, - 'oldfieldname': u'total_tax', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'totals', - 'fieldtype': u'Section Break', - 'label': u'Totals', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'grand_total', - 'fieldtype': u'Currency', - 'label': u'Grand Total', - 'no_copy': 1, - 'oldfieldname': u'grand_total', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'rounded_total', - 'fieldtype': u'Currency', - 'label': u'Rounded Total', - 'oldfieldname': u'rounded_total', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'In Words will be visible once you save the Purchase Order.', - 'doctype': u'DocField', - 'fieldname': u'in_words', - 'fieldtype': u'Data', - 'label': u'In Words', - 'oldfieldname': u'in_words', - 'oldfieldtype': u'Data', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'other_charges_added', - 'fieldtype': u'Currency', - 'label': u'Taxes and Charges Added', - 'no_copy': 0, - 'oldfieldname': u'other_charges_added', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'other_charges_deducted', - 'fieldtype': u'Currency', - 'label': u'Taxes and Charges Deducted', - 'no_copy': 0, - 'oldfieldname': u'other_charges_deducted', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break4', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'print_hide': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'grand_total_import', - 'fieldtype': u'Currency', - 'label': u'Grand Total (Import)', - 'no_copy': 0, - 'oldfieldname': u'grand_total_import', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1, - 'report_hide': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'in_words_import', - 'fieldtype': u'Data', - 'label': u'In Words(Import)', - 'oldfieldname': u'in_words_import', - 'oldfieldtype': u'Data', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'other_charges_added_import', - 'fieldtype': u'Currency', - 'label': u'Taxes and Charges Added (Import)', - 'no_copy': 0, - 'oldfieldname': u'other_charges_added_import', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1, - 'report_hide': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'other_charges_deducted_import', - 'fieldtype': u'Currency', - 'label': u'Taxes and Charges Deducted (Import)', - 'no_copy': 0, - 'oldfieldname': u'other_charges_deducted_import', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1, - 'report_hide': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'terms_section_break', - 'fieldtype': u'Section Break', - 'label': u'Terms and Conditions', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'allow_on_submit': 1, - 'doctype': u'DocField', - 'fieldname': u'letter_head', - 'fieldtype': u'Select', - 'label': u'Letter Head', - 'oldfieldname': u'letter_head', - 'oldfieldtype': u'Select', - 'options': u'link:Letter Head', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'tc_name', - 'fieldtype': u'Link', - 'label': u'Select Terms and Conditions', - 'oldfieldname': u'tc_name', - 'oldfieldtype': u'Link', - 'options': u'Terms and Conditions', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'get_terms', - 'fieldtype': u'Button', - 'label': u'Get Terms and Conditions', - 'oldfieldtype': u'Button', - 'options': u'get_tc_details', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'terms_html', - 'fieldtype': u'HTML', - 'label': u'Terms and Conditions HTML', - 'oldfieldtype': u'HTML', - 'options': u'You can add Terms and Notes that will be printed in the Transaction', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'terms', - 'fieldtype': u'Text Editor', - 'label': u'Terms and Conditions1', - 'oldfieldname': u'terms', - 'oldfieldtype': u'Text Editor', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'contact_section', - 'fieldtype': u'Section Break', - 'label': u'Contact Info', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'supplier_address', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Supplier Address', - 'options': u'Address', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'contact_person', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Contact Person', - 'options': u'Contact', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'more_info', - 'fieldtype': u'Section Break', - 'label': u'More Info', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'status', - 'fieldtype': u'Select', - 'in_filter': 1, - 'label': u'Status', - 'no_copy': 1, - 'oldfieldname': u'status', - 'oldfieldtype': u'Select', - 'options': u'\nDraft\nSubmitted\nStopped\nCancelled', - 'permlevel': 1, - 'print_hide': 1, - 'reqd': 1, - 'search_index': 1 - }, - - # DocField - { - 'default': u'No', - 'doctype': u'DocField', - 'fieldname': u'is_subcontracted', - 'fieldtype': u'Select', - 'label': u'Is Subcontracted', - 'options': u'\nYes\nNo', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'amended_from', - 'fieldtype': u'Data', - 'hidden': 1, - 'label': u'Amended From', - 'no_copy': 1, - 'oldfieldname': u'amended_from', - 'oldfieldtype': u'Data', - 'permlevel': 1, - 'print_hide': 1, - 'report_hide': 0 - }, - - # DocField - { - 'description': u'The date at which current entry is corrected in the system.', - 'doctype': u'DocField', - 'fieldname': u'amendment_date', - 'fieldtype': u'Date', - 'hidden': 1, - 'label': u'Amendment Date', - 'no_copy': 1, - 'oldfieldname': u'amendment_date', - 'oldfieldtype': u'Date', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Select the relevant company name if you have multiple companies', - 'doctype': u'DocField', - 'fieldname': u'company', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Company', - 'no_copy': 0, - 'oldfieldname': u'company', - 'oldfieldtype': u'Link', - 'options': u'Company', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1, - 'search_index': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'fiscal_year', - 'fieldtype': u'Select', - 'in_filter': 1, - 'label': u'Fiscal Year', - 'no_copy': 0, - 'oldfieldname': u'fiscal_year', - 'oldfieldtype': u'Select', - 'options': u'link:Fiscal Year', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1, - 'search_index': 1 - }, - - # DocField - { - 'allow_on_submit': 1, - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'select_print_heading', - 'fieldtype': u'Link', - 'label': u'Select Print Heading', - 'no_copy': 1, - 'oldfieldname': u'select_print_heading', - 'oldfieldtype': u'Link', - 'options': u'Print Heading', - 'permlevel': 0, - 'print_hide': 1, - 'report_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break5', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'print_hide': 1, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'depends_on': u'eval:!doc.__islocal', - 'doctype': u'DocField', - 'fieldname': u'cancel_reason', - 'fieldtype': u'Data', - 'hidden': 0, - 'label': u'Cancel Reason', - 'no_copy': 1, - 'oldfieldname': u'cancel_reason', - 'oldfieldtype': u'Data', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'file_list', - 'fieldtype': u'Text', - 'hidden': 1, - 'label': u'File List', - 'no_copy': 1, - 'permlevel': 0, - 'print_hide': 1 - } + { + "owner": "Administrator", + "docstatus": 0, + "creation": "2012-08-06 11:15:46", + "modified_by": "Administrator", + "modified": "2012-08-02 18:04:35" + }, + { + "is_submittable": 1, + "allow_attach": 1, + "default_print_format": "Standard", + "search_fields": "status, transaction_date, supplier,grand_total", + "module": "Buying", + "doctype": "DocType", + "read_only_onload": 1, + "document_type": "Transaction", + "name": "__common__" + }, + { + "name": "__common__", + "parent": "Supplier Quotation", + "doctype": "DocField", + "parenttype": "DocType", + "parentfield": "fields" + }, + { + "name": "__common__", + "parent": "Supplier Quotation", + "read": 1, + "doctype": "DocPerm", + "parenttype": "DocType", + "parentfield": "permissions" + }, + { + "name": "Supplier Quotation", + "doctype": "DocType" + }, + { + "oldfieldtype": "Column Break", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break0", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "To manage multiple series please go to Setup > Manage Series", + "no_copy": 1, + "oldfieldtype": "Select", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Series", + "oldfieldname": "naming_series", + "permlevel": 0, + "fieldname": "naming_series", + "fieldtype": "Select", + "reqd": 1, + "options": "SQTN" + }, + { + "print_hide": 1, + "description": "Supplier (vendor) name as entered in supplier master", + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Supplier", + "oldfieldname": "supplier", + "permlevel": 0, + "trigger": "Client", + "fieldname": "supplier", + "fieldtype": "Link", + "search_index": 1, + "reqd": 1, + "in_filter": 1, + "options": "Supplier" + }, + { + "doctype": "DocField", + "label": "Name", + "fieldname": "supplier_name", + "fieldtype": "Data", + "hidden": 1, + "permlevel": 1 + }, + { + "doctype": "DocField", + "label": "Address", + "fieldname": "address_display", + "fieldtype": "Small Text", + "hidden": 1, + "permlevel": 1 + }, + { + "doctype": "DocField", + "label": "Contact", + "fieldname": "contact_display", + "fieldtype": "Small Text", + "hidden": 1, + "permlevel": 1 + }, + { + "doctype": "DocField", + "label": "Mobile No", + "fieldname": "contact_mobile", + "fieldtype": "Text", + "hidden": 1, + "permlevel": 1 + }, + { + "print_hide": 1, + "doctype": "DocField", + "label": "Contact Email", + "fieldname": "contact_email", + "fieldtype": "Text", + "hidden": 1, + "permlevel": 1 + }, + { + "print_hide": 0, + "oldfieldtype": "Column Break", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break1", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "description": "The date at which current entry is made in system.", + "oldfieldtype": "Date", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Quotation Date", + "oldfieldname": "transaction_date", + "trigger": "Client", + "fieldname": "transaction_date", + "fieldtype": "Date", + "search_index": 1, + "reqd": 1, + "in_filter": 1, + "permlevel": 0 + }, + { + "oldfieldtype": "Section Break", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Items", + "fieldname": "items", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "no_copy": 0, + "oldfieldtype": "Table", + "allow_on_submit": 1, + "doctype": "DocField", + "label": "Quotation Items", + "oldfieldname": "po_details", + "options": "Supplier Quotation Item", + "fieldname": "quotation_items", + "fieldtype": "Table", + "permlevel": 0 + }, + { + "doctype": "DocField", + "options": "Simple", + "fieldname": "section_break0", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break2", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Net Total*", + "oldfieldname": "net_total", + "fieldname": "net_total", + "fieldtype": "Currency", + "reqd": 0, + "permlevel": 1 + }, + { + "print_hide": 1, + "no_copy": 0, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Net Total (Import)", + "oldfieldname": "net_total_import", + "fieldname": "net_total_import", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "oldfieldtype": "Button", + "doctype": "DocField", + "label": "Re-Calculate Values", + "trigger": "Client", + "fieldname": "recalculate_values", + "fieldtype": "Button", + "permlevel": 0 + }, + { + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break3", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "Supplier's currency", + "no_copy": 0, + "oldfieldtype": "Select", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Currency", + "oldfieldname": "currency", + "permlevel": 0, + "fieldname": "currency", + "fieldtype": "Select", + "reqd": 1, + "options": "link:Currency" + }, + { + "print_hide": 1, + "description": "Rate at which supplier's currency is converted to company's base currency", + "no_copy": 1, + "oldfieldtype": "Currency", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Conversion Rate", + "oldfieldname": "conversion_rate", + "default": "1", + "trigger": "Client", + "fieldname": "conversion_rate", + "fieldtype": "Currency", + "reqd": 1, + "hidden": 0, + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "You can make a purchase order from multiple Purchase Requests. Select Purchase Requests one by one and click on the button below.", + "no_copy": 1, + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Select Purchase Request", + "oldfieldname": "indent_no", + "permlevel": 0, + "fieldname": "indent_no", + "fieldtype": "Link", + "hidden": 0, + "options": "Purchase Request" + }, + { + "oldfieldtype": "Button", + "doctype": "DocField", + "label": "Get Items", + "options": "get_indent_details", + "fieldname": "get_items", + "fieldtype": "Button", + "hidden": 0, + "permlevel": 0 + }, + { + "oldfieldtype": "Section Break", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Taxes", + "fieldname": "taxes", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "If you have created a standard template in Purchase Taxes and Charges Master, select one and click on the button below.", + "no_copy": 1, + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Purchase Taxes and Charges", + "oldfieldname": "purchase_other_charges", + "permlevel": 0, + "fieldname": "purchase_other_charges", + "fieldtype": "Link", + "options": "Purchase Taxes and Charges Master" + }, + { + "print_hide": 1, + "oldfieldtype": "Button", + "doctype": "DocField", + "label": "Get Tax Detail", + "options": "get_purchase_tax_details", + "fieldname": "get_tax_detail", + "fieldtype": "Button", + "permlevel": 0 + }, + { + "no_copy": 0, + "oldfieldtype": "Table", + "doctype": "DocField", + "label": "Purchase Taxes and Charges", + "oldfieldname": "purchase_tax_details", + "options": "Purchase Taxes and Charges", + "fieldname": "purchase_tax_details", + "fieldtype": "Table", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Button", + "doctype": "DocField", + "label": "Calculate Tax", + "trigger": "Client", + "fieldname": "calculate_tax", + "fieldtype": "Button", + "permlevel": 0 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "HTML", + "doctype": "DocField", + "label": "Tax Calculation", + "fieldname": "tax_calculation", + "fieldtype": "HTML", + "permlevel": 0 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Total Tax*", + "oldfieldname": "total_tax", + "fieldname": "total_tax", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "oldfieldtype": "Section Break", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Totals", + "fieldname": "totals", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Grand Total", + "oldfieldname": "grand_total", + "fieldname": "grand_total", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "print_hide": 1, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Rounded Total", + "oldfieldname": "rounded_total", + "fieldname": "rounded_total", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "print_hide": 1, + "description": "In Words will be visible once you save the Purchase Order.", + "oldfieldtype": "Data", + "colour": "White:FFF", + "doctype": "DocField", + "label": "In Words", + "oldfieldname": "in_words", + "fieldname": "in_words", + "fieldtype": "Data", + "permlevel": 1 + }, + { + "print_hide": 1, + "no_copy": 0, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Taxes and Charges Added", + "oldfieldname": "other_charges_added", + "fieldname": "other_charges_added", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "print_hide": 1, + "no_copy": 0, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Taxes and Charges Deducted", + "oldfieldname": "other_charges_deducted", + "fieldname": "other_charges_deducted", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "print_hide": 0, + "oldfieldtype": "Column Break", + "doctype": "DocField", + "fieldname": "column_break4", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "no_copy": 0, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Grand Total (Import)", + "oldfieldname": "grand_total_import", + "fieldname": "grand_total_import", + "fieldtype": "Currency", + "permlevel": 1, + "report_hide": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Data", + "colour": "White:FFF", + "doctype": "DocField", + "label": "In Words(Import)", + "oldfieldname": "in_words_import", + "fieldname": "in_words_import", + "fieldtype": "Data", + "permlevel": 1 + }, + { + "print_hide": 1, + "no_copy": 0, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Taxes and Charges Added (Import)", + "oldfieldname": "other_charges_added_import", + "fieldname": "other_charges_added_import", + "fieldtype": "Currency", + "permlevel": 1, + "report_hide": 0 + }, + { + "print_hide": 1, + "no_copy": 0, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Taxes and Charges Deducted (Import)", + "oldfieldname": "other_charges_deducted_import", + "fieldname": "other_charges_deducted_import", + "fieldtype": "Currency", + "permlevel": 1, + "report_hide": 0 + }, + { + "oldfieldtype": "Section Break", + "doctype": "DocField", + "label": "Terms and Conditions", + "fieldname": "terms_section_break", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "allow_on_submit": 1, + "oldfieldtype": "Select", + "doctype": "DocField", + "label": "Letter Head", + "oldfieldname": "letter_head", + "options": "link:Letter Head", + "fieldname": "letter_head", + "fieldtype": "Select", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Link", + "doctype": "DocField", + "label": "Select Terms and Conditions", + "oldfieldname": "tc_name", + "options": "Terms and Conditions", + "fieldname": "tc_name", + "fieldtype": "Link", + "permlevel": 0 + }, + { + "oldfieldtype": "Button", + "doctype": "DocField", + "label": "Get Terms and Conditions", + "options": "get_tc_details", + "fieldname": "get_terms", + "fieldtype": "Button", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "HTML", + "doctype": "DocField", + "label": "Terms and Conditions HTML", + "options": "You can add Terms and Notes that will be printed in the Transaction", + "fieldname": "terms_html", + "fieldtype": "HTML", + "permlevel": 0 + }, + { + "oldfieldtype": "Text Editor", + "doctype": "DocField", + "label": "Terms and Conditions1", + "oldfieldname": "terms", + "fieldname": "terms", + "fieldtype": "Text Editor", + "permlevel": 0 + }, + { + "doctype": "DocField", + "label": "Contact Info", + "fieldname": "contact_section", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "doctype": "DocField", + "label": "Supplier Address", + "options": "Address", + "fieldname": "supplier_address", + "fieldtype": "Link", + "permlevel": 0, + "in_filter": 1 + }, + { + "print_hide": 1, + "doctype": "DocField", + "label": "Contact Person", + "options": "Contact", + "fieldname": "contact_person", + "fieldtype": "Link", + "permlevel": 0, + "in_filter": 1 + }, + { + "oldfieldtype": "Section Break", + "doctype": "DocField", + "label": "More Info", + "fieldname": "more_info", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Select", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Status", + "oldfieldname": "status", + "permlevel": 1, + "fieldname": "status", + "fieldtype": "Select", + "search_index": 1, + "reqd": 1, + "options": "\nDraft\nSubmitted\nStopped\nCancelled", + "in_filter": 1 + }, + { + "print_hide": 1, + "default": "No", + "doctype": "DocField", + "label": "Is Subcontracted", + "options": "\nYes\nNo", + "fieldname": "is_subcontracted", + "fieldtype": "Select", + "permlevel": 0 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "Amended From", + "oldfieldname": "amended_from", + "fieldname": "amended_from", + "fieldtype": "Data", + "hidden": 1, + "permlevel": 1, + "report_hide": 0 + }, + { + "print_hide": 1, + "description": "The date at which current entry is corrected in the system.", + "no_copy": 1, + "oldfieldtype": "Date", + "doctype": "DocField", + "label": "Amendment Date", + "oldfieldname": "amendment_date", + "fieldname": "amendment_date", + "fieldtype": "Date", + "hidden": 1, + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "Select the relevant company name if you have multiple companies", + "no_copy": 0, + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Company", + "oldfieldname": "company", + "permlevel": 0, + "fieldname": "company", + "fieldtype": "Link", + "search_index": 1, + "reqd": 1, + "in_filter": 1, + "options": "Company" + }, + { + "print_hide": 1, + "no_copy": 0, + "oldfieldtype": "Select", + "doctype": "DocField", + "label": "Fiscal Year", + "oldfieldname": "fiscal_year", + "permlevel": 0, + "fieldname": "fiscal_year", + "fieldtype": "Select", + "search_index": 1, + "reqd": 1, + "options": "link:Fiscal Year", + "in_filter": 1 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Link", + "colour": "White:FFF", + "allow_on_submit": 1, + "doctype": "DocField", + "label": "Select Print Heading", + "oldfieldname": "select_print_heading", + "permlevel": 0, + "fieldname": "select_print_heading", + "fieldtype": "Link", + "options": "Print Heading", + "report_hide": 1 + }, + { + "print_hide": 1, + "oldfieldtype": "Column Break", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break5", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Data", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Cancel Reason", + "oldfieldname": "cancel_reason", + "fieldname": "cancel_reason", + "fieldtype": "Data", + "depends_on": "eval:!doc.__islocal", + "hidden": 0, + "permlevel": 1 + }, + { + "print_hide": 1, + "no_copy": 1, + "doctype": "DocField", + "label": "File List", + "fieldname": "file_list", + "fieldtype": "Text", + "hidden": 1, + "permlevel": 0 + }, + { + "amend": 1, + "create": 1, + "doctype": "DocPerm", + "submit": 1, + "write": 1, + "role": "Production Manager", + "cancel": 1, + "permlevel": 0 + }, + { + "amend": 1, + "create": 1, + "doctype": "DocPerm", + "submit": 1, + "write": 1, + "role": "Purchase Manager", + "cancel": 1, + "permlevel": 0 + }, + { + "amend": 1, + "create": 1, + "doctype": "DocPerm", + "submit": 0, + "write": 1, + "role": "Purchase User", + "cancel": 0, + "permlevel": 0 + }, + { + "amend": 0, + "create": 0, + "doctype": "DocPerm", + "submit": 0, + "write": 0, + "role": "Material User", + "cancel": 0, + "permlevel": 0 + }, + { + "amend": 0, + "create": 0, + "doctype": "DocPerm", + "submit": 0, + "write": 0, + "role": "Supplier", + "cancel": 0, + "permlevel": 0 + }, + { + "amend": 0, + "create": 0, + "doctype": "DocPerm", + "submit": 0, + "write": 0, + "role": "All", + "cancel": 0, + "permlevel": 1 + }, + { + "amend": 0, + "create": 0, + "doctype": "DocPerm", + "submit": 0, + "write": 1, + "role": "All", + "cancel": 0, + "permlevel": 2 + } ] \ No newline at end of file diff --git a/buying/page/purchase_analytics/purchase_analytics.js b/buying/page/purchase_analytics/purchase_analytics.js index 1e401c3c62..d1af656db2 100644 --- a/buying/page/purchase_analytics/purchase_analytics.js +++ b/buying/page/purchase_analytics/purchase_analytics.js @@ -128,7 +128,7 @@ erpnext.PurchaseAnalytics = wn.views.TreeGridReport.extend({ }, init_filter_values: function() { this._super(); - this.filter_inputs.range.val('Weekly'); + this.filter_inputs.range.val('Monthly'); }, prepare_data: function() { var me = this; diff --git a/home/page/latest_updates/latest_updates.js b/home/page/latest_updates/latest_updates.js index e93fd0b670..54292945fb 100644 --- a/home/page/latest_updates/latest_updates.js +++ b/home/page/latest_updates/latest_updates.js @@ -1,6 +1,7 @@ erpnext.updates = [ ["28th November 2012", [ "Profile: Profile Settings (My Settings...) is now the Profile Form.", + "Financial Analytics: Show Net Profit/Loss", ]], ["27th November 2012", [ "Communication: Made common communication thread and added it in Lead, Contact.", diff --git a/hr/doctype/salary_slip/salary_slip.txt b/hr/doctype/salary_slip/salary_slip.txt index 398b2b32ab..731d82373c 100644 --- a/hr/doctype/salary_slip/salary_slip.txt +++ b/hr/doctype/salary_slip/salary_slip.txt @@ -1,556 +1,446 @@ -# DocType, Salary Slip [ - - # These values are common in all dictionaries - { - 'creation': '2012-03-27 14:36:00', - 'docstatus': 0, - 'modified': '2012-03-27 14:45:51', - 'modified_by': u'Administrator', - 'owner': u'Administrator' - }, - - # These values are common for all DocType - { - '_last_update': u'1310019491', - 'colour': u'White:FFF', - 'doctype': 'DocType', - 'is_submittable': 1, - 'module': u'HR', - 'name': '__common__', - 'section_style': u'Simple', - 'server_code_error': u' ', - 'show_in_menu': 0, - 'subject': u'For %(employee_name)s, %(designation)s', - 'version': 393 - }, - - # These values are common for all DocField - { - 'doctype': u'DocField', - 'name': '__common__', - 'parent': u'Salary Slip', - 'parentfield': u'fields', - 'parenttype': u'DocType' - }, - - # These values are common for all DocPerm - { - 'doctype': u'DocPerm', - 'name': '__common__', - 'parent': u'Salary Slip', - 'parentfield': u'permissions', - 'parenttype': u'DocType', - 'read': 1 - }, - - # DocType, Salary Slip - { - 'doctype': 'DocType', - 'name': u'Salary Slip' - }, - - # DocPerm - { - 'amend': 0, - 'create': 1, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'HR User', - 'submit': 1, - 'write': 1 - }, - - # DocPerm - { - 'amend': 1, - 'cancel': 1, - 'create': 1, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'HR Manager', - 'submit': 1, - 'write': 1 - }, - - # DocPerm - { - 'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'HR User' - }, - - # DocPerm - { - 'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'HR Manager' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'basic_info', - 'fieldtype': u'Section Break', - 'label': u'Basic Info', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break0', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'employee', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Employee', - 'oldfieldname': u'employee', - 'oldfieldtype': u'Link', - 'options': u'Employee', - 'permlevel': 0, - 'reqd': 1, - 'search_index': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'employee_name', - 'fieldtype': u'Data', - 'in_filter': 1, - 'label': u'Employee Name', - 'oldfieldname': u'employee_name', - 'oldfieldtype': u'Data', - 'permlevel': 1, - 'reqd': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'department', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Department', - 'oldfieldname': u'department', - 'oldfieldtype': u'Link', - 'options': u'Department', - 'permlevel': 1, - 'reqd': 0, - 'search_index': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'designation', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Designation', - 'oldfieldname': u'designation', - 'oldfieldtype': u'Link', - 'options': u'Designation', - 'permlevel': 1, - 'search_index': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'branch', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Branch', - 'oldfieldname': u'branch', - 'oldfieldtype': u'Link', - 'options': u'Branch', - 'permlevel': 1, - 'search_index': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'grade', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Grade', - 'oldfieldname': u'grade', - 'oldfieldtype': u'Link', - 'options': u'Grade', - 'permlevel': 1, - 'search_index': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'pf_no', - 'fieldtype': u'Data', - 'label': u'PF No.', - 'oldfieldname': u'pf_no', - 'oldfieldtype': u'Data', - 'permlevel': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'esic_no', - 'fieldtype': u'Data', - 'label': u'ESIC No.', - 'oldfieldname': u'esic_no', - 'oldfieldtype': u'Data', - 'permlevel': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'letter_head', - 'fieldtype': u'Link', - 'label': u'Letter Head', - 'options': u'Letter Head', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break1', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'fiscal_year', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Fiscal Year', - 'oldfieldname': u'fiscal_year', - 'oldfieldtype': u'Data', - 'options': u'Fiscal Year', - 'permlevel': 0, - 'reqd': 1, - 'search_index': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'company', - 'fieldtype': u'Select', - 'in_filter': 1, - 'label': u'Company', - 'options': u'link:Company', - 'permlevel': 0, - 'reqd': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'month', - 'fieldtype': u'Select', - 'in_filter': 1, - 'label': u'Month', - 'oldfieldname': u'month', - 'oldfieldtype': u'Select', - 'options': u'\n01\n02\n03\n04\n05\n06\n07\n08\n09\n10\n11\n12', - 'permlevel': 0, - 'reqd': 1, - 'search_index': 1, - 'trigger': u'Client', - 'width': u'37%' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'total_days_in_month', - 'fieldtype': u'Data', - 'label': u'Total days in month', - 'oldfieldname': u'total_days_in_month', - 'oldfieldtype': u'Int', - 'permlevel': 1, - 'reqd': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'leave_without_pay', - 'fieldtype': u'Currency', - 'label': u'Leave Without Pay', - 'oldfieldname': u'leave_without_pay', - 'oldfieldtype': u'Currency', - 'permlevel': 0, - 'trigger': u'Client' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'payment_days', - 'fieldtype': u'Float', - 'label': u'Payment days', - 'oldfieldname': u'payment_days', - 'oldfieldtype': u'Float', - 'permlevel': 1, - 'reqd': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'bank_name', - 'fieldtype': u'Data', - 'label': u'Bank Name', - 'oldfieldname': u'bank_name', - 'oldfieldtype': u'Data', - 'permlevel': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'bank_account_no', - 'fieldtype': u'Data', - 'label': u'Bank Account No.', - 'oldfieldname': u'bank_account_no', - 'oldfieldtype': u'Data', - 'permlevel': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'email_check', - 'fieldtype': u'Check', - 'label': u'Email', - 'no_copy': 1, - 'oldfieldname': u'email_check', - 'oldfieldtype': u'Check', - 'permlevel': 0, - 'print_hide': 1, - 'report_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'amended_from', - 'fieldtype': u'Data', - 'hidden': 0, - 'label': u'Amended From', - 'no_copy': 1, - 'oldfieldname': u'amended_from', - 'oldfieldtype': u'Data', - 'permlevel': 0, - 'print_hide': 1, - 'report_hide': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'amendment_date', - 'fieldtype': u'Date', - 'hidden': 0, - 'label': u'Amendment Date', - 'no_copy': 1, - 'oldfieldname': u'amendment_date', - 'oldfieldtype': u'Date', - 'permlevel': 0, - 'print_hide': 1, - 'report_hide': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'earning_deduction', - 'fieldtype': u'Section Break', - 'label': u'Earning & Deduction', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'earning', - 'fieldtype': u'Column Break', - 'label': u'Earning', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'reqd': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'earning_details', - 'fieldtype': u'Table', - 'label': u'Salary Structure Earnings', - 'oldfieldname': u'earning_details', - 'oldfieldtype': u'Table', - 'options': u'Salary Slip Earning', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'deduction', - 'fieldtype': u'Column Break', - 'label': u'Deduction', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'deduction_details', - 'fieldtype': u'Table', - 'label': u'Deductions', - 'oldfieldname': u'deduction_details', - 'oldfieldtype': u'Table', - 'options': u'Salary Slip Deduction', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'totals', - 'fieldtype': u'Section Break', - 'label': u'Totals', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break2', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'arrear_amount', - 'fieldtype': u'Currency', - 'label': u'Arrear Amount', - 'oldfieldname': u'arrear_amount', - 'oldfieldtype': u'Currency', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'leave_encashment_amount', - 'fieldtype': u'Currency', - 'label': u'Leave Encashment Amount', - 'oldfieldname': u'encashment_amount', - 'oldfieldtype': u'Currency', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'gross_pay', - 'fieldtype': u'Currency', - 'label': u'Gross Pay', - 'oldfieldname': u'gross_pay', - 'oldfieldtype': u'Currency', - 'permlevel': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'total_deduction', - 'fieldtype': u'Currency', - 'label': u'Total Deduction', - 'oldfieldname': u'total_deduction', - 'oldfieldtype': u'Currency', - 'permlevel': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break3', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Gross Pay + Arrear Amount +Encashment Amount - Total Deduction', - 'doctype': u'DocField', - 'fieldname': u'net_pay', - 'fieldtype': u'Currency', - 'label': u'Net Pay', - 'oldfieldname': u'net_pay', - 'oldfieldtype': u'Currency', - 'permlevel': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'rounded_total', - 'fieldtype': u'Currency', - 'label': u'Rounded Total', - 'permlevel': 1 - }, - - # DocField - { - 'description': u'Net Pay (in words) will be visible once you save the Salary Slip.', - 'doctype': u'DocField', - 'fieldname': u'total_in_words', - 'fieldtype': u'Data', - 'label': u'Total in words', - 'oldfieldname': u'net_pay_in_words', - 'oldfieldtype': u'Data', - 'permlevel': 1 - } -] + { + "owner": "Administrator", + "docstatus": 0, + "creation": "2012-07-03 13:29:40", + "modified_by": "Administrator", + "modified": "2012-03-27 14:45:51" + }, + { + "is_submittable": 1, + "name": "__common__", + "doctype": "DocType", + "module": "HR" + }, + { + "name": "__common__", + "parent": "Salary Slip", + "doctype": "DocField", + "parenttype": "DocType", + "parentfield": "fields" + }, + { + "name": "__common__", + "parent": "Salary Slip", + "read": 1, + "doctype": "DocPerm", + "parenttype": "DocType", + "parentfield": "permissions" + }, + { + "name": "Salary Slip", + "doctype": "DocType" + }, + { + "oldfieldtype": "Column Break", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break0", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Employee", + "oldfieldname": "employee", + "permlevel": 0, + "fieldname": "employee", + "fieldtype": "Link", + "search_index": 1, + "reqd": 1, + "options": "Employee", + "in_filter": 1 + }, + { + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "Employee Name", + "oldfieldname": "employee_name", + "fieldname": "employee_name", + "fieldtype": "Data", + "reqd": 1, + "permlevel": 1, + "in_filter": 1 + }, + { + "oldfieldtype": "Link", + "doctype": "DocField", + "label": "Department", + "oldfieldname": "department", + "options": "Department", + "fieldname": "department", + "fieldtype": "Link", + "search_index": 0, + "reqd": 0, + "permlevel": 1, + "in_filter": 1 + }, + { + "oldfieldtype": "Link", + "doctype": "DocField", + "label": "Designation", + "oldfieldname": "designation", + "options": "Designation", + "fieldname": "designation", + "fieldtype": "Link", + "search_index": 0, + "permlevel": 1, + "in_filter": 1 + }, + { + "oldfieldtype": "Link", + "doctype": "DocField", + "label": "Branch", + "oldfieldname": "branch", + "options": "Branch", + "fieldname": "branch", + "fieldtype": "Link", + "search_index": 0, + "permlevel": 1, + "in_filter": 1 + }, + { + "oldfieldtype": "Link", + "doctype": "DocField", + "label": "Grade", + "oldfieldname": "grade", + "options": "Grade", + "fieldname": "grade", + "fieldtype": "Link", + "search_index": 0, + "permlevel": 1, + "in_filter": 1 + }, + { + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "PF No.", + "oldfieldname": "pf_no", + "fieldname": "pf_no", + "fieldtype": "Data", + "permlevel": 1 + }, + { + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "ESIC No.", + "oldfieldname": "esic_no", + "fieldname": "esic_no", + "fieldtype": "Data", + "permlevel": 1 + }, + { + "doctype": "DocField", + "label": "Letter Head", + "options": "Letter Head", + "fieldname": "letter_head", + "fieldtype": "Link", + "permlevel": 0 + }, + { + "oldfieldtype": "Column Break", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break1", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "oldfieldtype": "Data", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Fiscal Year", + "oldfieldname": "fiscal_year", + "permlevel": 0, + "fieldname": "fiscal_year", + "fieldtype": "Link", + "search_index": 0, + "reqd": 1, + "options": "Fiscal Year", + "in_filter": 1 + }, + { + "doctype": "DocField", + "label": "Company", + "options": "link:Company", + "fieldname": "company", + "fieldtype": "Select", + "reqd": 1, + "permlevel": 0, + "in_filter": 1 + }, + { + "permlevel": 0, + "oldfieldtype": "Select", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Month", + "oldfieldname": "month", + "width": "37%", + "trigger": "Client", + "fieldname": "month", + "fieldtype": "Select", + "search_index": 1, + "reqd": 1, + "options": "\n01\n02\n03\n04\n05\n06\n07\n08\n09\n10\n11\n12", + "in_filter": 1 + }, + { + "oldfieldtype": "Int", + "doctype": "DocField", + "label": "Total days in month", + "oldfieldname": "total_days_in_month", + "fieldname": "total_days_in_month", + "fieldtype": "Data", + "reqd": 1, + "permlevel": 1 + }, + { + "oldfieldtype": "Currency", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Leave Without Pay", + "oldfieldname": "leave_without_pay", + "trigger": "Client", + "fieldname": "leave_without_pay", + "fieldtype": "Currency", + "permlevel": 0 + }, + { + "oldfieldtype": "Float", + "doctype": "DocField", + "label": "Payment days", + "oldfieldname": "payment_days", + "fieldname": "payment_days", + "fieldtype": "Float", + "reqd": 1, + "permlevel": 1 + }, + { + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "Bank Name", + "oldfieldname": "bank_name", + "fieldname": "bank_name", + "fieldtype": "Data", + "permlevel": 1 + }, + { + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "Bank Account No.", + "oldfieldname": "bank_account_no", + "fieldname": "bank_account_no", + "fieldtype": "Data", + "permlevel": 1 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Check", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Email", + "oldfieldname": "email_check", + "fieldname": "email_check", + "fieldtype": "Check", + "permlevel": 0, + "report_hide": 1 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "Amended From", + "oldfieldname": "amended_from", + "fieldname": "amended_from", + "fieldtype": "Data", + "hidden": 0, + "permlevel": 0, + "report_hide": 0 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Date", + "doctype": "DocField", + "label": "Amendment Date", + "oldfieldname": "amendment_date", + "fieldname": "amendment_date", + "fieldtype": "Date", + "hidden": 0, + "permlevel": 0, + "report_hide": 0 + }, + { + "oldfieldtype": "Section Break", + "doctype": "DocField", + "label": "Earning & Deduction", + "fieldname": "earning_deduction", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "oldfieldtype": "Column Break", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Earning", + "width": "50%", + "fieldname": "earning", + "fieldtype": "Column Break", + "reqd": 0, + "permlevel": 0 + }, + { + "oldfieldtype": "Table", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Salary Structure Earnings", + "oldfieldname": "earning_details", + "options": "Salary Slip Earning", + "fieldname": "earning_details", + "fieldtype": "Table", + "permlevel": 0 + }, + { + "oldfieldtype": "Column Break", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Deduction", + "width": "50%", + "fieldname": "deduction", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "oldfieldtype": "Table", + "doctype": "DocField", + "label": "Deductions", + "oldfieldname": "deduction_details", + "options": "Salary Slip Deduction", + "fieldname": "deduction_details", + "fieldtype": "Table", + "permlevel": 0 + }, + { + "oldfieldtype": "Section Break", + "doctype": "DocField", + "label": "Totals", + "fieldname": "totals", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "oldfieldtype": "Column Break", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break2", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Arrear Amount", + "oldfieldname": "arrear_amount", + "fieldname": "arrear_amount", + "fieldtype": "Currency", + "permlevel": 0 + }, + { + "oldfieldtype": "Currency", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Leave Encashment Amount", + "oldfieldname": "encashment_amount", + "fieldname": "leave_encashment_amount", + "fieldtype": "Currency", + "permlevel": 0 + }, + { + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Gross Pay", + "oldfieldname": "gross_pay", + "fieldname": "gross_pay", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Total Deduction", + "oldfieldname": "total_deduction", + "fieldname": "total_deduction", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "oldfieldtype": "Column Break", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break3", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "description": "Gross Pay + Arrear Amount +Encashment Amount - Total Deduction", + "oldfieldtype": "Currency", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Net Pay", + "oldfieldname": "net_pay", + "fieldname": "net_pay", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "doctype": "DocField", + "label": "Rounded Total", + "fieldname": "rounded_total", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "description": "Net Pay (in words) will be visible once you save the Salary Slip.", + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "Total in words", + "oldfieldname": "net_pay_in_words", + "fieldname": "total_in_words", + "fieldtype": "Data", + "permlevel": 1 + }, + { + "amend": 0, + "create": 1, + "doctype": "DocPerm", + "submit": 1, + "write": 1, + "role": "HR User", + "permlevel": 0 + }, + { + "amend": 1, + "create": 1, + "doctype": "DocPerm", + "submit": 1, + "write": 1, + "role": "HR Manager", + "cancel": 1, + "permlevel": 0 + }, + { + "doctype": "DocPerm", + "role": "HR User", + "permlevel": 1 + }, + { + "doctype": "DocPerm", + "role": "HR Manager", + "permlevel": 1 + } +] \ No newline at end of file diff --git a/hr/doctype/salary_structure/salary_structure.txt b/hr/doctype/salary_structure/salary_structure.txt index e760f74452..9a40edf099 100644 --- a/hr/doctype/salary_structure/salary_structure.txt +++ b/hr/doctype/salary_structure/salary_structure.txt @@ -1,444 +1,313 @@ -# DocType, Salary Structure [ - - # These values are common in all dictionaries - { - 'creation': '2012-03-27 14:36:00', - 'docstatus': 0, - 'modified': '2012-03-27 14:36:00', - 'modified_by': u'Administrator', - 'owner': u'Administrator' - }, - - # These values are common for all DocType - { - '_last_update': u'1311621379', - 'colour': u'White:FFF', - 'doctype': 'DocType', - 'module': u'HR', - 'name': '__common__', - 'section_style': u'Simple', - 'server_code_error': u' ', - 'show_in_menu': 0, - 'subject': u'For %(employee_name)s', - 'version': 587 - }, - - # These values are common for all DocField - { - 'doctype': u'DocField', - 'name': '__common__', - 'parent': u'Salary Structure', - 'parentfield': u'fields', - 'parenttype': u'DocType' - }, - - # These values are common for all DocPerm - { - 'amend': 0, - 'doctype': u'DocPerm', - 'name': '__common__', - 'parent': u'Salary Structure', - 'parentfield': u'permissions', - 'parenttype': u'DocType', - 'read': 1 - }, - - # DocType, Salary Structure - { - 'doctype': 'DocType', - 'name': u'Salary Structure' - }, - - # DocPerm - { - 'cancel': 0, - 'create': 0, - 'doctype': u'DocPerm', - 'match': u'owner', - 'permlevel': 0, - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'cancel': 0, - 'create': 0, - 'doctype': u'DocPerm', - 'match': u'owner', - 'permlevel': 0, - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'cancel': 0, - 'create': 0, - 'doctype': u'DocPerm', - 'match': u'owner', - 'permlevel': 0, - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'cancel': 0, - 'create': 0, - 'doctype': u'DocPerm', - 'match': u'owner', - 'permlevel': 0, - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'All', - 'write': 0 - }, - - # DocPerm - { - 'create': 1, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'HR User', - 'write': 1 - }, - - # DocPerm - { - 'create': 1, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'HR Manager', - 'write': 1 - }, - - # DocPerm - { - 'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'HR Manager' - }, - - # DocPerm - { - 'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'HR User' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'basic_info', - 'fieldtype': u'Section Break', - 'label': u'Basic Info', - 'oldfieldname': u'basic_info', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break0', - 'fieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'employee', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Employee', - 'oldfieldname': u'employee', - 'oldfieldtype': u'Link', - 'options': u'Employee', - 'permlevel': 0, - 'reqd': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'employee_name', - 'fieldtype': u'Data', - 'label': u'Employee Name', - 'oldfieldname': u'employee_name', - 'oldfieldtype': u'Data', - 'permlevel': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'branch', - 'fieldtype': u'Select', - 'in_filter': 1, - 'label': u'Branch', - 'oldfieldname': u'branch', - 'oldfieldtype': u'Select', - 'options': u'link:Branch', - 'permlevel': 1, - 'reqd': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'designation', - 'fieldtype': u'Select', - 'in_filter': 1, - 'label': u'Designation', - 'oldfieldname': u'designation', - 'oldfieldtype': u'Select', - 'options': u'link:Designation', - 'permlevel': 1, - 'reqd': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'department', - 'fieldtype': u'Select', - 'in_filter': 1, - 'label': u'Department', - 'oldfieldname': u'department', - 'oldfieldtype': u'Select', - 'options': u'link:Department', - 'permlevel': 1, - 'reqd': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'grade', - 'fieldtype': u'Select', - 'in_filter': 1, - 'label': u'Grade', - 'oldfieldname': u'grade', - 'oldfieldtype': u'Select', - 'options': u'link:Grade', - 'permlevel': 1, - 'reqd': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break1', - 'fieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'default': u'Yes', - 'doctype': u'DocField', - 'fieldname': u'is_active', - 'fieldtype': u'Select', - 'in_filter': 1, - 'label': u'Is Active', - 'oldfieldname': u'is_active', - 'oldfieldtype': u'Select', - 'options': u'\nYes\nNo', - 'permlevel': 0, - 'reqd': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'from_date', - 'fieldtype': u'Date', - 'label': u'From Date', - 'oldfieldname': u'from_date', - 'oldfieldtype': u'Date', - 'permlevel': 0, - 'reqd': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'to_date', - 'fieldtype': u'Date', - 'label': u'To Date', - 'oldfieldname': u'to_date', - 'oldfieldtype': u'Date', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Cost to Company', - 'doctype': u'DocField', - 'fieldname': u'ctc', - 'fieldtype': u'Currency', - 'in_filter': 1, - 'label': u'CTC', - 'oldfieldname': u'ctc', - 'oldfieldtype': u'Currency', - 'permlevel': 0, - 'reqd': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'company', - 'fieldtype': u'Select', - 'in_filter': 1, - 'label': u'Company', - 'options': u'link:Company', - 'permlevel': 0, - 'reqd': 1 - }, - - # DocField - { - 'description': u'You can create more earning and deduction type from Setup --> HR', - 'doctype': u'DocField', - 'fieldname': u'earning_deduction', - 'fieldtype': u'Section Break', - 'label': u'Earning & Deduction', - 'oldfieldname': u'earning_deduction', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'earning', - 'fieldtype': u'Column Break', - 'hidden': 0, - 'label': u'Earning', - 'oldfieldname': u'col_brk2', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'earning_details', - 'fieldtype': u'Table', - 'hidden': 0, - 'label': u'Earning1', - 'oldfieldname': u'earning_details', - 'oldfieldtype': u'Table', - 'options': u'Salary Structure Earning', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'deduction', - 'fieldtype': u'Column Break', - 'hidden': 0, - 'label': u'Deduction', - 'oldfieldname': u'col_brk3', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'deduction_details', - 'fieldtype': u'Table', - 'hidden': 0, - 'label': u'Deduction1', - 'oldfieldname': u'deduction_details', - 'oldfieldtype': u'Table', - 'options': u'Salary Structure Deduction', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'section_break0', - 'fieldtype': u'Section Break', - 'options': u'Simple', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break2', - 'fieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'total_earning', - 'fieldtype': u'Currency', - 'label': u'Total Earning', - 'oldfieldname': u'total_earning', - 'oldfieldtype': u'Currency', - 'permlevel': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'total_deduction', - 'fieldtype': u'Currency', - 'label': u'Total Deduction', - 'oldfieldname': u'total_deduction', - 'oldfieldtype': u'Currency', - 'permlevel': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break3', - 'fieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'net_pay', - 'fieldtype': u'Currency', - 'label': u'Net Pay', - 'permlevel': 1 - } + { + "owner": "Administrator", + "docstatus": 0, + "creation": "2012-07-03 13:29:41", + "modified_by": "Administrator", + "modified": "2012-03-27 14:36:00" + }, + { + "name": "__common__", + "doctype": "DocType", + "module": "HR" + }, + { + "name": "__common__", + "parent": "Salary Structure", + "doctype": "DocField", + "parenttype": "DocType", + "parentfield": "fields" + }, + { + "name": "__common__", + "parent": "Salary Structure", + "read": 1, + "doctype": "DocPerm", + "amend": 0, + "parenttype": "DocType", + "parentfield": "permissions" + }, + { + "name": "Salary Structure", + "doctype": "DocType" + }, + { + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break0", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Employee", + "oldfieldname": "employee", + "permlevel": 0, + "trigger": "Client", + "fieldname": "employee", + "fieldtype": "Link", + "reqd": 1, + "options": "Employee", + "in_filter": 1 + }, + { + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "Employee Name", + "oldfieldname": "employee_name", + "fieldname": "employee_name", + "fieldtype": "Data", + "permlevel": 1 + }, + { + "oldfieldtype": "Select", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Branch", + "oldfieldname": "branch", + "options": "link:Branch", + "fieldname": "branch", + "fieldtype": "Select", + "reqd": 0, + "permlevel": 1, + "in_filter": 1 + }, + { + "oldfieldtype": "Select", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Designation", + "oldfieldname": "designation", + "options": "link:Designation", + "fieldname": "designation", + "fieldtype": "Select", + "reqd": 0, + "permlevel": 1, + "in_filter": 1 + }, + { + "oldfieldtype": "Select", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Department", + "oldfieldname": "department", + "options": "link:Department", + "fieldname": "department", + "fieldtype": "Select", + "reqd": 0, + "permlevel": 1, + "in_filter": 1 + }, + { + "oldfieldtype": "Select", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Grade", + "oldfieldname": "grade", + "options": "link:Grade", + "fieldname": "grade", + "fieldtype": "Select", + "reqd": 0, + "permlevel": 1, + "in_filter": 1 + }, + { + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break1", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "default": "Yes", + "oldfieldtype": "Select", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Is Active", + "oldfieldname": "is_active", + "permlevel": 0, + "fieldname": "is_active", + "fieldtype": "Select", + "reqd": 1, + "options": "\nYes\nNo", + "in_filter": 1 + }, + { + "oldfieldtype": "Date", + "doctype": "DocField", + "label": "From Date", + "oldfieldname": "from_date", + "fieldname": "from_date", + "fieldtype": "Date", + "reqd": 1, + "permlevel": 0 + }, + { + "oldfieldtype": "Date", + "doctype": "DocField", + "label": "To Date", + "oldfieldname": "to_date", + "fieldname": "to_date", + "fieldtype": "Date", + "permlevel": 0 + }, + { + "description": "Cost to Company", + "oldfieldtype": "Currency", + "colour": "White:FFF", + "doctype": "DocField", + "label": "CTC", + "oldfieldname": "ctc", + "fieldname": "ctc", + "fieldtype": "Currency", + "reqd": 1, + "permlevel": 0, + "in_filter": 1 + }, + { + "doctype": "DocField", + "label": "Company", + "options": "link:Company", + "fieldname": "company", + "fieldtype": "Select", + "reqd": 1, + "permlevel": 0, + "in_filter": 1 + }, + { + "description": "You can create more earning and deduction type from Setup --> HR", + "oldfieldtype": "Section Break", + "doctype": "DocField", + "label": "Earning & Deduction", + "oldfieldname": "earning_deduction", + "fieldname": "earning_deduction", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "oldfieldtype": "Column Break", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Earning", + "oldfieldname": "col_brk2", + "width": "50%", + "fieldname": "earning", + "fieldtype": "Column Break", + "hidden": 0, + "permlevel": 0 + }, + { + "oldfieldtype": "Table", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Earning1", + "oldfieldname": "earning_details", + "options": "Salary Structure Earning", + "fieldname": "earning_details", + "fieldtype": "Table", + "hidden": 0, + "permlevel": 0 + }, + { + "oldfieldtype": "Column Break", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Deduction", + "oldfieldname": "col_brk3", + "width": "50%", + "fieldname": "deduction", + "fieldtype": "Column Break", + "hidden": 0, + "permlevel": 0 + }, + { + "oldfieldtype": "Table", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Deduction1", + "oldfieldname": "deduction_details", + "options": "Salary Structure Deduction", + "fieldname": "deduction_details", + "fieldtype": "Table", + "hidden": 0, + "permlevel": 0 + }, + { + "doctype": "DocField", + "options": "Simple", + "fieldname": "section_break0", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break2", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Total Earning", + "oldfieldname": "total_earning", + "fieldname": "total_earning", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Total Deduction", + "oldfieldname": "total_deduction", + "fieldname": "total_deduction", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break3", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "doctype": "DocField", + "label": "Net Pay", + "fieldname": "net_pay", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "doctype": "DocPerm", + "write": 0, + "role": "All", + "permlevel": 1 + }, + { + "create": 1, + "doctype": "DocPerm", + "write": 1, + "role": "HR User", + "permlevel": 0 + }, + { + "create": 1, + "doctype": "DocPerm", + "write": 1, + "role": "HR Manager", + "permlevel": 0 + }, + { + "doctype": "DocPerm", + "role": "HR Manager", + "permlevel": 1 + }, + { + "doctype": "DocPerm", + "role": "HR User", + "permlevel": 1 + } ] \ No newline at end of file diff --git a/projects/doctype/project/project.txt b/projects/doctype/project/project.txt index 5ef7cee7b8..b58f60ae3e 100644 --- a/projects/doctype/project/project.txt +++ b/projects/doctype/project/project.txt @@ -1,525 +1,432 @@ -# DocType, Project [ - - # These values are common in all dictionaries - { - u'creation': '2012-08-09 11:38:30', - u'docstatus': 0, - u'modified': '2012-11-14 17:04:57', - u'modified_by': u'Administrator', - u'owner': u'Administrator' - }, - - # These values are common for all DocType - { - '_last_update': u'1305714062', - 'allow_attach': 1, - 'allow_trash': 1, - 'autoname': u'field:project_name', - 'colour': u'White:FFF', - 'default_print_format': u'Standard', - u'doctype': u'DocType', - 'document_type': u'Master', - 'max_attachments': 4, - 'module': u'Projects', - u'name': u'__common__', - 'search_fields': u'customer, status, priority, is_active', - 'section_style': u'Tabbed', - 'server_code_error': u' ', - 'show_in_menu': 0, - 'subject': u' ', - 'tag_fields': u'status', - 'version': 1 - }, - - # These values are common for all DocField - { - u'doctype': u'DocField', - u'name': u'__common__', - 'parent': u'Project', - 'parentfield': u'fields', - 'parenttype': u'DocType' - }, - - # These values are common for all DocPerm - { - 'cancel': 1, - 'create': 1, - u'doctype': u'DocPerm', - u'name': u'__common__', - 'parent': u'Project', - 'parentfield': u'permissions', - 'parenttype': u'DocType', - 'permlevel': 0, - 'read': 1, - 'role': u'Projects User', - 'write': 1 - }, - - # DocType, Project - { - u'doctype': u'DocType', - u'name': u'Project' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Helps you keep track of your projects and links to Tasks. You can tag a task to a project to track its progress', - u'doctype': u'DocField', - 'fieldname': u'basic_info', - 'fieldtype': u'Section Break', - 'label': u'Basic Info', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'cb_project_status', - 'fieldtype': u'Column Break', - 'label': u'Status', - 'permlevel': 0 - }, - - # DocField - { - 'description': u'Project will get saved and will be searchable with project name given', - u'doctype': u'DocField', - 'fieldname': u'project_name', - 'fieldtype': u'Data', - 'label': u'Project Name', - 'no_copy': 0, - 'oldfieldname': u'project_name', - 'oldfieldtype': u'Data', - 'permlevel': 0, - 'reqd': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'default': u'Open', - u'doctype': u'DocField', - 'fieldname': u'status', - 'fieldtype': u'Select', - 'in_filter': 1, - 'label': u'Status', - 'no_copy': 1, - 'oldfieldname': u'status', - 'oldfieldtype': u'Select', - 'options': u'Open\nCompleted\nCancelled', - 'permlevel': 0, - 'reqd': 1, - 'search_index': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'is_active', - 'fieldtype': u'Select', - 'label': u'Is Active', - 'no_copy': 0, - 'oldfieldname': u'is_active', - 'oldfieldtype': u'Select', - 'options': u'Yes\nNo', - 'permlevel': 0, - 'search_index': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'priority', - 'fieldtype': u'Select', - 'label': u'Priority', - 'no_copy': 0, - 'oldfieldname': u'priority', - 'oldfieldtype': u'Select', - 'options': u'Medium\nLow\nHigh', - 'permlevel': 0, - 'search_index': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'cb_project_dates', - 'fieldtype': u'Column Break', - 'label': u'Dates', - 'permlevel': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'project_start_date', - 'fieldtype': u'Date', - 'in_filter': 1, - 'label': u'Project Start Date', - 'no_copy': 0, - 'oldfieldname': u'project_start_date', - 'oldfieldtype': u'Date', - 'permlevel': 0, - 'search_index': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'completion_date', - 'fieldtype': u'Date', - 'label': u'Completion Date', - 'no_copy': 0, - 'oldfieldname': u'completion_date', - 'oldfieldtype': u'Date', - 'permlevel': 0, - 'search_index': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'act_completion_date', - 'fieldtype': u'Date', - 'label': u'Actual Completion Date', - 'no_copy': 0, - 'oldfieldname': u'act_completion_date', - 'oldfieldtype': u'Date', - 'permlevel': 0, - 'search_index': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'project_type', - 'fieldtype': u'Select', - 'label': u'Project Type', - 'no_copy': 0, - 'oldfieldname': u'project_type', - 'oldfieldtype': u'Data', - 'options': u'Internal\nExternal\nOther', - 'permlevel': 0, - 'search_index': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Important dates and commitments in your project life cycle', - u'doctype': u'DocField', - 'fieldname': u'sb_milestones', - 'fieldtype': u'Section Break', - 'label': u'Milestones', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Milestones will be added as Events in the Calendar', - u'doctype': u'DocField', - 'fieldname': u'project_milestones', - 'fieldtype': u'Table', - 'label': u'Project Milestones', - 'no_copy': 0, - 'oldfieldname': u'project_milestones', - 'oldfieldtype': u'Table', - 'options': u'Project Milestone', - 'permlevel': 0, - 'search_index': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Tasks belonging to this Project.', - u'doctype': u'DocField', - 'fieldname': u'sb_tasks', - 'fieldtype': u'Section Break', - 'label': u'Tasks', - 'permlevel': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'project_tasks', - 'fieldtype': u'HTML', - 'label': u'Project Tasks', - 'permlevel': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'section_break0', - 'fieldtype': u'Section Break', - 'label': u'Project Details', - 'oldfieldtype': u'Section Break', - 'options': u'Simple', - 'permlevel': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'notes', - 'fieldtype': u'Text Editor', - 'label': u'Notes', - 'no_copy': 0, - 'oldfieldname': u'notes', - 'oldfieldtype': u'Text Editor', - 'permlevel': 0, - 'search_index': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'project_details', - 'fieldtype': u'Section Break', - 'label': u'Project Costing', - 'oldfieldtype': u'Section Break', - 'options': u'Simple', - 'permlevel': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'project_value', - 'fieldtype': u'Currency', - 'label': u'Project Value', - 'no_copy': 0, - 'oldfieldname': u'project_value', - 'oldfieldtype': u'Currency', - 'permlevel': 0, - 'reqd': 0, - 'search_index': 0, - 'trigger': u'Client' - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'est_material_cost', - 'fieldtype': u'Currency', - 'label': u'Estimated Material Cost', - 'no_copy': 0, - 'oldfieldname': u'est_material_cost', - 'oldfieldtype': u'Currency', - 'permlevel': 0, - 'search_index': 0, - 'trigger': u'Client' - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'column_break0', - 'fieldtype': u'Column Break', - 'label': u'Margin', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'gross_margin_value', - 'fieldtype': u'Currency', - 'label': u'Gross Margin Value', - 'no_copy': 0, - 'oldfieldname': u'gross_margin_value', - 'oldfieldtype': u'Currency', - 'permlevel': 0, - 'reqd': 0, - 'search_index': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'per_gross_margin', - 'fieldtype': u'Currency', - 'label': u'Gross Margin %', - 'no_copy': 0, - 'oldfieldname': u'per_gross_margin', - 'oldfieldtype': u'Currency', - 'permlevel': 0, - 'reqd': 0, - 'search_index': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'customer_details', - 'fieldtype': u'Section Break', - 'label': u'Customer Details', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Select name of Customer to whom project belongs', - u'doctype': u'DocField', - 'fieldname': u'customer', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Customer', - 'no_copy': 0, - 'oldfieldname': u'customer', - 'oldfieldtype': u'Link', - 'options': u'Customer', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 0, - 'search_index': 1, - 'trigger': u'Client' - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'customer_name', - 'fieldtype': u'Data', - 'in_filter': 1, - 'label': u'Customer Name', - 'no_copy': 0, - 'oldfieldname': u'customer_name', - 'oldfieldtype': u'Data', - 'permlevel': 1, - 'search_index': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'customer_address', - 'fieldtype': u'Small Text', - 'label': u'Customer Address', - 'no_copy': 0, - 'oldfieldname': u'customer_address', - 'oldfieldtype': u'Small Text', - 'permlevel': 1, - 'search_index': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - u'doctype': u'DocField', - 'fieldname': u'contact_person', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Contact Person', - 'no_copy': 0, - 'oldfieldname': u'contact_person', - 'oldfieldtype': u'Link', - 'options': u'Contact', - 'permlevel': 0, - 'reqd': 0, - 'search_index': 0, - 'trigger': u'Client' - }, - - # DocField - { - 'colour': u'White:FFF', - u'doctype': u'DocField', - 'fieldname': u'territory', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Territory', - 'oldfieldname': u'territory', - 'oldfieldtype': u'Link', - 'options': u'Territory', - 'permlevel': 0, - 'reqd': 0, - 'search_index': 0, - 'trigger': u'Client' - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'contact_no', - 'fieldtype': u'Data', - 'label': u'Contact No', - 'no_copy': 0, - 'oldfieldname': u'contact_no', - 'oldfieldtype': u'Data', - 'permlevel': 1, - 'search_index': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'email_id', - 'fieldtype': u'Data', - 'label': u'Email Id', - 'no_copy': 0, - 'oldfieldname': u'email_id', - 'oldfieldtype': u'Data', - 'permlevel': 1, - 'search_index': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'customer_group', - 'fieldtype': u'Link', - 'label': u'Customer Group', - 'no_copy': 0, - 'oldfieldname': u'customer_group', - 'oldfieldtype': u'Link', - 'options': u'Customer Group', - 'permlevel': 1, - 'search_index': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'trash_reason', - 'fieldtype': u'Small Text', - 'hidden': 1, - 'label': u'Trash Reason', - 'no_copy': 0, - 'oldfieldname': u'trash_reason', - 'oldfieldtype': u'Small Text', - 'permlevel': 0, - 'print_hide': 1, - 'search_index': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - u'doctype': u'DocField', - 'fieldname': u'file_list', - 'fieldtype': u'Small Text', - 'hidden': 1, - 'label': u'File List', - 'no_copy': 1, - 'permlevel': 0, - 'print_hide': 1, - 'search_index': 0 - }, - - # DocPerm - { - u'doctype': u'DocPerm' - } + { + "owner": "Administrator", + "docstatus": 0, + "creation": "2012-11-28 11:26:18", + "modified_by": "Administrator", + "modified": "2012-11-14 17:04:57" + }, + { + "autoname": "field:project_name", + "allow_attach": 1, + "default_print_format": "Standard", + "search_fields": "customer, status, priority, is_active", + "module": "Projects", + "doctype": "DocType", + "max_attachments": 4, + "document_type": "Master", + "name": "__common__" + }, + { + "name": "__common__", + "parent": "Project", + "doctype": "DocField", + "parenttype": "DocType", + "parentfield": "fields" + }, + { + "name": "__common__", + "parent": "Project", + "read": 1, + "doctype": "DocPerm", + "parenttype": "DocType", + "parentfield": "permissions" + }, + { + "name": "Project", + "doctype": "DocType" + }, + { + "doctype": "DocField", + "label": "Status", + "fieldname": "cb_project_status", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "description": "Project will get saved and will be searchable with project name given", + "no_copy": 0, + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "Project Name", + "oldfieldname": "project_name", + "fieldname": "project_name", + "fieldtype": "Data", + "reqd": 1, + "permlevel": 0 + }, + { + "permlevel": 0, + "no_copy": 1, + "oldfieldtype": "Select", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Status", + "oldfieldname": "status", + "default": "Open", + "fieldname": "status", + "fieldtype": "Select", + "search_index": 1, + "reqd": 1, + "options": "Open\nCompleted\nCancelled", + "in_filter": 1 + }, + { + "no_copy": 0, + "oldfieldtype": "Select", + "doctype": "DocField", + "label": "Is Active", + "oldfieldname": "is_active", + "options": "Yes\nNo", + "fieldname": "is_active", + "fieldtype": "Select", + "search_index": 0, + "permlevel": 0 + }, + { + "no_copy": 0, + "oldfieldtype": "Select", + "doctype": "DocField", + "label": "Priority", + "oldfieldname": "priority", + "options": "Medium\nLow\nHigh", + "fieldname": "priority", + "fieldtype": "Select", + "search_index": 0, + "permlevel": 0 + }, + { + "doctype": "DocField", + "label": "Dates", + "fieldname": "cb_project_dates", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "no_copy": 0, + "oldfieldtype": "Date", + "doctype": "DocField", + "label": "Project Start Date", + "oldfieldname": "project_start_date", + "fieldname": "project_start_date", + "fieldtype": "Date", + "search_index": 0, + "permlevel": 0, + "in_filter": 1 + }, + { + "no_copy": 0, + "oldfieldtype": "Date", + "doctype": "DocField", + "label": "Completion Date", + "oldfieldname": "completion_date", + "fieldname": "completion_date", + "fieldtype": "Date", + "search_index": 0, + "permlevel": 0 + }, + { + "no_copy": 0, + "oldfieldtype": "Date", + "doctype": "DocField", + "label": "Actual Completion Date", + "oldfieldname": "act_completion_date", + "fieldname": "act_completion_date", + "fieldtype": "Date", + "search_index": 0, + "permlevel": 0 + }, + { + "no_copy": 0, + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "Project Type", + "oldfieldname": "project_type", + "options": "Internal\nExternal\nOther", + "fieldname": "project_type", + "fieldtype": "Select", + "search_index": 0, + "permlevel": 0 + }, + { + "description": "Important dates and commitments in your project life cycle", + "oldfieldtype": "Section Break", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Milestones", + "fieldname": "sb_milestones", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "description": "Milestones will be added as Events in the Calendar", + "no_copy": 0, + "oldfieldtype": "Table", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Project Milestones", + "oldfieldname": "project_milestones", + "permlevel": 0, + "fieldname": "project_milestones", + "fieldtype": "Table", + "search_index": 0, + "options": "Project Milestone" + }, + { + "description": "Tasks belonging to this Project.", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Tasks", + "fieldname": "sb_tasks", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "doctype": "DocField", + "label": "Project Tasks", + "fieldname": "project_tasks", + "fieldtype": "HTML", + "permlevel": 0 + }, + { + "oldfieldtype": "Section Break", + "doctype": "DocField", + "label": "Project Details", + "options": "Simple", + "fieldname": "section_break0", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "no_copy": 0, + "oldfieldtype": "Text Editor", + "doctype": "DocField", + "label": "Notes", + "oldfieldname": "notes", + "fieldname": "notes", + "fieldtype": "Text Editor", + "search_index": 0, + "permlevel": 0 + }, + { + "oldfieldtype": "Section Break", + "doctype": "DocField", + "label": "Project Costing", + "options": "Simple", + "fieldname": "project_details", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "no_copy": 0, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Project Value", + "oldfieldname": "project_value", + "trigger": "Client", + "fieldname": "project_value", + "fieldtype": "Currency", + "search_index": 0, + "reqd": 0, + "permlevel": 0 + }, + { + "no_copy": 0, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Estimated Material Cost", + "oldfieldname": "est_material_cost", + "trigger": "Client", + "fieldname": "est_material_cost", + "fieldtype": "Currency", + "search_index": 0, + "permlevel": 0 + }, + { + "oldfieldtype": "Column Break", + "doctype": "DocField", + "label": "Margin", + "width": "50%", + "fieldname": "column_break0", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "no_copy": 0, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Gross Margin Value", + "oldfieldname": "gross_margin_value", + "fieldname": "gross_margin_value", + "fieldtype": "Currency", + "search_index": 0, + "reqd": 0, + "permlevel": 0 + }, + { + "no_copy": 0, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Gross Margin %", + "oldfieldname": "per_gross_margin", + "fieldname": "per_gross_margin", + "fieldtype": "Currency", + "search_index": 0, + "reqd": 0, + "permlevel": 0 + }, + { + "oldfieldtype": "Section Break", + "doctype": "DocField", + "label": "Customer Details", + "fieldname": "customer_details", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "Select name of Customer to whom project belongs", + "no_copy": 0, + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Customer", + "oldfieldname": "customer", + "permlevel": 0, + "trigger": "Client", + "fieldname": "customer", + "fieldtype": "Link", + "search_index": 1, + "reqd": 0, + "in_filter": 1, + "options": "Customer" + }, + { + "no_copy": 0, + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "Customer Name", + "oldfieldname": "customer_name", + "fieldname": "customer_name", + "fieldtype": "Data", + "search_index": 1, + "permlevel": 1, + "in_filter": 1 + }, + { + "no_copy": 0, + "oldfieldtype": "Small Text", + "doctype": "DocField", + "label": "Customer Address", + "oldfieldname": "customer_address", + "fieldname": "customer_address", + "fieldtype": "Small Text", + "search_index": 0, + "permlevel": 1 + }, + { + "no_copy": 0, + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Contact Person", + "oldfieldname": "contact_person", + "permlevel": 0, + "trigger": "Client", + "fieldname": "contact_person", + "fieldtype": "Link", + "search_index": 0, + "reqd": 0, + "options": "Contact", + "in_filter": 1 + }, + { + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Territory", + "oldfieldname": "territory", + "permlevel": 0, + "trigger": "Client", + "fieldname": "territory", + "fieldtype": "Link", + "search_index": 0, + "reqd": 0, + "options": "Territory", + "in_filter": 1 + }, + { + "no_copy": 0, + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "Contact No", + "oldfieldname": "contact_no", + "fieldname": "contact_no", + "fieldtype": "Data", + "search_index": 0, + "permlevel": 1 + }, + { + "no_copy": 0, + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "Email Id", + "oldfieldname": "email_id", + "fieldname": "email_id", + "fieldtype": "Data", + "search_index": 0, + "permlevel": 1 + }, + { + "no_copy": 0, + "oldfieldtype": "Link", + "doctype": "DocField", + "label": "Customer Group", + "oldfieldname": "customer_group", + "options": "Customer Group", + "fieldname": "customer_group", + "fieldtype": "Link", + "search_index": 0, + "permlevel": 1 + }, + { + "print_hide": 1, + "no_copy": 0, + "oldfieldtype": "Small Text", + "doctype": "DocField", + "label": "Trash Reason", + "oldfieldname": "trash_reason", + "fieldname": "trash_reason", + "fieldtype": "Small Text", + "search_index": 0, + "hidden": 1, + "permlevel": 0 + }, + { + "print_hide": 1, + "no_copy": 1, + "search_index": 0, + "colour": "White:FFF", + "doctype": "DocField", + "label": "File List", + "fieldname": "file_list", + "fieldtype": "Small Text", + "hidden": 1, + "permlevel": 0 + }, + { + "amend": 0, + "create": 1, + "doctype": "DocPerm", + "submit": 0, + "write": 1, + "role": "Projects User", + "cancel": 1, + "permlevel": 0 + }, + { + "doctype": "DocPerm", + "role": "All", + "permlevel": 1 + } ] \ No newline at end of file diff --git a/public/js/account_tree_grid.js b/public/js/account_tree_grid.js index 10e1daccde..4c669a9d9e 100644 --- a/public/js/account_tree_grid.js +++ b/public/js/account_tree_grid.js @@ -84,12 +84,7 @@ erpnext.AccountTreeGrid = wn.views.TreeGridReport.extend({ }, prepare_data: function() { var me = this; - if(this.data) { - // refresh -- only initialize - $.each(this.data, function(i, d) { - me.init_account(d); - }) - } else { + if(!this.primary_data) { // make accounts list me.data = []; me.parent_map = {}; @@ -103,10 +98,16 @@ erpnext.AccountTreeGrid = wn.views.TreeGridReport.extend({ if(d.parent_account) { me.parent_map[d.name] = d.parent_account; } - - me.init_account(d); }); + + me.primary_data = [].concat(me.data); } + + me.data = [].concat(me.primary_data); + $.each(me.data, function(i, d) { + me.init_account(d); + }); + this.set_indent(); this.prepare_balances(); diff --git a/selling/doctype/customer/customer.txt b/selling/doctype/customer/customer.txt index 489523f25a..a20a982cf1 100644 --- a/selling/doctype/customer/customer.txt +++ b/selling/doctype/customer/customer.txt @@ -1,575 +1,456 @@ -# DocType, Customer [ - - # These values are common in all dictionaries - { - u'creation': '2012-09-21 09:56:34', - u'docstatus': 0, - u'modified': '2012-09-28 12:31:42', - u'modified_by': u'Administrator', - u'owner': u'Administrator' - }, - - # These values are common for all DocType - { - '_last_update': u'1330501485', - 'allow_print': 0, - 'allow_trash': 1, - 'colour': u'White:FFF', - 'default_print_format': u'Standard', - u'doctype': u'DocType', - 'document_type': u'Master', - 'module': u'Selling', - u'name': u'__common__', - 'search_fields': u'customer_name,customer_group,country,territory', - 'section_style': u'Tabbed', - 'server_code_error': u' ', - 'show_in_menu': 0, - 'subject': u'eval:"%(customer_name)s"=="%(name)s" ? "" : "%(customer_name)s"', - 'tag_fields': u'customer_group,customer_type', - 'version': 1 - }, - - # These values are common for all DocField - { - u'doctype': u'DocField', - u'name': u'__common__', - 'parent': u'Customer', - 'parentfield': u'fields', - 'parenttype': u'DocType' - }, - - # These values are common for all DocPerm - { - u'doctype': u'DocPerm', - u'name': u'__common__', - 'parent': u'Customer', - 'parentfield': u'permissions', - 'parenttype': u'DocType', - 'read': 1 - }, - - # DocType, Customer - { - u'doctype': u'DocType', - u'name': u'Customer' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Note: You Can Manage Multiple Address or Contacts via Addresses & Contacts', - u'doctype': u'DocField', - 'fieldname': u'basic_info', - 'fieldtype': u'Section Break', - 'label': u'Basic Info', - 'oldfieldtype': u'Section Break', - 'permlevel': 0, - 'reqd': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'customer_name', - 'fieldtype': u'Data', - 'hidden': 0, - 'in_filter': 1, - 'label': u'Customer Name', - 'no_copy': 1, - 'oldfieldname': u'customer_name', - 'oldfieldtype': u'Data', - 'permlevel': 0, - 'print_hide': 0, - 'report_hide': 0, - 'reqd': 1, - 'search_index': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'customer_type', - 'fieldtype': u'Select', - 'label': u'Customer Type', - 'oldfieldname': u'customer_type', - 'oldfieldtype': u'Select', - 'options': u'\nCompany\nIndividual', - 'permlevel': 0, - 'reqd': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'naming_series', - 'fieldtype': u'Select', - 'label': u'Series', - 'no_copy': 1, - 'options': u'\nCUST\nCUSTMUM', - 'permlevel': 0, - 'print_hide': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Fetch lead which will be converted into customer.', - u'doctype': u'DocField', - 'fieldname': u'lead_name', - 'fieldtype': u'Link', - 'hidden': 0, - 'in_filter': 1, - 'label': u'Lead Ref', - 'no_copy': 1, - 'oldfieldname': u'lead_name', - 'oldfieldtype': u'Link', - 'options': u'Lead', - 'permlevel': 0, - 'print_hide': 1, - 'report_hide': 1, - 'trigger': u'Client' - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'column_break0', - 'fieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'To manage Customer Groups, click here', - u'doctype': u'DocField', - 'fieldname': u'customer_group', - 'fieldtype': u'Link', - 'hidden': 0, - 'in_filter': 1, - 'label': u'Customer Group', - 'oldfieldname': u'customer_group', - 'oldfieldtype': u'Link', - 'options': u'Customer Group', - 'permlevel': 0, - 'print_hide': 0, - 'reqd': 1, - 'search_index': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'To manage Territory, click here', - u'doctype': u'DocField', - 'fieldname': u'territory', - 'fieldtype': u'Link', - 'label': u'Territory', - 'oldfieldname': u'territory', - 'oldfieldtype': u'Link', - 'options': u'Territory', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'colour': u'White:FFF', - u'doctype': u'DocField', - 'fieldname': u'address_contacts', - 'fieldtype': u'Section Break', - 'label': u'Address & Contacts', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'depends_on': u'eval:doc.__islocal', - u'doctype': u'DocField', - 'fieldname': u'address_desc', - 'fieldtype': u'HTML', - 'label': u'Address Desc', - 'options': u'Addresses will appear only when you save the customer', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - u'doctype': u'DocField', - 'fieldname': u'address_html', - 'fieldtype': u'HTML', - 'label': u'Address HTML', - 'permlevel': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'column_break1', - 'fieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'depends_on': u'eval:doc.__islocal', - u'doctype': u'DocField', - 'fieldname': u'contact_desc', - 'fieldtype': u'HTML', - 'label': u'Contact Desc', - 'options': u'Contact Details will appear only when you save the customer', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - u'doctype': u'DocField', - 'fieldname': u'contact_html', - 'fieldtype': u'HTML', - 'label': u'Contact HTML', - 'oldfieldtype': u'HTML', - 'permlevel': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'communication_history', - 'fieldtype': u'Section Break', - 'label': u'Communication History', - 'permlevel': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'communication_html', - 'fieldtype': u'HTML', - 'label': u'Communication HTML', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - u'doctype': u'DocField', - 'fieldname': u'more_info', - 'fieldtype': u'Section Break', - 'label': u'More Info', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'column_break2', - 'fieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'To create an Account Head under a different company, select the company and save customer.', - u'doctype': u'DocField', - 'fieldname': u'company', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Company', - 'oldfieldname': u'company', - 'oldfieldtype': u'Link', - 'options': u'Company', - 'permlevel': 0, - 'reqd': 1, - 'search_index': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'default_price_list', - 'fieldtype': u'Link', - 'label': u'Default Price List', - 'options': u'Price List', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'This currency will get fetched in Sales transactions of this customer', - u'doctype': u'DocField', - 'fieldname': u'default_currency', - 'fieldtype': u'Select', - 'label': u'Default Currency', - 'no_copy': 1, - 'options': u'link:Currency', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u"Your Customer's TAX registration numbers (if applicable) or any general information", - u'doctype': u'DocField', - 'fieldname': u'customer_details', - 'fieldtype': u'Text', - 'label': u'Customer Details', - 'oldfieldname': u'customer_details', - 'oldfieldtype': u'Code', - 'permlevel': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'column_break3', - 'fieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'credit_days', - 'fieldtype': u'Int', - 'label': u'Credit Days', - 'oldfieldname': u'credit_days', - 'oldfieldtype': u'Int', - 'permlevel': 2 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'credit_limit', - 'fieldtype': u'Currency', - 'label': u'Credit Limit', - 'oldfieldname': u'credit_limit', - 'oldfieldtype': u'Currency', - 'permlevel': 2 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'website', - 'fieldtype': u'Data', - 'label': u'Website', - 'permlevel': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'sales_team_section_break', - 'fieldtype': u'Section Break', - 'label': u'Sales Team', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'default_sales_partner', - 'fieldtype': u'Link', - 'label': u'Default Sales Partner', - 'oldfieldname': u'default_sales_partner', - 'oldfieldtype': u'Link', - 'options': u'Sales Partner', - 'permlevel': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'default_commission_rate', - 'fieldtype': u'Currency', - 'label': u'Default Commission Rate', - 'oldfieldname': u'default_commission_rate', - 'oldfieldtype': u'Currency', - 'permlevel': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'sales_team', - 'fieldtype': u'Table', - 'label': u'Sales Team Details', - 'oldfieldname': u'sales_team', - 'oldfieldtype': u'Table', - 'options': u'Sales Team', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'depends_on': u'eval:!doc.__islocal', - u'doctype': u'DocField', - 'fieldname': u'transaction_history', - 'fieldtype': u'Section Break', - 'label': u'Transaction History', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'depends_on': u'eval:!doc.__islocal', - u'doctype': u'DocField', - 'fieldname': u'history_html', - 'fieldtype': u'HTML', - 'label': u'History HTML', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - u'doctype': u'DocField', - 'fieldname': u'trash_reason', - 'fieldtype': u'Small Text', - 'label': u'Trash Reason', - 'oldfieldname': u'trash_reason', - 'oldfieldtype': u'Small Text', - 'permlevel': 1 - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - u'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'Sales Manager', - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - u'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Sales Manager', - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - u'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'Sales User', - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - u'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Sales User', - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 1, - 'create': 1, - u'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Sales Master Manager', - 'submit': 0, - 'write': 1 - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - u'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'Sales Master Manager', - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'cancel': 0, - 'create': 0, - u'doctype': u'DocPerm', - 'permlevel': 2, - 'role': u'Accounts Manager', - 'write': 1 - }, - - # DocPerm - { - 'cancel': 0, - 'create': 0, - u'doctype': u'DocPerm', - 'permlevel': 2, - 'role': u'System Manager', - 'write': 1 - }, - - # DocPerm - { - 'cancel': 0, - 'create': 0, - u'doctype': u'DocPerm', - 'permlevel': 2, - 'role': u'All', - 'write': 0 - }, - - # DocPerm - { - 'cancel': 1, - 'create': 1, - u'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Accounts Manager', - 'write': 1 - }, - - # DocPerm - { - 'cancel': 0, - 'create': 0, - u'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'All', - 'write': 0 - } + { + "owner": "Administrator", + "docstatus": 0, + "creation": "2012-10-02 11:27:30", + "modified_by": "Administrator", + "modified": "2012-09-28 12:31:42" + }, + { + "name": "__common__", + "default_print_format": "Standard", + "allow_print": 0, + "search_fields": "customer_name,customer_group,country,territory", + "module": "Selling", + "doctype": "DocType", + "document_type": "Master" + }, + { + "name": "__common__", + "parent": "Customer", + "doctype": "DocField", + "parenttype": "DocType", + "parentfield": "fields" + }, + { + "name": "__common__", + "parent": "Customer", + "read": 1, + "doctype": "DocPerm", + "parenttype": "DocType", + "parentfield": "permissions" + }, + { + "name": "Customer", + "doctype": "DocType" + }, + { + "print_hide": 0, + "no_copy": 1, + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "Customer Name", + "oldfieldname": "customer_name", + "fieldname": "customer_name", + "fieldtype": "Data", + "search_index": 1, + "reqd": 1, + "hidden": 0, + "permlevel": 0, + "report_hide": 0, + "in_filter": 1 + }, + { + "oldfieldtype": "Select", + "doctype": "DocField", + "label": "Customer Type", + "oldfieldname": "customer_type", + "options": "\nCompany\nIndividual", + "fieldname": "customer_type", + "fieldtype": "Select", + "reqd": 1, + "permlevel": 0 + }, + { + "print_hide": 0, + "no_copy": 1, + "doctype": "DocField", + "label": "Series", + "options": "\nCUST\nCUSTMUM", + "fieldname": "naming_series", + "fieldtype": "Select", + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "Fetch lead which will be converted into customer.", + "no_copy": 1, + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Lead Ref", + "oldfieldname": "lead_name", + "permlevel": 0, + "trigger": "Client", + "fieldname": "lead_name", + "fieldtype": "Link", + "hidden": 0, + "in_filter": 1, + "options": "Lead", + "report_hide": 1 + }, + { + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break0", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 0, + "description": "To manage Customer Groups, click here", + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Customer Group", + "oldfieldname": "customer_group", + "permlevel": 0, + "trigger": "Client", + "fieldname": "customer_group", + "fieldtype": "Link", + "search_index": 1, + "reqd": 1, + "hidden": 0, + "in_filter": 1, + "options": "Customer Group" + }, + { + "print_hide": 1, + "description": "To manage Territory, click here", + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Territory", + "oldfieldname": "territory", + "permlevel": 0, + "trigger": "Client", + "fieldname": "territory", + "fieldtype": "Link", + "reqd": 1, + "options": "Territory" + }, + { + "colour": "White:FFF", + "doctype": "DocField", + "label": "Address & Contacts", + "fieldname": "address_contacts", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "depends_on": "eval:doc.__islocal", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Address Desc", + "options": "Addresses will appear only when you save the customer", + "fieldname": "address_desc", + "fieldtype": "HTML", + "permlevel": 0 + }, + { + "colour": "White:FFF", + "doctype": "DocField", + "label": "Address HTML", + "fieldname": "address_html", + "fieldtype": "HTML", + "permlevel": 1 + }, + { + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break1", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "depends_on": "eval:doc.__islocal", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Contact Desc", + "options": "Contact Details will appear only when you save the customer", + "fieldname": "contact_desc", + "fieldtype": "HTML", + "permlevel": 0 + }, + { + "oldfieldtype": "HTML", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Contact HTML", + "fieldname": "contact_html", + "fieldtype": "HTML", + "permlevel": 1 + }, + { + "doctype": "DocField", + "label": "Communication History", + "fieldname": "communication_history", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "doctype": "DocField", + "label": "Communication HTML", + "fieldname": "communication_html", + "fieldtype": "HTML", + "permlevel": 0 + }, + { + "oldfieldtype": "Section Break", + "colour": "White:FFF", + "doctype": "DocField", + "label": "More Info", + "fieldname": "more_info", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break2", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "description": "To create an Account Head under a different company, select the company and save customer.", + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Company", + "oldfieldname": "company", + "permlevel": 0, + "fieldname": "company", + "fieldtype": "Link", + "search_index": 1, + "reqd": 1, + "in_filter": 1, + "options": "Company" + }, + { + "doctype": "DocField", + "label": "Default Price List", + "options": "Price List", + "fieldname": "default_price_list", + "fieldtype": "Link", + "permlevel": 0 + }, + { + "description": "This currency will get fetched in Sales transactions of this customer", + "no_copy": 1, + "colour": "White:FFF", + "doctype": "DocField", + "label": "Default Currency", + "options": "link:Currency", + "fieldname": "default_currency", + "fieldtype": "Select", + "permlevel": 0 + }, + { + "description": "Your Customer's TAX registration numbers (if applicable) or any general information", + "oldfieldtype": "Code", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Customer Details", + "oldfieldname": "customer_details", + "fieldname": "customer_details", + "fieldtype": "Text", + "permlevel": 0 + }, + { + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break3", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "oldfieldtype": "Int", + "doctype": "DocField", + "label": "Credit Days", + "oldfieldname": "credit_days", + "fieldname": "credit_days", + "fieldtype": "Int", + "permlevel": 2 + }, + { + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Credit Limit", + "oldfieldname": "credit_limit", + "fieldname": "credit_limit", + "fieldtype": "Currency", + "permlevel": 2 + }, + { + "doctype": "DocField", + "label": "Website", + "fieldname": "website", + "fieldtype": "Data", + "permlevel": 0 + }, + { + "oldfieldtype": "Section Break", + "doctype": "DocField", + "label": "Sales Team", + "fieldname": "sales_team_section_break", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "oldfieldtype": "Link", + "doctype": "DocField", + "label": "Default Sales Partner", + "oldfieldname": "default_sales_partner", + "options": "Sales Partner", + "fieldname": "default_sales_partner", + "fieldtype": "Link", + "permlevel": 0 + }, + { + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Default Commission Rate", + "oldfieldname": "default_commission_rate", + "fieldname": "default_commission_rate", + "fieldtype": "Currency", + "permlevel": 0 + }, + { + "oldfieldtype": "Table", + "doctype": "DocField", + "label": "Sales Team Details", + "oldfieldname": "sales_team", + "options": "Sales Team", + "fieldname": "sales_team", + "fieldtype": "Table", + "permlevel": 0 + }, + { + "depends_on": "eval:!doc.__islocal", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Transaction History", + "fieldname": "transaction_history", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "depends_on": "eval:!doc.__islocal", + "colour": "White:FFF", + "doctype": "DocField", + "label": "History HTML", + "fieldname": "history_html", + "fieldtype": "HTML", + "permlevel": 0 + }, + { + "oldfieldtype": "Small Text", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Trash Reason", + "oldfieldname": "trash_reason", + "fieldname": "trash_reason", + "fieldtype": "Small Text", + "permlevel": 1 + }, + { + "amend": 0, + "create": 1, + "doctype": "DocPerm", + "submit": 0, + "write": 1, + "role": "Sales Master Manager", + "cancel": 1, + "permlevel": 0 + }, + { + "amend": 0, + "create": 0, + "doctype": "DocPerm", + "submit": 0, + "write": 0, + "role": "Sales Master Manager", + "cancel": 0, + "permlevel": 1 + }, + { + "amend": 0, + "create": 0, + "doctype": "DocPerm", + "submit": 0, + "write": 0, + "role": "Sales Manager", + "cancel": 0, + "permlevel": 1 + }, + { + "amend": 0, + "create": 0, + "doctype": "DocPerm", + "submit": 0, + "write": 0, + "role": "Sales Manager", + "cancel": 0, + "permlevel": 0 + }, + { + "amend": 0, + "create": 0, + "doctype": "DocPerm", + "submit": 0, + "write": 0, + "role": "Sales User", + "cancel": 0, + "permlevel": 1 + }, + { + "amend": 0, + "create": 0, + "doctype": "DocPerm", + "submit": 0, + "write": 0, + "role": "Sales User", + "cancel": 0, + "permlevel": 0 + }, + { + "create": 0, + "doctype": "DocPerm", + "write": 1, + "role": "Accounts Manager", + "cancel": 0, + "permlevel": 2 + }, + { + "create": 0, + "doctype": "DocPerm", + "write": 1, + "role": "System Manager", + "cancel": 0, + "permlevel": 2 + }, + { + "create": 0, + "doctype": "DocPerm", + "write": 0, + "role": "All", + "cancel": 0, + "permlevel": 2 + }, + { + "create": 1, + "doctype": "DocPerm", + "write": 1, + "role": "Accounts Manager", + "cancel": 1, + "permlevel": 0 + }, + { + "create": 0, + "doctype": "DocPerm", + "write": 0, + "role": "All", + "cancel": 0, + "permlevel": 1 + } ] \ No newline at end of file diff --git a/selling/doctype/opportunity/opportunity.txt b/selling/doctype/opportunity/opportunity.txt index 54bd3af7cc..f89a5d2271 100644 --- a/selling/doctype/opportunity/opportunity.txt +++ b/selling/doctype/opportunity/opportunity.txt @@ -1,640 +1,522 @@ -# DocType, Opportunity [ - - # These values are common in all dictionaries - { - u'creation': '2012-07-03 13:30:38', - u'docstatus': 0, - u'modified': '2012-11-16 12:27:49', - u'modified_by': u'Administrator', - u'owner': u'Administrator' - }, - - # These values are common for all DocType - { - '_last_update': u'1324284087', - 'colour': u'White:FFF', - 'default_print_format': u'Standard', - u'doctype': u'DocType', - 'document_type': u'Transaction', - 'is_submittable': 1, - 'module': u'Selling', - u'name': u'__common__', - 'search_fields': u'status,transaction_date,customer,lead,enquiry_type,territory,company', - 'section_style': u'Tabbed', - 'server_code_error': u' ', - 'show_in_menu': 0, - 'subject': u'To %(customer_name)s%(lead_name)s on %(transaction_date)s', - 'version': 1 - }, - - # These values are common for all DocField - { - u'doctype': u'DocField', - u'name': u'__common__', - 'parent': u'Opportunity', - 'parentfield': u'fields', - 'parenttype': u'DocType' - }, - - # These values are common for all DocPerm - { - u'doctype': u'DocPerm', - u'name': u'__common__', - 'parent': u'Opportunity', - 'parentfield': u'permissions', - 'parenttype': u'DocType', - 'read': 1 - }, - - # DocType, Opportunity - { - u'doctype': u'DocType', - u'name': u'Opportunity' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Enter customer enquiry for which you might raise a quotation in future', - u'doctype': u'DocField', - 'fieldname': u'basic_info', - 'fieldtype': u'Section Break', - 'label': u'Basic Info', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'To manage multiple series please go to Setup > Manage Series', - u'doctype': u'DocField', - 'fieldname': u'naming_series', - 'fieldtype': u'Select', - 'label': u'Naming Series', - 'no_copy': 1, - 'oldfieldname': u'naming_series', - 'oldfieldtype': u'Select', - 'options': u'ENQUIRY\nENQ', - 'permlevel': 0, - 'reqd': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - u'doctype': u'DocField', - 'fieldname': u'enquiry_from', - 'fieldtype': u'Select', - 'label': u'Opportunity From', - 'oldfieldname': u'enquiry_from', - 'oldfieldtype': u'Select', - 'options': u'\nLead\nCustomer', - 'permlevel': 0, - 'print_hide': 1, - 'report_hide': 0, - 'reqd': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'colour': u'White:FFF', - u'doctype': u'DocField', - 'fieldname': u'customer', - 'fieldtype': u'Link', - 'hidden': 0, - 'in_filter': 1, - 'label': u'Customer', - 'oldfieldname': u'customer', - 'oldfieldtype': u'Link', - 'options': u'Customer', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 0, - 'search_index': 0, - 'trigger': u'Client' - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'lead', - 'fieldtype': u'Link', - 'hidden': 0, - 'in_filter': 1, - 'label': u'Lead', - 'oldfieldname': u'lead', - 'oldfieldtype': u'Link', - 'options': u'Lead', - 'permlevel': 0, - 'print_hide': 1, - 'trigger': u'Client' - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'column_break0', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'default': u'Draft', - u'doctype': u'DocField', - 'fieldname': u'status', - 'fieldtype': u'Select', - 'label': u'Status', - 'no_copy': 1, - 'oldfieldname': u'status', - 'oldfieldtype': u'Select', - 'options': u'\nDraft\nSubmitted\nQuotation Sent\nOrder Confirmed\nOpportunity Lost\nCancelled', - 'permlevel': 1, - 'reqd': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - u'doctype': u'DocField', - 'fieldname': u'enquiry_type', - 'fieldtype': u'Select', - 'label': u'Opportunity Type', - 'oldfieldname': u'enquiry_type', - 'oldfieldtype': u'Select', - 'options': u'\nSales\nMaintenance', - 'permlevel': 0, - 'reqd': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - u'doctype': u'DocField', - 'fieldname': u'items', - 'fieldtype': u'Section Break', - 'label': u'Items', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u"Items which do not exist in Item master can also be entered on customer's request", - u'doctype': u'DocField', - 'fieldname': u'enquiry_details', - 'fieldtype': u'Table', - 'label': u'Opportunity Items', - 'oldfieldname': u'enquiry_details', - 'oldfieldtype': u'Table', - 'options': u'Opportunity Item', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Keep a track of communication related to this enquiry which will help for future reference.', - u'doctype': u'DocField', - 'fieldname': u'communication_history', - 'fieldtype': u'Section Break', - 'label': u'Communication History', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'allow_on_submit': 1, - 'colour': u'White:FFF', - u'doctype': u'DocField', - 'fieldname': u'communication_html', - 'fieldtype': u'HTML', - 'label': u'Communication HTML', - 'oldfieldname': u'follow_up', - 'oldfieldtype': u'Table', - 'permlevel': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'contact_info', - 'fieldtype': u'Section Break', - 'label': u'Contact Info', - 'permlevel': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'contact_person', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Contact Person', - 'options': u'Contact', - 'permlevel': 0, - 'print_hide': 1, - 'trigger': u'Client' - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'customer_address', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Customer Address', - 'options': u'Address', - 'permlevel': 0, - 'print_hide': 1, - 'trigger': u'Client' - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'customer_name', - 'fieldtype': u'Data', - 'label': u'Customer Name', - 'permlevel': 1, - 'print_hide': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'address_display', - 'fieldtype': u'Small Text', - 'hidden': 0, - 'label': u'Address', - 'oldfieldname': u'address', - 'oldfieldtype': u'Small Text', - 'permlevel': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'column_break3', - 'fieldtype': u'Column Break', - 'permlevel': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'contact_display', - 'fieldtype': u'Small Text', - 'label': u'Contact', - 'permlevel': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'contact_email', - 'fieldtype': u'Text', - 'label': u'Contact Email', - 'permlevel': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'contact_mobile', - 'fieldtype': u'Text', - 'label': u'Contact Mobile No', - 'permlevel': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'lead_name', - 'fieldtype': u'Data', - 'hidden': 0, - 'label': u'Name', - 'oldfieldname': u'lead_name', - 'oldfieldtype': u'Data', - 'permlevel': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'depends_on': u'eval:doc.enquiry_from=="Customer"', - 'description': u'To manage Territory, click here', - u'doctype': u'DocField', - 'fieldname': u'customer_group', - 'fieldtype': u'Link', - 'hidden': 0, - 'in_filter': 1, - 'label': u'Customer Group', - 'oldfieldname': u'customer_group', - 'oldfieldtype': u'Link', - 'options': u'Customer Group', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 0, - 'search_index': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'To manage Territory, click here', - u'doctype': u'DocField', - 'fieldname': u'territory', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Territory', - 'options': u'Territory', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 0, - 'search_index': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Filing in Additional Information about the Opportunity will help you analyze your data better.', - u'doctype': u'DocField', - 'fieldname': u'more_info', - 'fieldtype': u'Section Break', - 'label': u'More Info', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'column_break1', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'default': u'Today', - 'description': u'The date at which current entry is made in system.', - u'doctype': u'DocField', - 'fieldname': u'transaction_date', - 'fieldtype': u'Date', - 'label': u'Opportunity Date', - 'oldfieldname': u'transaction_date', - 'oldfieldtype': u'Date', - 'permlevel': 0, - 'reqd': 1, - 'width': u'50px' - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'fiscal_year', - 'fieldtype': u'Select', - 'in_filter': 1, - 'label': u'Fiscal Year', - 'oldfieldname': u'fiscal_year', - 'oldfieldtype': u'Select', - 'options': u'link:Fiscal Year', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1, - 'search_index': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'source', - 'fieldtype': u'Select', - 'label': u'Source', - 'oldfieldname': u'source', - 'oldfieldtype': u'Select', - 'options': u"\nExisting Customer\nReference\nAdvertisement\nCold Calling\nExhibition\nSupplier Reference\nMass Mailing\nCustomer's Vendor\nCampaign\nWalk In", - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Enter name of campaign if source of enquiry is campaign', - u'doctype': u'DocField', - 'fieldname': u'campaign', - 'fieldtype': u'Link', - 'label': u'Campaign', - 'oldfieldname': u'campaign', - 'oldfieldtype': u'Link', - 'options': u'Campaign', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'depends_on': u'eval:!doc.__islocal', - u'doctype': u'DocField', - 'fieldname': u'order_lost_reason', - 'fieldtype': u'Small Text', - 'label': u'Quotation Lost Reason', - 'no_copy': 1, - 'oldfieldname': u'order_lost_reason', - 'oldfieldtype': u'Small Text', - 'permlevel': 1, - 'report_hide': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'company', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Company', - 'oldfieldname': u'company', - 'oldfieldtype': u'Link', - 'options': u'Company', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1, - 'search_index': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'column_break2', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Your sales person who will contact the customer in future', - u'doctype': u'DocField', - 'fieldname': u'contact_by', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Next Contact By', - 'oldfieldname': u'contact_by', - 'oldfieldtype': u'Link', - 'options': u'Profile', - 'permlevel': 0, - 'width': u'75px' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Your sales person will get a reminder on this date to contact the customer', - u'doctype': u'DocField', - 'fieldname': u'contact_date', - 'fieldtype': u'Date', - 'label': u'Next Contact Date', - 'oldfieldname': u'contact_date', - 'oldfieldtype': u'Date', - 'permlevel': 0 - }, - - # DocField - { - 'allow_on_submit': 0, - 'colour': u'White:FFF', - 'depends_on': u'eval:!doc.__islocal', - 'description': u'Date on which the lead was last contacted', - u'doctype': u'DocField', - 'fieldname': u'last_contact_date', - 'fieldtype': u'Date', - 'label': u'Last Contact Date', - 'no_copy': 1, - 'oldfieldname': u'last_contact_date', - 'oldfieldtype': u'Date', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'to_discuss', - 'fieldtype': u'Small Text', - 'label': u'To Discuss', - 'no_copy': 1, - 'oldfieldname': u'to_discuss', - 'oldfieldtype': u'Small Text', - 'permlevel': 0 - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'amended_from', - 'fieldtype': u'Data', - 'label': u'Amended From', - 'no_copy': 1, - 'oldfieldname': u'amended_from', - 'oldfieldtype': u'Data', - 'permlevel': 1, - 'print_hide': 1, - 'width': u'150px' - }, - - # DocField - { - u'doctype': u'DocField', - 'fieldname': u'amendment_date', - 'fieldtype': u'Date', - 'label': u'Amendment Date', - 'no_copy': 1, - 'oldfieldname': u'amendment_date', - 'oldfieldtype': u'Date', - 'permlevel': 1, - 'print_hide': 1, - 'width': u'150px' - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - u'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'Sales Manager', - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'amend': 1, - 'cancel': 1, - 'create': 1, - u'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'System Manager', - 'submit': 1, - 'write': 1 - }, - - # DocPerm - { - u'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'System Manager' - }, - - # DocPerm - { - 'amend': 1, - 'cancel': 1, - 'create': 1, - u'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Sales User', - 'submit': 1, - 'write': 1 - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - u'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'Sales User', - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'amend': 1, - 'cancel': 1, - 'create': 1, - u'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Sales Manager', - 'submit': 1, - 'write': 1 - } + { + "owner": "Administrator", + "docstatus": 0, + "creation": "2012-11-28 11:26:19", + "modified_by": "Administrator", + "modified": "2012-11-16 12:27:49" + }, + { + "is_submittable": 1, + "name": "__common__", + "default_print_format": "Standard", + "search_fields": "status,transaction_date,customer,lead,enquiry_type,territory,company", + "module": "Selling", + "doctype": "DocType", + "document_type": "Transaction" + }, + { + "name": "__common__", + "parent": "Opportunity", + "doctype": "DocField", + "parenttype": "DocType", + "parentfield": "fields" + }, + { + "name": "__common__", + "parent": "Opportunity", + "read": 1, + "doctype": "DocPerm", + "parenttype": "DocType", + "parentfield": "permissions" + }, + { + "name": "Opportunity", + "doctype": "DocType" + }, + { + "description": "To manage multiple series please go to Setup > Manage Series", + "no_copy": 1, + "oldfieldtype": "Select", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Naming Series", + "oldfieldname": "naming_series", + "permlevel": 0, + "fieldname": "naming_series", + "fieldtype": "Select", + "reqd": 1, + "options": "ENQUIRY\nENQ" + }, + { + "print_hide": 1, + "oldfieldtype": "Select", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Opportunity From", + "oldfieldname": "enquiry_from", + "permlevel": 0, + "trigger": "Client", + "fieldname": "enquiry_from", + "fieldtype": "Select", + "reqd": 1, + "options": "\nLead\nCustomer", + "report_hide": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Customer", + "oldfieldname": "customer", + "permlevel": 0, + "trigger": "Client", + "fieldname": "customer", + "fieldtype": "Link", + "search_index": 0, + "reqd": 0, + "hidden": 0, + "options": "Customer", + "in_filter": 1 + }, + { + "print_hide": 1, + "oldfieldtype": "Link", + "doctype": "DocField", + "label": "Lead", + "oldfieldname": "lead", + "permlevel": 0, + "trigger": "Client", + "fieldname": "lead", + "fieldtype": "Link", + "hidden": 0, + "options": "Lead", + "in_filter": 1 + }, + { + "oldfieldtype": "Column Break", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break0", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "permlevel": 1, + "no_copy": 1, + "oldfieldtype": "Select", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Status", + "oldfieldname": "status", + "default": "Draft", + "fieldname": "status", + "fieldtype": "Select", + "reqd": 1, + "options": "\nDraft\nSubmitted\nQuotation Sent\nOrder Confirmed\nOpportunity Lost\nCancelled" + }, + { + "oldfieldtype": "Select", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Opportunity Type", + "oldfieldname": "enquiry_type", + "options": "\nSales\nMaintenance", + "fieldname": "enquiry_type", + "fieldtype": "Select", + "reqd": 1, + "permlevel": 0 + }, + { + "oldfieldtype": "Section Break", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Items", + "fieldname": "items", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "description": "Items which do not exist in Item master can also be entered on customer's request", + "oldfieldtype": "Table", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Opportunity Items", + "oldfieldname": "enquiry_details", + "options": "Opportunity Item", + "fieldname": "enquiry_details", + "fieldtype": "Table", + "permlevel": 0 + }, + { + "description": "Keep a track of communication related to this enquiry which will help for future reference.", + "oldfieldtype": "Section Break", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Communication History", + "fieldname": "communication_history", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "allow_on_submit": 1, + "oldfieldtype": "Table", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Communication HTML", + "oldfieldname": "follow_up", + "fieldname": "communication_html", + "fieldtype": "HTML", + "permlevel": 0 + }, + { + "doctype": "DocField", + "label": "Contact Info", + "fieldname": "contact_info", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "doctype": "DocField", + "label": "Contact Person", + "trigger": "Client", + "fieldname": "contact_person", + "fieldtype": "Link", + "options": "Contact", + "permlevel": 0, + "in_filter": 1 + }, + { + "print_hide": 1, + "doctype": "DocField", + "label": "Customer Address", + "trigger": "Client", + "fieldname": "customer_address", + "fieldtype": "Link", + "options": "Address", + "permlevel": 0, + "in_filter": 1 + }, + { + "print_hide": 0, + "doctype": "DocField", + "label": "Customer Name", + "fieldname": "customer_name", + "fieldtype": "Data", + "permlevel": 1 + }, + { + "oldfieldtype": "Small Text", + "doctype": "DocField", + "label": "Address", + "oldfieldname": "address", + "fieldname": "address_display", + "fieldtype": "Small Text", + "hidden": 0, + "permlevel": 1 + }, + { + "doctype": "DocField", + "fieldname": "column_break3", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "doctype": "DocField", + "label": "Contact", + "fieldname": "contact_display", + "fieldtype": "Small Text", + "permlevel": 1 + }, + { + "doctype": "DocField", + "label": "Contact Email", + "fieldname": "contact_email", + "fieldtype": "Text", + "permlevel": 1 + }, + { + "doctype": "DocField", + "label": "Contact Mobile No", + "fieldname": "contact_mobile", + "fieldtype": "Text", + "permlevel": 1 + }, + { + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "Name", + "oldfieldname": "lead_name", + "fieldname": "lead_name", + "fieldtype": "Data", + "hidden": 0, + "permlevel": 1 + }, + { + "print_hide": 1, + "depends_on": "eval:doc.enquiry_from==\"Customer\"", + "description": "To manage Territory, click here", + "search_index": 1, + "colour": "White:FFF", + "doctype": "DocField", + "label": "Customer Group", + "oldfieldname": "customer_group", + "permlevel": 0, + "trigger": "Client", + "fieldname": "customer_group", + "fieldtype": "Link", + "oldfieldtype": "Link", + "reqd": 0, + "hidden": 0, + "in_filter": 1, + "options": "Customer Group" + }, + { + "print_hide": 1, + "description": "To manage Territory, click here", + "search_index": 1, + "colour": "White:FFF", + "doctype": "DocField", + "label": "Territory", + "permlevel": 0, + "trigger": "Client", + "fieldname": "territory", + "fieldtype": "Link", + "reqd": 0, + "in_filter": 1, + "options": "Territory" + }, + { + "description": "Filing in Additional Information about the Opportunity will help you analyze your data better.", + "oldfieldtype": "Section Break", + "colour": "White:FFF", + "doctype": "DocField", + "label": "More Info", + "fieldname": "more_info", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "oldfieldtype": "Column Break", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break1", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "description": "The date at which current entry is made in system.", + "default": "Today", + "oldfieldtype": "Date", + "doctype": "DocField", + "label": "Opportunity Date", + "oldfieldname": "transaction_date", + "width": "50px", + "fieldname": "transaction_date", + "fieldtype": "Date", + "reqd": 1, + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Select", + "doctype": "DocField", + "label": "Fiscal Year", + "oldfieldname": "fiscal_year", + "permlevel": 0, + "fieldname": "fiscal_year", + "fieldtype": "Select", + "search_index": 1, + "reqd": 1, + "options": "link:Fiscal Year", + "in_filter": 1 + }, + { + "oldfieldtype": "Select", + "doctype": "DocField", + "label": "Source", + "oldfieldname": "source", + "options": "\nExisting Customer\nReference\nAdvertisement\nCold Calling\nExhibition\nSupplier Reference\nMass Mailing\nCustomer's Vendor\nCampaign\nWalk In", + "fieldname": "source", + "fieldtype": "Select", + "permlevel": 0 + }, + { + "description": "Enter name of campaign if source of enquiry is campaign", + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Campaign", + "oldfieldname": "campaign", + "options": "Campaign", + "fieldname": "campaign", + "fieldtype": "Link", + "permlevel": 0 + }, + { + "no_copy": 1, + "oldfieldtype": "Small Text", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Quotation Lost Reason", + "oldfieldname": "order_lost_reason", + "fieldname": "order_lost_reason", + "fieldtype": "Small Text", + "depends_on": "eval:!doc.__islocal", + "permlevel": 1, + "report_hide": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Link", + "doctype": "DocField", + "label": "Company", + "oldfieldname": "company", + "permlevel": 0, + "fieldname": "company", + "fieldtype": "Link", + "search_index": 1, + "reqd": 1, + "options": "Company", + "in_filter": 1 + }, + { + "oldfieldtype": "Column Break", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break2", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "description": "Your sales person who will contact the customer in future", + "permlevel": 0, + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Next Contact By", + "oldfieldname": "contact_by", + "width": "75px", + "fieldname": "contact_by", + "fieldtype": "Link", + "in_filter": 1, + "options": "Profile" + }, + { + "description": "Your sales person will get a reminder on this date to contact the customer", + "oldfieldtype": "Date", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Next Contact Date", + "oldfieldname": "contact_date", + "fieldname": "contact_date", + "fieldtype": "Date", + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "Date on which the lead was last contacted", + "no_copy": 1, + "oldfieldtype": "Date", + "colour": "White:FFF", + "allow_on_submit": 0, + "doctype": "DocField", + "label": "Last Contact Date", + "oldfieldname": "last_contact_date", + "fieldname": "last_contact_date", + "fieldtype": "Date", + "depends_on": "eval:!doc.__islocal", + "permlevel": 1 + }, + { + "no_copy": 1, + "oldfieldtype": "Small Text", + "doctype": "DocField", + "label": "To Discuss", + "oldfieldname": "to_discuss", + "fieldname": "to_discuss", + "fieldtype": "Small Text", + "permlevel": 0 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "Amended From", + "oldfieldname": "amended_from", + "width": "150px", + "fieldname": "amended_from", + "fieldtype": "Data", + "permlevel": 1 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Date", + "doctype": "DocField", + "label": "Amendment Date", + "oldfieldname": "amendment_date", + "width": "150px", + "fieldname": "amendment_date", + "fieldtype": "Date", + "permlevel": 1 + }, + { + "amend": 1, + "create": 1, + "doctype": "DocPerm", + "submit": 1, + "write": 1, + "role": "System Manager", + "cancel": 1, + "permlevel": 0 + }, + { + "doctype": "DocPerm", + "role": "System Manager", + "permlevel": 1 + }, + { + "amend": 1, + "create": 1, + "doctype": "DocPerm", + "submit": 1, + "write": 1, + "role": "Sales User", + "cancel": 1, + "permlevel": 0 + }, + { + "amend": 0, + "create": 0, + "doctype": "DocPerm", + "submit": 0, + "write": 0, + "role": "Sales User", + "cancel": 0, + "permlevel": 1 + }, + { + "amend": 1, + "create": 1, + "doctype": "DocPerm", + "submit": 1, + "write": 1, + "role": "Sales Manager", + "cancel": 1, + "permlevel": 0 + }, + { + "amend": 0, + "create": 0, + "doctype": "DocPerm", + "submit": 0, + "write": 0, + "role": "Sales Manager", + "cancel": 0, + "permlevel": 1 + } ] \ No newline at end of file diff --git a/selling/doctype/quotation/quotation.txt b/selling/doctype/quotation/quotation.txt index 920b819d01..0a39bc62e8 100644 --- a/selling/doctype/quotation/quotation.txt +++ b/selling/doctype/quotation/quotation.txt @@ -2,7 +2,7 @@ { "owner": "Administrator", "docstatus": 0, - "creation": "2012-11-02 17:16:44", + "creation": "2012-11-28 11:26:20", "modified_by": "Administrator", "modified": "2012-11-26 11:57:10" }, @@ -40,16 +40,6 @@ "name": "Quotation", "doctype": "DocType" }, - { - "print_hide": 1, - "oldfieldtype": "Section Break", - "colour": "White:FFF", - "doctype": "DocField", - "label": "Basic Info", - "fieldname": "basic_info", - "fieldtype": "Section Break", - "permlevel": 0 - }, { "doctype": "DocField", "width": "50%", @@ -245,9 +235,9 @@ "permlevel": 0 }, { - "allow_on_submit": 1, "oldfieldtype": "Table", "colour": "White:FFF", + "allow_on_submit": 1, "doctype": "DocField", "label": "Quotation Items", "oldfieldname": "quotation_details", @@ -739,8 +729,8 @@ }, { "print_hide": 1, - "allow_on_submit": 1, "oldfieldtype": "Select", + "allow_on_submit": 1, "doctype": "DocField", "label": "Letter Head", "oldfieldname": "letter_head", @@ -861,8 +851,8 @@ "permlevel": 0 }, { - "permlevel": 1, "print_hide": 1, + "permlevel": 1, "no_copy": 1, "oldfieldtype": "Select", "colour": "White:FFF", diff --git a/selling/doctype/sales_order/sales_order.js b/selling/doctype/sales_order/sales_order.js index 1285c84e97..f720cfa657 100644 --- a/selling/doctype/sales_order/sales_order.js +++ b/selling/doctype/sales_order/sales_order.js @@ -92,6 +92,16 @@ cur_frm.cscript.refresh = function(doc, cdt, cdn) { cur_frm.add_custom_button('Unstop', cur_frm.cscript['Unstop Sales Order']); } } + + cur_frm.cscript.order_type(doc); +} + +cur_frm.cscript.order_type = function(doc) { + if(doc.order_type == "Sales") { + cur_frm.toggle_reqd("delivery_date", 1); + } else { + cur_frm.toggle_reqd("delivery_date", 0); + } } //customer diff --git a/selling/doctype/sales_order/sales_order.txt b/selling/doctype/sales_order/sales_order.txt index 745ca20b55..637914ac0f 100644 --- a/selling/doctype/sales_order/sales_order.txt +++ b/selling/doctype/sales_order/sales_order.txt @@ -2,7 +2,7 @@ { "owner": "Administrator", "docstatus": 0, - "creation": "2012-11-24 17:21:44", + "creation": "2012-11-28 11:26:20", "modified_by": "Administrator", "modified": "2012-11-26 11:56:33" }, @@ -38,16 +38,6 @@ "name": "Sales Order", "doctype": "DocType" }, - { - "print_hide": 1, - "oldfieldtype": "Section Break", - "colour": "White:FFF", - "doctype": "DocField", - "label": "Basic Info", - "fieldname": "basic_info", - "fieldtype": "Section Break", - "permlevel": 0 - }, { "oldfieldtype": "Column Break", "doctype": "DocField", @@ -734,8 +724,8 @@ }, { "print_hide": 1, - "oldfieldtype": "Select", "allow_on_submit": 1, + "oldfieldtype": "Select", "doctype": "DocField", "label": "Letter Head", "oldfieldname": "letter_head", @@ -835,17 +825,17 @@ }, { "print_hide": 1, - "doctype": "DocField", "no_copy": 1, "depends_on": "eval:!doc.__islocal", "colour": "White:FFF", - "oldfieldtype": "Data", + "doctype": "DocField", "label": "Cancel Reason", "oldfieldname": "cancel_reason", + "permlevel": 1, "fieldname": "cancel_reason", "fieldtype": "Data", "no_column": 0, - "permlevel": 1 + "oldfieldtype": "Data" }, { "print_hide": 1, diff --git a/selling/page/sales_analytics/sales_analytics.js b/selling/page/sales_analytics/sales_analytics.js index d454d67c3d..6c4713304d 100644 --- a/selling/page/sales_analytics/sales_analytics.js +++ b/selling/page/sales_analytics/sales_analytics.js @@ -136,7 +136,7 @@ erpnext.SalesAnalytics = wn.views.TreeGridReport.extend({ }, init_filter_values: function() { this._super(); - this.filter_inputs.range.val('Weekly'); + this.filter_inputs.range.val('Monthly'); }, prepare_data: function() { var me = this; diff --git a/stock/doctype/delivery_note/delivery_note.txt b/stock/doctype/delivery_note/delivery_note.txt index bdeea6c031..3752b6e1bb 100644 --- a/stock/doctype/delivery_note/delivery_note.txt +++ b/stock/doctype/delivery_note/delivery_note.txt @@ -2,7 +2,7 @@ { "owner": "Administrator", "docstatus": 0, - "creation": "2012-11-02 17:16:55", + "creation": "2012-11-28 11:26:21", "modified_by": "Administrator", "modified": "2012-11-26 11:56:10" }, @@ -38,15 +38,6 @@ "name": "Delivery Note", "doctype": "DocType" }, - { - "oldfieldtype": "Section Break", - "colour": "White:FFF", - "doctype": "DocField", - "label": "Basic Info", - "fieldname": "basic_info", - "fieldtype": "Section Break", - "permlevel": 0 - }, { "oldfieldtype": "Column Break", "doctype": "DocField", @@ -784,8 +775,8 @@ }, { "print_hide": 1, - "oldfieldtype": "Link", "allow_on_submit": 1, + "oldfieldtype": "Link", "doctype": "DocField", "label": "Letter Head", "oldfieldname": "letter_head", @@ -851,8 +842,8 @@ }, { "print_hide": 1, - "oldfieldtype": "Check", "allow_on_submit": 1, + "oldfieldtype": "Check", "doctype": "DocField", "label": "Print Without Amount", "oldfieldname": "print_without_amount", @@ -924,9 +915,9 @@ }, { "print_hide": 1, + "allow_on_submit": 0, "no_copy": 1, "oldfieldtype": "Data", - "allow_on_submit": 0, "doctype": "DocField", "label": "Amended From", "oldfieldname": "amended_from", @@ -1167,7 +1158,8 @@ "write": 1, "role": "Sales User", "cancel": 1, - "permlevel": 0 + "permlevel": 0, + "match": "" }, { "amend": 0, @@ -1182,12 +1174,12 @@ { "doctype": "DocPerm", "role": "Customer", - "permlevel": 0, - "match": "customer_name" + "match": "customer_name", + "permlevel": 0 }, { - "doctype": "DocPerm", "write": 1, + "doctype": "DocPerm", "role": "All", "permlevel": 2 }, diff --git a/stock/doctype/purchase_receipt/purchase_receipt.txt b/stock/doctype/purchase_receipt/purchase_receipt.txt index af6b484013..2e89d2242d 100755 --- a/stock/doctype/purchase_receipt/purchase_receipt.txt +++ b/stock/doctype/purchase_receipt/purchase_receipt.txt @@ -1,1187 +1,986 @@ -# DocType, Purchase Receipt [ - - # These values are common in all dictionaries - { - 'creation': '2012-06-11 12:10:11', - 'docstatus': 0, - 'modified': '2012-07-16 16:26:24', - 'modified_by': u'Administrator', - 'owner': u'Administrator' - }, - - # These values are common for all DocType - { - '_last_update': u'1330593645', - 'allow_attach': 1, - 'colour': u'White:FFF', - 'default_print_format': u'Standard', - 'doctype': 'DocType', - 'document_type': u'Transaction', - 'is_submittable': 1, - 'is_transaction_doc': 1, - 'module': u'Stock', - 'name': '__common__', - 'read_only_onload': 1, - 'search_fields': u'status, posting_date, supplier', - 'section_style': u'Tabbed', - 'server_code_error': u' ', - 'show_in_menu': 0, - 'subject': u'From %(supplier_name)s against %(purchase_order)s on %(posting_date)s', - 'version': 1 - }, - - # These values are common for all DocField - { - 'doctype': u'DocField', - 'name': '__common__', - 'parent': u'Purchase Receipt', - 'parentfield': u'fields', - 'parenttype': u'DocType' - }, - - # These values are common for all DocPerm - { - 'doctype': u'DocPerm', - 'name': '__common__', - 'parent': u'Purchase Receipt', - 'parentfield': u'permissions', - 'parenttype': u'DocType', - 'read': 1 - }, - - # DocType, Purchase Receipt - { - 'doctype': 'DocType', - 'name': u'Purchase Receipt' - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'basic_info', - 'fieldtype': u'Section Break', - 'label': u'Basic Info', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break0', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'To manage multiple series please go to Setup > Manage Series', - 'doctype': u'DocField', - 'fieldname': u'naming_series', - 'fieldtype': u'Select', - 'label': u'Series', - 'no_copy': 1, - 'oldfieldname': u'naming_series', - 'oldfieldtype': u'Select', - 'options': u'\nGRN', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1 - }, - - # DocField - { - 'allow_on_submit': 0, - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'supplier', - 'fieldtype': u'Link', - 'in_filter': 1, - 'label': u'Supplier', - 'oldfieldname': u'supplier', - 'oldfieldtype': u'Link', - 'options': u'Supplier', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1, - 'search_index': 1, - 'trigger': u'Client', - 'width': u'150px' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'supplier_name', - 'fieldtype': u'Data', - 'hidden': 1, - 'label': u'Name', - 'permlevel': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'address_display', - 'fieldtype': u'Small Text', - 'hidden': 1, - 'label': u'Address', - 'permlevel': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'contact_display', - 'fieldtype': u'Small Text', - 'hidden': 1, - 'label': u'Contact', - 'permlevel': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'contact_mobile', - 'fieldtype': u'Text', - 'hidden': 1, - 'label': u'Mobile No', - 'permlevel': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'contact_email', - 'fieldtype': u'Text', - 'hidden': 1, - 'label': u'Contact Email', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break1', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'The date at which current entry will get or has actually executed.', - 'doctype': u'DocField', - 'fieldname': u'posting_date', - 'fieldtype': u'Date', - 'in_filter': 1, - 'label': u'Posting Date', - 'no_copy': 1, - 'oldfieldname': u'posting_date', - 'oldfieldtype': u'Date', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1, - 'search_index': 1, - 'width': u'100px' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Time at which materials were received', - 'doctype': u'DocField', - 'fieldname': u'posting_time', - 'fieldtype': u'Time', - 'in_filter': 0, - 'label': u'Posting Time', - 'no_copy': 1, - 'oldfieldname': u'posting_time', - 'oldfieldtype': u'Time', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1, - 'search_index': 0, - 'width': u'100px' - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'challan_no', - 'fieldtype': u'Data', - 'hidden': 1, - 'label': u'Challan No', - 'no_copy': 1, - 'oldfieldname': u'challan_no', - 'oldfieldtype': u'Data', - 'permlevel': 0, - 'print_hide': 0, - 'reqd': 0, - 'width': u'100px' - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'challan_date', - 'fieldtype': u'Date', - 'hidden': 1, - 'label': u'Challan Date', - 'no_copy': 1, - 'oldfieldname': u'challan_date', - 'oldfieldtype': u'Date', - 'permlevel': 0, - 'print_hide': 0, - 'reqd': 0, - 'width': u'100px' - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'items', - 'fieldtype': u'Section Break', - 'label': u'Items', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'allow_on_submit': 1, - 'doctype': u'DocField', - 'fieldname': u'purchase_receipt_details', - 'fieldtype': u'Table', - 'label': u'Purchase Receipt Items', - 'oldfieldname': u'purchase_receipt_details', - 'oldfieldtype': u'Table', - 'options': u'Purchase Receipt Item', - 'permlevel': 0, - 'print_hide': 0, - 'reqd': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'section_break0', - 'fieldtype': u'Section Break', - 'oldfieldtype': u'Section Break', - 'options': u'Simple', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'net_total', - 'fieldtype': u'Currency', - 'label': u'Net Total', - 'oldfieldname': u'net_total', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1, - 'reqd': 1, - 'width': u'150px' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'net_total_import', - 'fieldtype': u'Currency', - 'label': u'Net Total (Import)', - 'oldfieldname': u'net_total_import', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'recalculate_values', - 'fieldtype': u'Button', - 'label': u'Re-Calculate Values', - 'oldfieldtype': u'Button', - 'permlevel': 0, - 'trigger': u'Client' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'get_current_stock', - 'fieldtype': u'Button', - 'label': u'Get Current Stock', - 'oldfieldtype': u'Button', - 'options': u'get_current_stock', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break2', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u"Supplier's currency", - 'doctype': u'DocField', - 'fieldname': u'currency', - 'fieldtype': u'Select', - 'label': u'Currency', - 'oldfieldname': u'currency', - 'oldfieldtype': u'Select', - 'options': u'link:Currency', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'default': u'1.00', - 'description': u"Rate at which supplier's currency is converted to company's base currency", - 'doctype': u'DocField', - 'fieldname': u'conversion_rate', - 'fieldtype': u'Float', - 'label': u'Conversion Rate', - 'oldfieldname': u'conversion_rate', - 'oldfieldtype': u'Currency', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'You can make a purchase receipt from multiple purchase orders. Select purchase orders one by one and click on the button below.', - 'doctype': u'DocField', - 'fieldname': u'purchase_order_no', - 'fieldtype': u'Link', - 'label': u'Purchase Order', - 'no_copy': 1, - 'oldfieldname': u'purchase_order_no', - 'oldfieldtype': u'Link', - 'options': u'Purchase Order', - 'permlevel': 0, - 'print_hide': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'pull_purchase_order_details', - 'fieldtype': u'Button', - 'label': u'Pull Purchase Order Details', - 'oldfieldtype': u'Button', - 'options': u'get_po_details', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Add / Edit Taxes and Charges', - 'doctype': u'DocField', - 'fieldname': u'taxes', - 'fieldtype': u'Section Break', - 'label': u'Taxes', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'If you have created a standard template in Purchase Taxes and Charges Master, select one and click on the button below.', - 'doctype': u'DocField', - 'fieldname': u'purchase_other_charges', - 'fieldtype': u'Link', - 'label': u'Purchase Taxes and Charges', - 'oldfieldname': u'purchase_other_charges', - 'oldfieldtype': u'Link', - 'options': u'Purchase Taxes and Charges Master', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'get_tax_detail', - 'fieldtype': u'Button', - 'label': u'Get Tax Detail', - 'oldfieldtype': u'Button', - 'options': u'get_purchase_tax_details', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'purchase_tax_details', - 'fieldtype': u'Table', - 'label': u'Purchase Taxes and Charges', - 'oldfieldname': u'purchase_tax_details', - 'oldfieldtype': u'Table', - 'options': u'Purchase Taxes and Charges', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'calculate_tax', - 'fieldtype': u'Button', - 'label': u'Calculate Tax', - 'oldfieldtype': u'Button', - 'permlevel': 0, - 'print_hide': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'total_tax', - 'fieldtype': u'Currency', - 'label': u'Total Tax', - 'oldfieldname': u'total_tax', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'tax_calculation', - 'fieldtype': u'HTML', - 'label': u'Tax Calculation', - 'oldfieldtype': u'HTML', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Detailed Breakup of the totals', - 'doctype': u'DocField', - 'fieldname': u'totals', - 'fieldtype': u'Section Break', - 'label': u'Totals', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'grand_total', - 'fieldtype': u'Currency', - 'label': u'Grand Total', - 'oldfieldname': u'grand_total', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'rounded_total', - 'fieldtype': u'Currency', - 'label': u'Rounded Total', - 'oldfieldname': u'rounded_total', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'In Words will be visible once you save the Purchase Receipt.', - 'doctype': u'DocField', - 'fieldname': u'in_words', - 'fieldtype': u'Data', - 'label': u'In Words', - 'oldfieldname': u'in_words', - 'oldfieldtype': u'Data', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'other_charges_added', - 'fieldtype': u'Currency', - 'label': u'Taxes and Charges Added', - 'oldfieldname': u'other_charges_added', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'other_charges_deducted', - 'fieldtype': u'Currency', - 'label': u'Taxes and Charges Deducted', - 'oldfieldname': u'other_charges_deducted', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break3', - 'fieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'grand_total_import', - 'fieldtype': u'Currency', - 'label': u'Grand Total (Import)', - 'oldfieldname': u'grand_total_import', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'in_words_import', - 'fieldtype': u'Data', - 'label': u'In Words (Import)', - 'oldfieldname': u'in_words_import', - 'oldfieldtype': u'Data', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'other_charges_added_import', - 'fieldtype': u'Currency', - 'label': u'Taxes and Charges Added (Import)', - 'oldfieldname': u'other_charges_added_import', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'other_charges_deducted_import', - 'fieldtype': u'Currency', - 'label': u'Taxes and Charges Deducted (Import)', - 'oldfieldname': u'other_charges_deducted_import', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Add Terms and Conditions for the Purchase Receipt. You can also prepare a Terms and Conditions Master and use the Template.', - 'doctype': u'DocField', - 'fieldname': u'terms_section_break', - 'fieldtype': u'Section Break', - 'label': u'Terms and Conditions', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'tc_name', - 'fieldtype': u'Link', - 'label': u'Select Terms and Conditions', - 'oldfieldname': u'tc_name', - 'oldfieldtype': u'Link', - 'options': u'Terms and Conditions', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'get_terms', - 'fieldtype': u'Button', - 'label': u'Get Terms and Conditions', - 'oldfieldtype': u'Button', - 'options': u'get_tc_details', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'terms_html', - 'fieldtype': u'HTML', - 'label': u'Terms and Conditions HTML', - 'oldfieldtype': u'HTML', - 'options': u'You can add Terms and Notes that will be printed in the Transaction', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'terms', - 'fieldtype': u'Text Editor', - 'label': u'Terms and Conditions1', - 'oldfieldname': u'terms', - 'oldfieldtype': u'Text Editor', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'contact_section', - 'fieldtype': u'Section Break', - 'label': u'Contact Info', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'supplier_address', - 'fieldtype': u'Link', - 'label': u'Supplier Address', - 'options': u'Address', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'contact_person', - 'fieldtype': u'Link', - 'label': u'Contact Person', - 'options': u'Contact', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Filing in Additional Information about the Purchase Receipt will help you analyze your data better.', - 'doctype': u'DocField', - 'fieldname': u'more_info', - 'fieldtype': u'Section Break', - 'label': u'More Info', - 'oldfieldtype': u'Section Break', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'status', - 'fieldtype': u'Select', - 'in_filter': 1, - 'label': u'Status', - 'no_copy': 1, - 'oldfieldname': u'status', - 'oldfieldtype': u'Select', - 'options': u'\nDraft\nSubmitted\nCancelled', - 'permlevel': 1, - 'print_hide': 1, - 'reqd': 1, - 'search_index': 1, - 'width': u'150px' - }, - - # DocField - { - 'colour': u'White:FFF', - 'depends_on': u'eval:!doc.__islocal', - 'description': u'% of materials billed against this Purchase Receipt', - 'doctype': u'DocField', - 'fieldname': u'per_billed', - 'fieldtype': u'Currency', - 'label': u'% Billed', - 'no_copy': 1, - 'oldfieldname': u'per_billed', - 'oldfieldtype': u'Currency', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'colour': u'White:FFF', - 'default': u'No', - 'description': u'Select "Yes" for sub - contracting items', - 'doctype': u'DocField', - 'fieldname': u'is_subcontracted', - 'fieldtype': u'Select', - 'label': u'Is Subcontracted', - 'oldfieldname': u'is_subcontracted', - 'oldfieldtype': u'Select', - 'options': u'\nYes\nNo', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'amended_from', - 'fieldtype': u'Data', - 'hidden': 1, - 'label': u'Amended From', - 'no_copy': 1, - 'oldfieldname': u'amended_from', - 'oldfieldtype': u'Data', - 'permlevel': 1, - 'print_hide': 1, - 'width': u'150px' - }, - - # DocField - { - 'description': u'The date at which current entry is corrected in the system.', - 'doctype': u'DocField', - 'fieldname': u'amendment_date', - 'fieldtype': u'Date', - 'hidden': 1, - 'label': u'Amendment Date', - 'no_copy': 1, - 'oldfieldname': u'amendment_date', - 'oldfieldtype': u'Date', - 'permlevel': 0, - 'print_hide': 1, - 'width': u'100px' - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'range', - 'fieldtype': u'Data', - 'hidden': 1, - 'label': u'Range', - 'oldfieldname': u'range', - 'oldfieldtype': u'Data', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'bill_no', - 'fieldtype': u'Data', - 'hidden': 1, - 'label': u'Bill No', - 'oldfieldname': u'bill_no', - 'oldfieldtype': u'Data', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'bill_date', - 'fieldtype': u'Date', - 'hidden': 1, - 'label': u'Bill Date', - 'oldfieldname': u'bill_date', - 'oldfieldtype': u'Date', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'allow_on_submit': 1, - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'select_print_heading', - 'fieldtype': u'Link', - 'label': u'Select Print Heading', - 'no_copy': 1, - 'oldfieldname': u'select_print_heading', - 'oldfieldtype': u'Link', - 'options': u'Print Heading', - 'permlevel': 0, - 'print_hide': 1, - 'report_hide': 1, - 'trigger': u'Client' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Select the relevant company name if you have multiple companies', - 'doctype': u'DocField', - 'fieldname': u'company', - 'fieldtype': u'Link', - 'hidden': 0, - 'in_filter': 1, - 'label': u'Company', - 'no_copy': 0, - 'oldfieldname': u'company', - 'oldfieldtype': u'Link', - 'options': u'Company', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1, - 'search_index': 1, - 'width': u'150px' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'fiscal_year', - 'fieldtype': u'Select', - 'in_filter': 1, - 'label': u'Fiscal Year', - 'oldfieldname': u'fiscal_year', - 'oldfieldtype': u'Select', - 'options': u'link:Fiscal Year', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 1, - 'search_index': 1, - 'width': u'150px' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break4', - 'fieldtype': u'Column Break', - 'oldfieldtype': u'Column Break', - 'permlevel': 0, - 'print_hide': 1, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'other_details', - 'fieldtype': u'HTML', - 'hidden': 1, - 'label': u'Other Details', - 'oldfieldtype': u'HTML', - 'options': u"
Other Details
", - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 0, - 'width': u'30%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Warehouse where you are maintaining stock of rejected items', - 'doctype': u'DocField', - 'fieldname': u'rejected_warehouse', - 'fieldtype': u'Link', - 'label': u'Rejected Warehouse', - 'no_copy': 1, - 'oldfieldname': u'rejected_warehouse', - 'oldfieldtype': u'Link', - 'options': u'Warehouse', - 'permlevel': 0, - 'print_hide': 1, - 'reqd': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Supplier warehouse where you have issued raw materials for sub - contracting', - 'doctype': u'DocField', - 'fieldname': u'supplier_warehouse', - 'fieldtype': u'Link', - 'label': u'Supplier Warehouse', - 'no_copy': 1, - 'oldfieldname': u'supplier_warehouse', - 'oldfieldtype': u'Link', - 'options': u'Warehouse', - 'permlevel': 0, - 'print_hide': 1, - 'width': u'50px' - }, - - # DocField - { - 'colour': u'White:FFF', - 'depends_on': u'eval:!doc.__islocal', - 'doctype': u'DocField', - 'fieldname': u'cancel_reason', - 'fieldtype': u'Data', - 'hidden': 0, - 'label': u'Cancel Reason', - 'no_copy': 1, - 'oldfieldname': u'cancel_reason', - 'oldfieldtype': u'Data', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'instructions', - 'fieldtype': u'Small Text', - 'label': u'Instructions', - 'oldfieldname': u'instructions', - 'oldfieldtype': u'Text', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'remarks', - 'fieldtype': u'Small Text', - 'label': u'Remarks', - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'transporter_info', - 'fieldtype': u'Section Break', - 'label': u'Transporter Info', - 'permlevel': 0 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'transporter_name', - 'fieldtype': u'Data', - 'label': u'Transporter Name', - 'oldfieldname': u'transporter_name', - 'oldfieldtype': u'Data', - 'permlevel': 0 - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Transporter lorry number', - 'doctype': u'DocField', - 'fieldname': u'lr_no', - 'fieldtype': u'Data', - 'label': u'LR No', - 'no_copy': 1, - 'oldfieldname': u'lr_no', - 'oldfieldtype': u'Data', - 'permlevel': 0, - 'print_hide': 0, - 'width': u'100px' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Date on which lorry started from supplier warehouse', - 'doctype': u'DocField', - 'fieldname': u'lr_date', - 'fieldtype': u'Date', - 'label': u'LR Date', - 'no_copy': 1, - 'oldfieldname': u'lr_date', - 'oldfieldtype': u'Date', - 'permlevel': 0, - 'print_hide': 0, - 'width': u'100px' - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'column_break5', - 'fieldtype': u'Column Break', - 'permlevel': 0, - 'width': u'50%' - }, - - # DocField - { - 'colour': u'White:FFF', - 'description': u'Following table will show values if items are sub - contracted. These values will be fetched from the master of "Bill of Materials" of sub - contracted items.', - 'doctype': u'DocField', - 'fieldname': u'raw_material_details', - 'fieldtype': u'Section Break', - 'label': u'Raw Material Details', - 'oldfieldtype': u'Section Break', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'pr_raw_material_details', - 'fieldtype': u'Table', - 'label': u'Purchase Receipt Item Supplieds', - 'no_copy': 1, - 'oldfieldname': u'pr_raw_material_details', - 'oldfieldtype': u'Table', - 'options': u'Purchase Receipt Item Supplied', - 'permlevel': 1, - 'print_hide': 1 - }, - - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'file_list', - 'fieldtype': u'Text', - 'hidden': 1, - 'label': u'File List', - 'no_copy': 1, - 'permlevel': 0, - 'print_hide': 1 - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - 'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'Material Manager', - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'amend': 1, - 'cancel': 1, - 'create': 1, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Material Manager', - 'submit': 1, - 'write': 1 - }, - - # DocPerm - { - 'amend': 0, - 'cancel': 0, - 'create': 0, - 'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'Material User', - 'submit': 0, - 'write': 0 - }, - - # DocPerm - { - 'amend': 1, - 'cancel': 1, - 'create': 1, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Material User', - 'submit': 1, - 'write': 1 - }, - - # DocPerm - { - 'amend': 1, - 'cancel': 1, - 'create': 1, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Purchase User', - 'submit': 1, - 'write': 1 - }, - - # DocPerm - { - 'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'Purchase User' - }, - - # DocPerm - { - 'doctype': u'DocPerm', - 'match': u'supplier', - 'permlevel': 0, - 'role': u'Supplier' - }, - - # DocPerm - { - 'doctype': u'DocPerm', - 'permlevel': 2, - 'role': u'All', - 'write': 1 - } + { + "owner": "Administrator", + "docstatus": 0, + "creation": "2012-07-17 13:24:57", + "modified_by": "Administrator", + "modified": "2012-07-16 16:26:24" + }, + { + "is_submittable": 1, + "allow_attach": 1, + "default_print_format": "Standard", + "search_fields": "status, posting_date, supplier", + "module": "Stock", + "doctype": "DocType", + "read_only_onload": 1, + "document_type": "Transaction", + "name": "__common__" + }, + { + "name": "__common__", + "parent": "Purchase Receipt", + "doctype": "DocField", + "parenttype": "DocType", + "parentfield": "fields" + }, + { + "name": "__common__", + "parent": "Purchase Receipt", + "read": 1, + "doctype": "DocPerm", + "parenttype": "DocType", + "parentfield": "permissions" + }, + { + "name": "Purchase Receipt", + "doctype": "DocType" + }, + { + "oldfieldtype": "Column Break", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break0", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "To manage multiple series please go to Setup > Manage Series", + "no_copy": 1, + "oldfieldtype": "Select", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Series", + "oldfieldname": "naming_series", + "permlevel": 0, + "fieldname": "naming_series", + "fieldtype": "Select", + "reqd": 1, + "options": "\nGRN" + }, + { + "print_hide": 1, + "permlevel": 0, + "oldfieldtype": "Link", + "colour": "White:FFF", + "allow_on_submit": 0, + "doctype": "DocField", + "label": "Supplier", + "oldfieldname": "supplier", + "width": "150px", + "trigger": "Client", + "fieldname": "supplier", + "fieldtype": "Link", + "search_index": 1, + "reqd": 1, + "options": "Supplier", + "in_filter": 1 + }, + { + "doctype": "DocField", + "label": "Name", + "fieldname": "supplier_name", + "fieldtype": "Data", + "hidden": 1, + "permlevel": 1 + }, + { + "doctype": "DocField", + "label": "Address", + "fieldname": "address_display", + "fieldtype": "Small Text", + "hidden": 1, + "permlevel": 1 + }, + { + "doctype": "DocField", + "label": "Contact", + "fieldname": "contact_display", + "fieldtype": "Small Text", + "hidden": 1, + "permlevel": 1 + }, + { + "doctype": "DocField", + "label": "Mobile No", + "fieldname": "contact_mobile", + "fieldtype": "Text", + "hidden": 1, + "permlevel": 1 + }, + { + "print_hide": 1, + "doctype": "DocField", + "label": "Contact Email", + "fieldname": "contact_email", + "fieldtype": "Text", + "hidden": 1, + "permlevel": 1 + }, + { + "oldfieldtype": "Column Break", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break1", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "The date at which current entry will get or has actually executed.", + "no_copy": 1, + "oldfieldtype": "Date", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Posting Date", + "oldfieldname": "posting_date", + "width": "100px", + "fieldname": "posting_date", + "fieldtype": "Date", + "search_index": 1, + "reqd": 1, + "in_filter": 1, + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "Time at which materials were received", + "no_copy": 1, + "oldfieldtype": "Time", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Posting Time", + "oldfieldname": "posting_time", + "width": "100px", + "fieldname": "posting_time", + "fieldtype": "Time", + "search_index": 0, + "reqd": 1, + "in_filter": 0, + "permlevel": 0 + }, + { + "print_hide": 0, + "no_copy": 1, + "oldfieldtype": "Data", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Challan No", + "oldfieldname": "challan_no", + "width": "100px", + "fieldname": "challan_no", + "fieldtype": "Data", + "reqd": 0, + "hidden": 1, + "permlevel": 0 + }, + { + "print_hide": 0, + "no_copy": 1, + "oldfieldtype": "Date", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Challan Date", + "oldfieldname": "challan_date", + "width": "100px", + "fieldname": "challan_date", + "fieldtype": "Date", + "reqd": 0, + "hidden": 1, + "permlevel": 0 + }, + { + "oldfieldtype": "Section Break", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Items", + "fieldname": "items", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 0, + "allow_on_submit": 1, + "oldfieldtype": "Table", + "doctype": "DocField", + "label": "Purchase Receipt Items", + "oldfieldname": "purchase_receipt_details", + "options": "Purchase Receipt Item", + "fieldname": "purchase_receipt_details", + "fieldtype": "Table", + "reqd": 0, + "permlevel": 0 + }, + { + "oldfieldtype": "Section Break", + "colour": "White:FFF", + "doctype": "DocField", + "options": "Simple", + "fieldname": "section_break0", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Net Total", + "oldfieldname": "net_total", + "width": "150px", + "fieldname": "net_total", + "fieldtype": "Currency", + "reqd": 1, + "permlevel": 1 + }, + { + "print_hide": 1, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Net Total (Import)", + "oldfieldname": "net_total_import", + "fieldname": "net_total_import", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "oldfieldtype": "Button", + "doctype": "DocField", + "label": "Re-Calculate Values", + "trigger": "Client", + "fieldname": "recalculate_values", + "fieldtype": "Button", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Button", + "doctype": "DocField", + "label": "Get Current Stock", + "options": "get_current_stock", + "fieldname": "get_current_stock", + "fieldtype": "Button", + "permlevel": 0 + }, + { + "oldfieldtype": "Column Break", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break2", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "Supplier's currency", + "oldfieldtype": "Select", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Currency", + "oldfieldname": "currency", + "permlevel": 0, + "fieldname": "currency", + "fieldtype": "Select", + "reqd": 1, + "options": "link:Currency" + }, + { + "print_hide": 1, + "description": "Rate at which supplier's currency is converted to company's base currency", + "default": "1.00", + "oldfieldtype": "Currency", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Conversion Rate", + "oldfieldname": "conversion_rate", + "trigger": "Client", + "fieldname": "conversion_rate", + "fieldtype": "Float", + "reqd": 1, + "permlevel": 0 + }, + { + "print_hide": 0, + "description": "You can make a purchase receipt from multiple purchase orders. Select purchase orders one by one and click on the button below.", + "no_copy": 1, + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Purchase Order", + "oldfieldname": "purchase_order_no", + "permlevel": 0, + "fieldname": "purchase_order_no", + "fieldtype": "Link", + "options": "Purchase Order" + }, + { + "print_hide": 1, + "oldfieldtype": "Button", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Pull Purchase Order Details", + "options": "get_po_details", + "fieldname": "pull_purchase_order_details", + "fieldtype": "Button", + "permlevel": 0 + }, + { + "description": "Add / Edit Taxes and Charges", + "oldfieldtype": "Section Break", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Taxes", + "fieldname": "taxes", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "If you have created a standard template in Purchase Taxes and Charges Master, select one and click on the button below.", + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Purchase Taxes and Charges", + "oldfieldname": "purchase_other_charges", + "options": "Purchase Taxes and Charges Master", + "fieldname": "purchase_other_charges", + "fieldtype": "Link", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Button", + "doctype": "DocField", + "label": "Get Tax Detail", + "options": "get_purchase_tax_details", + "fieldname": "get_tax_detail", + "fieldtype": "Button", + "permlevel": 0 + }, + { + "oldfieldtype": "Table", + "doctype": "DocField", + "label": "Purchase Taxes and Charges", + "oldfieldname": "purchase_tax_details", + "options": "Purchase Taxes and Charges", + "fieldname": "purchase_tax_details", + "fieldtype": "Table", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Button", + "doctype": "DocField", + "label": "Calculate Tax", + "trigger": "Client", + "fieldname": "calculate_tax", + "fieldtype": "Button", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Total Tax", + "oldfieldname": "total_tax", + "fieldname": "total_tax", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "print_hide": 1, + "oldfieldtype": "HTML", + "doctype": "DocField", + "label": "Tax Calculation", + "fieldname": "tax_calculation", + "fieldtype": "HTML", + "permlevel": 0 + }, + { + "description": "Detailed Breakup of the totals", + "oldfieldtype": "Section Break", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Totals", + "fieldname": "totals", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Grand Total", + "oldfieldname": "grand_total", + "fieldname": "grand_total", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "print_hide": 1, + "oldfieldtype": "Currency", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Rounded Total", + "oldfieldname": "rounded_total", + "fieldname": "rounded_total", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "print_hide": 1, + "description": "In Words will be visible once you save the Purchase Receipt.", + "oldfieldtype": "Data", + "colour": "White:FFF", + "doctype": "DocField", + "label": "In Words", + "oldfieldname": "in_words", + "fieldname": "in_words", + "fieldtype": "Data", + "permlevel": 1 + }, + { + "print_hide": 1, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Taxes and Charges Added", + "oldfieldname": "other_charges_added", + "fieldname": "other_charges_added", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "print_hide": 1, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Taxes and Charges Deducted", + "oldfieldname": "other_charges_deducted", + "fieldname": "other_charges_deducted", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break3", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Grand Total (Import)", + "oldfieldname": "grand_total_import", + "fieldname": "grand_total_import", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "print_hide": 1, + "oldfieldtype": "Data", + "colour": "White:FFF", + "doctype": "DocField", + "label": "In Words (Import)", + "oldfieldname": "in_words_import", + "fieldname": "in_words_import", + "fieldtype": "Data", + "permlevel": 1 + }, + { + "print_hide": 1, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Taxes and Charges Added (Import)", + "oldfieldname": "other_charges_added_import", + "fieldname": "other_charges_added_import", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "print_hide": 1, + "oldfieldtype": "Currency", + "doctype": "DocField", + "label": "Taxes and Charges Deducted (Import)", + "oldfieldname": "other_charges_deducted_import", + "fieldname": "other_charges_deducted_import", + "fieldtype": "Currency", + "permlevel": 1 + }, + { + "description": "Add Terms and Conditions for the Purchase Receipt. You can also prepare a Terms and Conditions Master and use the Template.", + "oldfieldtype": "Section Break", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Terms and Conditions", + "fieldname": "terms_section_break", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Link", + "doctype": "DocField", + "label": "Select Terms and Conditions", + "oldfieldname": "tc_name", + "options": "Terms and Conditions", + "fieldname": "tc_name", + "fieldtype": "Link", + "permlevel": 0 + }, + { + "oldfieldtype": "Button", + "doctype": "DocField", + "label": "Get Terms and Conditions", + "options": "get_tc_details", + "fieldname": "get_terms", + "fieldtype": "Button", + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "HTML", + "doctype": "DocField", + "label": "Terms and Conditions HTML", + "options": "You can add Terms and Notes that will be printed in the Transaction", + "fieldname": "terms_html", + "fieldtype": "HTML", + "permlevel": 0 + }, + { + "oldfieldtype": "Text Editor", + "doctype": "DocField", + "label": "Terms and Conditions1", + "oldfieldname": "terms", + "fieldname": "terms", + "fieldtype": "Text Editor", + "permlevel": 0 + }, + { + "doctype": "DocField", + "label": "Contact Info", + "fieldname": "contact_section", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "doctype": "DocField", + "label": "Supplier Address", + "options": "Address", + "fieldname": "supplier_address", + "fieldtype": "Link", + "permlevel": 0 + }, + { + "print_hide": 1, + "doctype": "DocField", + "label": "Contact Person", + "options": "Contact", + "fieldname": "contact_person", + "fieldtype": "Link", + "permlevel": 0 + }, + { + "description": "Filing in Additional Information about the Purchase Receipt will help you analyze your data better.", + "oldfieldtype": "Section Break", + "colour": "White:FFF", + "doctype": "DocField", + "label": "More Info", + "fieldname": "more_info", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "permlevel": 1, + "no_copy": 1, + "oldfieldtype": "Select", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Status", + "oldfieldname": "status", + "width": "150px", + "fieldname": "status", + "fieldtype": "Select", + "search_index": 1, + "reqd": 1, + "options": "\nDraft\nSubmitted\nCancelled", + "in_filter": 1 + }, + { + "print_hide": 1, + "description": "% of materials billed against this Purchase Receipt", + "no_copy": 1, + "oldfieldtype": "Currency", + "colour": "White:FFF", + "doctype": "DocField", + "label": "% Billed", + "oldfieldname": "per_billed", + "fieldname": "per_billed", + "fieldtype": "Currency", + "depends_on": "eval:!doc.__islocal", + "permlevel": 1 + }, + { + "print_hide": 1, + "description": "Select \"Yes\" for sub - contracting items", + "default": "No", + "oldfieldtype": "Select", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Is Subcontracted", + "oldfieldname": "is_subcontracted", + "permlevel": 0, + "fieldname": "is_subcontracted", + "fieldtype": "Select", + "options": "\nYes\nNo" + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "Amended From", + "oldfieldname": "amended_from", + "width": "150px", + "fieldname": "amended_from", + "fieldtype": "Data", + "hidden": 1, + "permlevel": 1 + }, + { + "print_hide": 1, + "description": "The date at which current entry is corrected in the system.", + "no_copy": 1, + "oldfieldtype": "Date", + "doctype": "DocField", + "label": "Amendment Date", + "oldfieldname": "amendment_date", + "width": "100px", + "fieldname": "amendment_date", + "fieldtype": "Date", + "hidden": 1, + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Data", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Range", + "oldfieldname": "range", + "fieldname": "range", + "fieldtype": "Data", + "hidden": 1, + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "Bill No", + "oldfieldname": "bill_no", + "fieldname": "bill_no", + "fieldtype": "Data", + "hidden": 1, + "permlevel": 0 + }, + { + "print_hide": 1, + "oldfieldtype": "Date", + "doctype": "DocField", + "label": "Bill Date", + "oldfieldname": "bill_date", + "fieldname": "bill_date", + "fieldtype": "Date", + "hidden": 1, + "permlevel": 0 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Link", + "colour": "White:FFF", + "allow_on_submit": 1, + "doctype": "DocField", + "label": "Select Print Heading", + "oldfieldname": "select_print_heading", + "permlevel": 0, + "trigger": "Client", + "fieldname": "select_print_heading", + "fieldtype": "Link", + "options": "Print Heading", + "report_hide": 1 + }, + { + "print_hide": 1, + "permlevel": 0, + "description": "Select the relevant company name if you have multiple companies", + "no_copy": 0, + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Company", + "oldfieldname": "company", + "width": "150px", + "fieldname": "company", + "fieldtype": "Link", + "search_index": 1, + "reqd": 1, + "hidden": 0, + "in_filter": 1, + "options": "Company" + }, + { + "print_hide": 1, + "permlevel": 0, + "oldfieldtype": "Select", + "doctype": "DocField", + "label": "Fiscal Year", + "oldfieldname": "fiscal_year", + "width": "150px", + "fieldname": "fiscal_year", + "fieldtype": "Select", + "search_index": 1, + "reqd": 1, + "options": "link:Fiscal Year", + "in_filter": 1 + }, + { + "print_hide": 1, + "oldfieldtype": "Column Break", + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break4", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "permlevel": 0, + "oldfieldtype": "HTML", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Other Details", + "width": "30%", + "fieldname": "other_details", + "fieldtype": "HTML", + "reqd": 0, + "hidden": 1, + "options": "
Other Details
" + }, + { + "print_hide": 1, + "description": "Warehouse where you are maintaining stock of rejected items", + "no_copy": 1, + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Rejected Warehouse", + "oldfieldname": "rejected_warehouse", + "permlevel": 0, + "fieldname": "rejected_warehouse", + "fieldtype": "Link", + "reqd": 0, + "options": "Warehouse" + }, + { + "print_hide": 1, + "permlevel": 0, + "description": "Supplier warehouse where you have issued raw materials for sub - contracting", + "no_copy": 1, + "oldfieldtype": "Link", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Supplier Warehouse", + "oldfieldname": "supplier_warehouse", + "width": "50px", + "fieldname": "supplier_warehouse", + "fieldtype": "Link", + "options": "Warehouse" + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Data", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Cancel Reason", + "oldfieldname": "cancel_reason", + "fieldname": "cancel_reason", + "fieldtype": "Data", + "depends_on": "eval:!doc.__islocal", + "hidden": 0, + "permlevel": 1 + }, + { + "oldfieldtype": "Text", + "doctype": "DocField", + "label": "Instructions", + "oldfieldname": "instructions", + "fieldname": "instructions", + "fieldtype": "Small Text", + "permlevel": 0 + }, + { + "print_hide": 1, + "doctype": "DocField", + "label": "Remarks", + "fieldname": "remarks", + "fieldtype": "Small Text", + "permlevel": 0 + }, + { + "doctype": "DocField", + "label": "Transporter Info", + "fieldname": "transporter_info", + "fieldtype": "Section Break", + "permlevel": 0 + }, + { + "oldfieldtype": "Data", + "doctype": "DocField", + "label": "Transporter Name", + "oldfieldname": "transporter_name", + "fieldname": "transporter_name", + "fieldtype": "Data", + "permlevel": 0 + }, + { + "print_hide": 0, + "description": "Transporter lorry number", + "no_copy": 1, + "oldfieldtype": "Data", + "colour": "White:FFF", + "doctype": "DocField", + "label": "LR No", + "oldfieldname": "lr_no", + "width": "100px", + "fieldname": "lr_no", + "fieldtype": "Data", + "permlevel": 0 + }, + { + "print_hide": 0, + "description": "Date on which lorry started from supplier warehouse", + "no_copy": 1, + "oldfieldtype": "Date", + "colour": "White:FFF", + "doctype": "DocField", + "label": "LR Date", + "oldfieldname": "lr_date", + "width": "100px", + "fieldname": "lr_date", + "fieldtype": "Date", + "permlevel": 0 + }, + { + "doctype": "DocField", + "width": "50%", + "fieldname": "column_break5", + "fieldtype": "Column Break", + "permlevel": 0 + }, + { + "print_hide": 1, + "description": "Following table will show values if items are sub - contracted. These values will be fetched from the master of \"Bill of Materials\" of sub - contracted items.", + "oldfieldtype": "Section Break", + "colour": "White:FFF", + "doctype": "DocField", + "label": "Raw Material Details", + "fieldname": "raw_material_details", + "fieldtype": "Section Break", + "permlevel": 1 + }, + { + "print_hide": 1, + "no_copy": 1, + "oldfieldtype": "Table", + "doctype": "DocField", + "label": "Purchase Receipt Item Supplieds", + "oldfieldname": "pr_raw_material_details", + "options": "Purchase Receipt Item Supplied", + "fieldname": "pr_raw_material_details", + "fieldtype": "Table", + "permlevel": 1 + }, + { + "print_hide": 1, + "no_copy": 1, + "doctype": "DocField", + "label": "File List", + "fieldname": "file_list", + "fieldtype": "Text", + "hidden": 1, + "permlevel": 0 + }, + { + "amend": 1, + "create": 1, + "doctype": "DocPerm", + "submit": 1, + "write": 1, + "role": "Purchase User", + "cancel": 1, + "permlevel": 0, + "match": "" + }, + { + "doctype": "DocPerm", + "role": "Purchase User", + "permlevel": 1 + }, + { + "doctype": "DocPerm", + "role": "Supplier", + "match": "supplier", + "permlevel": 0 + }, + { + "write": 1, + "doctype": "DocPerm", + "role": "All", + "permlevel": 2 + }, + { + "amend": 0, + "create": 0, + "doctype": "DocPerm", + "submit": 0, + "write": 0, + "role": "Material Manager", + "cancel": 0, + "permlevel": 1 + }, + { + "amend": 1, + "create": 1, + "doctype": "DocPerm", + "submit": 1, + "write": 1, + "role": "Material Manager", + "cancel": 1, + "permlevel": 0 + }, + { + "amend": 0, + "create": 0, + "doctype": "DocPerm", + "submit": 0, + "write": 0, + "role": "Material User", + "cancel": 0, + "permlevel": 1 + }, + { + "amend": 1, + "create": 1, + "doctype": "DocPerm", + "submit": 1, + "write": 1, + "role": "Material User", + "cancel": 1, + "permlevel": 0 + } ] \ No newline at end of file diff --git a/stock/page/stock_analytics/stock_analytics.js b/stock/page/stock_analytics/stock_analytics.js index f0d2a2b621..8e98de8bec 100644 --- a/stock/page/stock_analytics/stock_analytics.js +++ b/stock/page/stock_analytics/stock_analytics.js @@ -103,7 +103,7 @@ erpnext.StockAnalytics = erpnext.StockGridReport.extend({ }, init_filter_values: function() { this._super(); - this.filter_inputs.range.val('Weekly'); + this.filter_inputs.range.val('Monthly'); }, prepare_data: function() { var me = this; diff --git a/support/doctype/customer_issue/customer_issue.txt b/support/doctype/customer_issue/customer_issue.txt index 351d641416..675f75e4ad 100644 --- a/support/doctype/customer_issue/customer_issue.txt +++ b/support/doctype/customer_issue/customer_issue.txt @@ -2,7 +2,7 @@ { "owner": "harshada@webnotestech.com", "docstatus": 0, - "creation": "2012-11-24 17:21:45", + "creation": "2012-11-28 11:26:23", "modified_by": "Administrator", "modified": "2012-11-26 11:19:39" }, @@ -34,14 +34,6 @@ "name": "Customer Issue", "doctype": "DocType" }, - { - "oldfieldtype": "Section Break", - "doctype": "DocField", - "label": "Basic Info", - "fieldname": "basic_info", - "fieldtype": "Section Break", - "permlevel": 0 - }, { "no_copy": 1, "oldfieldtype": "Select", diff --git a/support/doctype/newsletter/newsletter.txt b/support/doctype/newsletter/newsletter.txt index 3f48bff85d..738084f9df 100644 --- a/support/doctype/newsletter/newsletter.txt +++ b/support/doctype/newsletter/newsletter.txt @@ -2,7 +2,7 @@ { "owner": "Administrator", "docstatus": 0, - "creation": "2012-08-24 14:48:05", + "creation": "2012-11-28 11:26:23", "modified_by": "Administrator", "modified": "2012-11-26 11:18:43" }, @@ -33,13 +33,6 @@ "name": "Newsletter", "doctype": "DocType" }, - { - "doctype": "DocField", - "label": "Basic Info", - "fieldname": "basic_info", - "fieldtype": "Section Break", - "permlevel": 0 - }, { "default": "NL-", "colour": "White:FFF", diff --git a/utilities/page/question_view/question_view.js b/utilities/page/question_view/question_view.js index 3d16fa86bd..4b63c99e9e 100644 --- a/utilities/page/question_view/question_view.js +++ b/utilities/page/question_view/question_view.js @@ -94,7 +94,8 @@ KBQuestionView = function(w, qid, qtext) { var v = $(me.input).val(); if(!v) { msgprint('Write something!'); return; } me.btn.set_working(); - $c_page('utilities', 'question_view', 'add_answer', {qid: qid, answer:v}, + $c_page('utilities', 'question_view', 'add_answer', + JSON.stringify({qid: qid, "answer":v}), function(r, rt) { me.btn.done_working(); me.ans_list.list.run(); diff --git a/utilities/page/question_view/question_view.py b/utilities/page/question_view/question_view.py index 78293854a6..e79a808f13 100644 --- a/utilities/page/question_view/question_view.py +++ b/utilities/page/question_view/question_view.py @@ -34,15 +34,14 @@ def get_question(arg): return cstr(webnotes.conn.sql("select question from tabQuestion where name=%s", arg)[0][0]) @webnotes.whitelist() -def add_answer(args): - args = load_json(args) +def add_answer(arg): + arg = load_json(arg) from webnotes.model.doc import Document - a = Document('Answer') - a.answer = args['answer'] - a.question = args['qid'] + a.answer = arg['answer'] + a.question = arg['qid'] a.points = 1 a.save(1) - webnotes.conn.set_value('Question', args['qid'], 'modified', now()) \ No newline at end of file + webnotes.conn.set_value('Question', arg['qid'], 'modified', now()) \ No newline at end of file