Marica
3 years ago
committed by
GitHub
42 changed files with 1056 additions and 720 deletions
@ -1,184 +1,70 @@ |
|||
{ |
|||
"allow_copy": 0, |
|||
"allow_guest_to_view": 0, |
|||
"allow_import": 0, |
|||
"allow_rename": 0, |
|||
"autoname": "field:criteria_name", |
|||
"beta": 0, |
|||
"creation": "2017-05-29 01:32:43.064891", |
|||
"custom": 0, |
|||
"docstatus": 0, |
|||
"doctype": "DocType", |
|||
"document_type": "", |
|||
"editable_grid": 1, |
|||
"engine": "InnoDB", |
|||
"actions": [], |
|||
"allow_rename": 1, |
|||
"autoname": "field:criteria_name", |
|||
"creation": "2017-05-29 01:32:43.064891", |
|||
"doctype": "DocType", |
|||
"editable_grid": 1, |
|||
"engine": "InnoDB", |
|||
"field_order": [ |
|||
"criteria_name", |
|||
"max_score", |
|||
"formula", |
|||
"weight" |
|||
], |
|||
"fields": [ |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "criteria_name", |
|||
"fieldtype": "Data", |
|||
"hidden": 0, |
|||
"ignore_user_permissions": 0, |
|||
"ignore_xss_filter": 0, |
|||
"in_filter": 0, |
|||
"in_global_search": 0, |
|||
"in_list_view": 0, |
|||
"in_standard_filter": 0, |
|||
"label": "Criteria Name", |
|||
"length": 0, |
|||
"no_copy": 0, |
|||
"permlevel": 0, |
|||
"precision": "", |
|||
"print_hide": 0, |
|||
"print_hide_if_no_value": 0, |
|||
"read_only": 0, |
|||
"remember_last_selected_value": 0, |
|||
"report_hide": 0, |
|||
"reqd": 1, |
|||
"search_index": 0, |
|||
"set_only_once": 0, |
|||
"fieldname": "criteria_name", |
|||
"fieldtype": "Data", |
|||
"label": "Criteria Name", |
|||
"reqd": 1, |
|||
"unique": 1 |
|||
}, |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"default": "100", |
|||
"fieldname": "max_score", |
|||
"fieldtype": "Float", |
|||
"hidden": 0, |
|||
"ignore_user_permissions": 0, |
|||
"ignore_xss_filter": 0, |
|||
"in_filter": 0, |
|||
"in_global_search": 0, |
|||
"in_list_view": 1, |
|||
"in_standard_filter": 0, |
|||
"label": "Max Score", |
|||
"length": 0, |
|||
"no_copy": 0, |
|||
"permlevel": 0, |
|||
"precision": "", |
|||
"print_hide": 0, |
|||
"print_hide_if_no_value": 0, |
|||
"read_only": 0, |
|||
"remember_last_selected_value": 0, |
|||
"report_hide": 0, |
|||
"reqd": 1, |
|||
"search_index": 0, |
|||
"set_only_once": 0, |
|||
"unique": 0 |
|||
}, |
|||
"default": "100", |
|||
"fieldname": "max_score", |
|||
"fieldtype": "Float", |
|||
"in_list_view": 1, |
|||
"label": "Max Score", |
|||
"reqd": 1 |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "formula", |
|||
"fieldtype": "Small Text", |
|||
"hidden": 0, |
|||
"ignore_user_permissions": 0, |
|||
"ignore_xss_filter": 1, |
|||
"in_filter": 0, |
|||
"in_global_search": 0, |
|||
"in_list_view": 1, |
|||
"in_standard_filter": 0, |
|||
"label": "Criteria Formula", |
|||
"length": 0, |
|||
"no_copy": 0, |
|||
"permlevel": 0, |
|||
"precision": "", |
|||
"print_hide": 0, |
|||
"print_hide_if_no_value": 0, |
|||
"read_only": 0, |
|||
"remember_last_selected_value": 0, |
|||
"report_hide": 0, |
|||
"reqd": 1, |
|||
"search_index": 0, |
|||
"set_only_once": 0, |
|||
"unique": 0 |
|||
}, |
|||
"fieldname": "formula", |
|||
"fieldtype": "Small Text", |
|||
"ignore_xss_filter": 1, |
|||
"in_list_view": 1, |
|||
"label": "Criteria Formula", |
|||
"reqd": 1 |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "weight", |
|||
"fieldtype": "Percent", |
|||
"hidden": 0, |
|||
"ignore_user_permissions": 0, |
|||
"ignore_xss_filter": 0, |
|||
"in_filter": 0, |
|||
"in_global_search": 0, |
|||
"in_list_view": 0, |
|||
"in_standard_filter": 0, |
|||
"label": "Criteria Weight", |
|||
"length": 0, |
|||
"no_copy": 0, |
|||
"permlevel": 0, |
|||
"precision": "", |
|||
"print_hide": 0, |
|||
"print_hide_if_no_value": 0, |
|||
"read_only": 0, |
|||
"remember_last_selected_value": 0, |
|||
"report_hide": 0, |
|||
"reqd": 0, |
|||
"search_index": 0, |
|||
"set_only_once": 0, |
|||
"unique": 0 |
|||
"fieldname": "weight", |
|||
"fieldtype": "Percent", |
|||
"label": "Criteria Weight" |
|||
} |
|||
], |
|||
"has_web_view": 0, |
|||
"hide_heading": 0, |
|||
"hide_toolbar": 0, |
|||
"idx": 0, |
|||
"image_view": 0, |
|||
"in_create": 0, |
|||
"is_submittable": 0, |
|||
"issingle": 0, |
|||
"istable": 0, |
|||
"max_attachments": 0, |
|||
"modified": "2019-01-22 10:47:00.000822", |
|||
"modified_by": "Administrator", |
|||
"module": "Buying", |
|||
"name": "Supplier Scorecard Criteria", |
|||
"name_case": "", |
|||
"owner": "Administrator", |
|||
], |
|||
"links": [], |
|||
"modified": "2021-11-11 18:34:58.477648", |
|||
"modified_by": "Administrator", |
|||
"module": "Buying", |
|||
"name": "Supplier Scorecard Criteria", |
|||
"naming_rule": "By fieldname", |
|||
"owner": "Administrator", |
|||
"permissions": [ |
|||
{ |
|||
"amend": 0, |
|||
"apply_user_permissions": 0, |
|||
"cancel": 0, |
|||
"create": 1, |
|||
"delete": 1, |
|||
"email": 1, |
|||
"export": 1, |
|||
"if_owner": 0, |
|||
"import": 0, |
|||
"permlevel": 0, |
|||
"print": 1, |
|||
"read": 1, |
|||
"report": 1, |
|||
"role": "System Manager", |
|||
"set_user_permissions": 0, |
|||
"share": 1, |
|||
"submit": 0, |
|||
"create": 1, |
|||
"delete": 1, |
|||
"email": 1, |
|||
"export": 1, |
|||
"print": 1, |
|||
"read": 1, |
|||
"report": 1, |
|||
"role": "System Manager", |
|||
"share": 1, |
|||
"write": 1 |
|||
} |
|||
], |
|||
"quick_entry": 1, |
|||
"read_only": 0, |
|||
"read_only_onload": 0, |
|||
"show_name_in_global_search": 0, |
|||
"sort_field": "modified", |
|||
"sort_order": "DESC", |
|||
"track_changes": 1, |
|||
"track_seen": 0 |
|||
], |
|||
"quick_entry": 1, |
|||
"sort_field": "modified", |
|||
"sort_order": "DESC", |
|||
"track_changes": 1 |
|||
} |
@ -0,0 +1,11 @@ |
|||
import frappe |
|||
|
|||
from erpnext.setup.doctype.naming_series.naming_series import set_by_naming_series |
|||
|
|||
|
|||
def execute(): |
|||
|
|||
stock_settings = frappe.get_doc("Stock Settings") |
|||
|
|||
set_by_naming_series("Item", "item_code", |
|||
stock_settings.get("item_naming_by")=="Naming Series", hide_name_field=True, make_mandatory=0) |
@ -1,247 +1,100 @@ |
|||
{ |
|||
"allow_copy": 0, |
|||
"allow_guest_to_view": 0, |
|||
"allow_import": 0, |
|||
"allow_rename": 0, |
|||
"beta": 0, |
|||
"creation": "2013-04-19 13:30:51", |
|||
"custom": 0, |
|||
"docstatus": 0, |
|||
"doctype": "DocType", |
|||
"document_type": "Setup", |
|||
"editable_grid": 1, |
|||
"engine": "InnoDB", |
|||
"actions": [], |
|||
"creation": "2013-04-19 13:30:51", |
|||
"doctype": "DocType", |
|||
"document_type": "Setup", |
|||
"editable_grid": 1, |
|||
"engine": "InnoDB", |
|||
"field_order": [ |
|||
"sales_person", |
|||
"contact_no", |
|||
"allocated_percentage", |
|||
"allocated_amount", |
|||
"commission_rate", |
|||
"incentives" |
|||
], |
|||
"fields": [ |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 1, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "sales_person", |
|||
"fieldtype": "Link", |
|||
"hidden": 0, |
|||
"ignore_user_permissions": 0, |
|||
"ignore_xss_filter": 0, |
|||
"in_filter": 0, |
|||
"in_global_search": 0, |
|||
"in_list_view": 1, |
|||
"in_standard_filter": 0, |
|||
"label": "Sales Person", |
|||
"length": 0, |
|||
"no_copy": 0, |
|||
"oldfieldname": "sales_person", |
|||
"oldfieldtype": "Link", |
|||
"options": "Sales Person", |
|||
"permlevel": 0, |
|||
"print_hide": 0, |
|||
"print_hide_if_no_value": 0, |
|||
"print_width": "200px", |
|||
"read_only": 0, |
|||
"remember_last_selected_value": 0, |
|||
"report_hide": 0, |
|||
"reqd": 1, |
|||
"search_index": 1, |
|||
"set_only_once": 0, |
|||
"translatable": 0, |
|||
"unique": 0, |
|||
"allow_on_submit": 1, |
|||
"fieldname": "sales_person", |
|||
"fieldtype": "Link", |
|||
"in_list_view": 1, |
|||
"label": "Sales Person", |
|||
"oldfieldname": "sales_person", |
|||
"oldfieldtype": "Link", |
|||
"options": "Sales Person", |
|||
"print_width": "200px", |
|||
"reqd": 1, |
|||
"search_index": 1, |
|||
"width": "200px" |
|||
}, |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 1, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "contact_no", |
|||
"fieldtype": "Data", |
|||
"hidden": 1, |
|||
"ignore_user_permissions": 0, |
|||
"ignore_xss_filter": 0, |
|||
"in_filter": 0, |
|||
"in_global_search": 0, |
|||
"in_list_view": 1, |
|||
"in_standard_filter": 0, |
|||
"label": "Contact No.", |
|||
"length": 0, |
|||
"no_copy": 0, |
|||
"oldfieldname": "contact_no", |
|||
"oldfieldtype": "Data", |
|||
"permlevel": 0, |
|||
"print_hide": 0, |
|||
"print_hide_if_no_value": 0, |
|||
"print_width": "100px", |
|||
"read_only": 0, |
|||
"remember_last_selected_value": 0, |
|||
"report_hide": 0, |
|||
"reqd": 0, |
|||
"search_index": 0, |
|||
"set_only_once": 0, |
|||
"translatable": 0, |
|||
"unique": 0, |
|||
"allow_on_submit": 1, |
|||
"fieldname": "contact_no", |
|||
"fieldtype": "Data", |
|||
"hidden": 1, |
|||
"in_list_view": 1, |
|||
"label": "Contact No.", |
|||
"oldfieldname": "contact_no", |
|||
"oldfieldtype": "Data", |
|||
"print_width": "100px", |
|||
"width": "100px" |
|||
}, |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 1, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "allocated_percentage", |
|||
"fieldtype": "Float", |
|||
"hidden": 0, |
|||
"ignore_user_permissions": 0, |
|||
"ignore_xss_filter": 0, |
|||
"in_filter": 0, |
|||
"in_global_search": 0, |
|||
"in_list_view": 1, |
|||
"in_standard_filter": 0, |
|||
"label": "Contribution (%)", |
|||
"length": 0, |
|||
"no_copy": 0, |
|||
"oldfieldname": "allocated_percentage", |
|||
"oldfieldtype": "Currency", |
|||
"permlevel": 0, |
|||
"print_hide": 0, |
|||
"print_hide_if_no_value": 0, |
|||
"print_width": "100px", |
|||
"read_only": 0, |
|||
"remember_last_selected_value": 0, |
|||
"report_hide": 0, |
|||
"reqd": 0, |
|||
"search_index": 0, |
|||
"set_only_once": 0, |
|||
"translatable": 0, |
|||
"unique": 0, |
|||
"allow_on_submit": 1, |
|||
"fieldname": "allocated_percentage", |
|||
"fieldtype": "Float", |
|||
"in_list_view": 1, |
|||
"label": "Contribution (%)", |
|||
"oldfieldname": "allocated_percentage", |
|||
"oldfieldtype": "Currency", |
|||
"print_width": "100px", |
|||
"width": "100px" |
|||
}, |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 1, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "allocated_amount", |
|||
"fieldtype": "Currency", |
|||
"hidden": 0, |
|||
"ignore_user_permissions": 0, |
|||
"ignore_xss_filter": 0, |
|||
"in_filter": 0, |
|||
"in_global_search": 0, |
|||
"in_list_view": 1, |
|||
"in_standard_filter": 0, |
|||
"label": "Contribution to Net Total", |
|||
"length": 0, |
|||
"no_copy": 0, |
|||
"oldfieldname": "allocated_amount", |
|||
"oldfieldtype": "Currency", |
|||
"options": "Company:company:default_currency", |
|||
"permlevel": 0, |
|||
"print_hide": 0, |
|||
"print_hide_if_no_value": 0, |
|||
"print_width": "120px", |
|||
"read_only": 1, |
|||
"remember_last_selected_value": 0, |
|||
"report_hide": 0, |
|||
"reqd": 0, |
|||
"search_index": 0, |
|||
"set_only_once": 0, |
|||
"translatable": 0, |
|||
"unique": 0, |
|||
"allow_on_submit": 1, |
|||
"fieldname": "allocated_amount", |
|||
"fieldtype": "Currency", |
|||
"in_list_view": 1, |
|||
"label": "Contribution to Net Total", |
|||
"oldfieldname": "allocated_amount", |
|||
"oldfieldtype": "Currency", |
|||
"options": "Company:company:default_currency", |
|||
"print_width": "120px", |
|||
"read_only": 1, |
|||
"width": "120px" |
|||
}, |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "commission_rate", |
|||
"fieldtype": "Data", |
|||
"hidden": 0, |
|||
"ignore_user_permissions": 0, |
|||
"ignore_xss_filter": 0, |
|||
"in_filter": 0, |
|||
"in_global_search": 0, |
|||
"in_list_view": 1, |
|||
"in_standard_filter": 0, |
|||
"label": "Commission Rate", |
|||
"length": 0, |
|||
"no_copy": 0, |
|||
"permlevel": 0, |
|||
"precision": "", |
|||
"print_hide": 0, |
|||
"print_hide_if_no_value": 0, |
|||
"read_only": 1, |
|||
"remember_last_selected_value": 0, |
|||
"report_hide": 0, |
|||
"reqd": 0, |
|||
"search_index": 0, |
|||
"set_only_once": 0, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
}, |
|||
"fetch_from": "sales_person.commission_rate", |
|||
"fetch_if_empty": 1, |
|||
"fieldname": "commission_rate", |
|||
"fieldtype": "Data", |
|||
"in_list_view": 1, |
|||
"label": "Commission Rate", |
|||
"read_only": 1 |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 1, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "incentives", |
|||
"fieldtype": "Currency", |
|||
"hidden": 0, |
|||
"ignore_user_permissions": 0, |
|||
"ignore_xss_filter": 0, |
|||
"in_filter": 0, |
|||
"in_global_search": 0, |
|||
"in_list_view": 1, |
|||
"in_standard_filter": 0, |
|||
"label": "Incentives", |
|||
"length": 0, |
|||
"no_copy": 0, |
|||
"oldfieldname": "incentives", |
|||
"oldfieldtype": "Currency", |
|||
"options": "Company:company:default_currency", |
|||
"permlevel": 0, |
|||
"print_hide": 0, |
|||
"print_hide_if_no_value": 0, |
|||
"read_only": 0, |
|||
"remember_last_selected_value": 0, |
|||
"report_hide": 0, |
|||
"reqd": 0, |
|||
"search_index": 0, |
|||
"set_only_once": 0, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
"allow_on_submit": 1, |
|||
"fieldname": "incentives", |
|||
"fieldtype": "Currency", |
|||
"in_list_view": 1, |
|||
"label": "Incentives", |
|||
"oldfieldname": "incentives", |
|||
"oldfieldtype": "Currency", |
|||
"options": "Company:company:default_currency" |
|||
} |
|||
], |
|||
"has_web_view": 0, |
|||
"hide_heading": 0, |
|||
"hide_toolbar": 0, |
|||
"idx": 1, |
|||
"image_view": 0, |
|||
"in_create": 0, |
|||
"is_submittable": 0, |
|||
"issingle": 0, |
|||
"istable": 1, |
|||
"max_attachments": 0, |
|||
"modified": "2018-09-17 13:03:14.755974", |
|||
"modified_by": "Administrator", |
|||
"module": "Selling", |
|||
"name": "Sales Team", |
|||
"owner": "Administrator", |
|||
"permissions": [], |
|||
"quick_entry": 1, |
|||
"read_only": 0, |
|||
"read_only_onload": 0, |
|||
"show_name_in_global_search": 0, |
|||
"track_changes": 1, |
|||
"track_seen": 0, |
|||
"track_views": 0 |
|||
} |
|||
], |
|||
"idx": 1, |
|||
"istable": 1, |
|||
"links": [], |
|||
"modified": "2021-11-09 23:55:20.670475", |
|||
"modified_by": "Administrator", |
|||
"module": "Selling", |
|||
"name": "Sales Team", |
|||
"owner": "Administrator", |
|||
"permissions": [], |
|||
"quick_entry": 1, |
|||
"sort_field": "modified", |
|||
"sort_order": "DESC", |
|||
"track_changes": 1 |
|||
} |
Loading…
Reference in new issue