gavin
4 years ago
committed by
GitHub
114 changed files with 2264 additions and 3222 deletions
@ -1,347 +1,99 @@ |
|||
{ |
|||
"allow_copy": 0, |
|||
"allow_events_in_timeline": 0, |
|||
"allow_guest_to_view": 0, |
|||
"allow_import": 0, |
|||
"allow_rename": 0, |
|||
"beta": 0, |
|||
"creation": "2018-05-08 14:44:37.095570", |
|||
"custom": 0, |
|||
"docstatus": 0, |
|||
"doctype": "DocType", |
|||
"document_type": "", |
|||
"editable_grid": 1, |
|||
"engine": "InnoDB", |
|||
"actions": [], |
|||
"creation": "2018-05-08 14:44:37.095570", |
|||
"doctype": "DocType", |
|||
"editable_grid": 1, |
|||
"engine": "InnoDB", |
|||
"field_order": [ |
|||
"finance_book", |
|||
"depreciation_method", |
|||
"total_number_of_depreciations", |
|||
"column_break_5", |
|||
"frequency_of_depreciation", |
|||
"depreciation_start_date", |
|||
"expected_value_after_useful_life", |
|||
"value_after_depreciation", |
|||
"rate_of_depreciation" |
|||
], |
|||
"fields": [ |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"depends_on": "", |
|||
"fetch_if_empty": 0, |
|||
"fieldname": "finance_book", |
|||
"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": "Finance Book", |
|||
"length": 0, |
|||
"no_copy": 0, |
|||
"options": "Finance Book", |
|||
"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, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
}, |
|||
"fieldname": "finance_book", |
|||
"fieldtype": "Link", |
|||
"in_list_view": 1, |
|||
"label": "Finance Book", |
|||
"options": "Finance Book" |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fetch_if_empty": 0, |
|||
"fieldname": "depreciation_method", |
|||
"fieldtype": "Select", |
|||
"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": "Depreciation Method", |
|||
"length": 0, |
|||
"no_copy": 0, |
|||
"options": "\nStraight Line\nDouble Declining Balance\nWritten Down Value\nManual", |
|||
"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, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
}, |
|||
"fieldname": "depreciation_method", |
|||
"fieldtype": "Select", |
|||
"in_list_view": 1, |
|||
"label": "Depreciation Method", |
|||
"options": "\nStraight Line\nDouble Declining Balance\nWritten Down Value\nManual", |
|||
"reqd": 1 |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fetch_if_empty": 0, |
|||
"fieldname": "total_number_of_depreciations", |
|||
"fieldtype": "Int", |
|||
"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": "Total Number of Depreciations", |
|||
"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, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
}, |
|||
"fieldname": "total_number_of_depreciations", |
|||
"fieldtype": "Int", |
|||
"in_list_view": 1, |
|||
"label": "Total Number of Depreciations", |
|||
"reqd": 1 |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fetch_if_empty": 0, |
|||
"fieldname": "column_break_5", |
|||
"fieldtype": "Column Break", |
|||
"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": "", |
|||
"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, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
}, |
|||
"fieldname": "column_break_5", |
|||
"fieldtype": "Column Break" |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fetch_if_empty": 0, |
|||
"fieldname": "frequency_of_depreciation", |
|||
"fieldtype": "Int", |
|||
"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": "Frequency of Depreciation (Months)", |
|||
"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, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
}, |
|||
"fieldname": "frequency_of_depreciation", |
|||
"fieldtype": "Int", |
|||
"in_list_view": 1, |
|||
"label": "Frequency of Depreciation (Months)", |
|||
"reqd": 1 |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"depends_on": "eval:parent.doctype == 'Asset'", |
|||
"fetch_if_empty": 0, |
|||
"fieldname": "depreciation_start_date", |
|||
"fieldtype": "Date", |
|||
"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": "Depreciation Start Date", |
|||
"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, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
}, |
|||
"depends_on": "eval:parent.doctype == 'Asset'", |
|||
"fieldname": "depreciation_start_date", |
|||
"fieldtype": "Date", |
|||
"in_list_view": 1, |
|||
"label": "Depreciation Posting Date", |
|||
"reqd": 1 |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"default": "0", |
|||
"depends_on": "eval:parent.doctype == 'Asset'", |
|||
"fetch_if_empty": 0, |
|||
"fieldname": "expected_value_after_useful_life", |
|||
"fieldtype": "Currency", |
|||
"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": "Expected Value After Useful Life", |
|||
"length": 0, |
|||
"no_copy": 0, |
|||
"options": "Company:company:default_currency", |
|||
"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, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
}, |
|||
"default": "0", |
|||
"depends_on": "eval:parent.doctype == 'Asset'", |
|||
"fieldname": "expected_value_after_useful_life", |
|||
"fieldtype": "Currency", |
|||
"label": "Expected Value After Useful Life", |
|||
"options": "Company:company:default_currency" |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fetch_if_empty": 0, |
|||
"fieldname": "value_after_depreciation", |
|||
"fieldtype": "Currency", |
|||
"hidden": 1, |
|||
"ignore_user_permissions": 0, |
|||
"ignore_xss_filter": 0, |
|||
"in_filter": 0, |
|||
"in_global_search": 0, |
|||
"in_list_view": 0, |
|||
"in_standard_filter": 0, |
|||
"label": "Value After Depreciation", |
|||
"length": 0, |
|||
"no_copy": 1, |
|||
"options": "Company:company:default_currency", |
|||
"permlevel": 0, |
|||
"precision": "", |
|||
"print_hide": 1, |
|||
"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 |
|||
}, |
|||
"fieldname": "value_after_depreciation", |
|||
"fieldtype": "Currency", |
|||
"hidden": 1, |
|||
"label": "Value After Depreciation", |
|||
"no_copy": 1, |
|||
"options": "Company:company:default_currency", |
|||
"print_hide": 1, |
|||
"read_only": 1 |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"depends_on": "eval:doc.depreciation_method == 'Written Down Value'", |
|||
"description": "In Percentage", |
|||
"fetch_if_empty": 0, |
|||
"fieldname": "rate_of_depreciation", |
|||
"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": "Rate of Depreciation", |
|||
"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, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
"depends_on": "eval:doc.depreciation_method == 'Written Down Value'", |
|||
"description": "In Percentage", |
|||
"fieldname": "rate_of_depreciation", |
|||
"fieldtype": "Percent", |
|||
"label": "Rate of Depreciation" |
|||
} |
|||
], |
|||
"has_web_view": 0, |
|||
"hide_toolbar": 0, |
|||
"idx": 0, |
|||
"in_create": 0, |
|||
"is_submittable": 0, |
|||
"issingle": 0, |
|||
"istable": 1, |
|||
"max_attachments": 0, |
|||
"modified": "2019-04-09 19:45:14.523488", |
|||
"modified_by": "Administrator", |
|||
"module": "Assets", |
|||
"name": "Asset Finance Book", |
|||
"name_case": "", |
|||
"owner": "Administrator", |
|||
"permissions": [], |
|||
"quick_entry": 1, |
|||
"read_only": 0, |
|||
"show_name_in_global_search": 0, |
|||
"sort_field": "modified", |
|||
"sort_order": "DESC", |
|||
"track_changes": 1, |
|||
"track_seen": 0, |
|||
"track_views": 0 |
|||
], |
|||
"index_web_pages_for_search": 1, |
|||
"istable": 1, |
|||
"links": [], |
|||
"modified": "2020-09-16 12:11:30.631788", |
|||
"modified_by": "Administrator", |
|||
"module": "Assets", |
|||
"name": "Asset Finance Book", |
|||
"owner": "Administrator", |
|||
"permissions": [], |
|||
"quick_entry": 1, |
|||
"sort_field": "modified", |
|||
"sort_order": "DESC", |
|||
"track_changes": 1 |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,13 @@ |
|||
from __future__ import unicode_literals |
|||
from frappe import _ |
|||
|
|||
def get_data(): |
|||
return { |
|||
'fieldname': 'template', |
|||
'transactions': [ |
|||
{ |
|||
'label': _('Lab Tests'), |
|||
'items': ['Lab Test'] |
|||
} |
|||
] |
|||
} |
@ -1,336 +1,105 @@ |
|||
{ |
|||
"allow_copy": 0, |
|||
"allow_guest_to_view": 0, |
|||
"allow_import": 0, |
|||
"allow_rename": 1, |
|||
"autoname": "field:email", |
|||
"beta": 0, |
|||
"creation": "2017-09-19 16:20:27.510196", |
|||
"custom": 0, |
|||
"docstatus": 0, |
|||
"doctype": "DocType", |
|||
"document_type": "", |
|||
"editable_grid": 1, |
|||
"engine": "InnoDB", |
|||
"actions": [], |
|||
"allow_rename": 1, |
|||
"autoname": "field:email", |
|||
"creation": "2017-09-19 16:20:27.510196", |
|||
"doctype": "DocType", |
|||
"editable_grid": 1, |
|||
"engine": "InnoDB", |
|||
"field_order": [ |
|||
"donor_name", |
|||
"column_break_5", |
|||
"donor_type", |
|||
"email", |
|||
"image", |
|||
"address_contacts", |
|||
"address_html", |
|||
"column_break_9", |
|||
"contact_html" |
|||
], |
|||
"fields": [ |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "donor_name", |
|||
"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": "Donor 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, |
|||
"unique": 0 |
|||
}, |
|||
"fieldname": "donor_name", |
|||
"fieldtype": "Data", |
|||
"in_list_view": 1, |
|||
"label": "Donor Name", |
|||
"reqd": 1 |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "column_break_5", |
|||
"fieldtype": "Column Break", |
|||
"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, |
|||
"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": "column_break_5", |
|||
"fieldtype": "Column Break" |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "donor_type", |
|||
"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": "Donor Type", |
|||
"length": 0, |
|||
"no_copy": 0, |
|||
"options": "Donor Type", |
|||
"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": "donor_type", |
|||
"fieldtype": "Link", |
|||
"in_list_view": 1, |
|||
"label": "Donor Type", |
|||
"options": "Donor Type", |
|||
"reqd": 1 |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "email", |
|||
"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": "Email", |
|||
"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": "email", |
|||
"fieldtype": "Data", |
|||
"in_list_view": 1, |
|||
"label": "Email", |
|||
"reqd": 1, |
|||
"unique": 1 |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "image", |
|||
"fieldtype": "Attach Image", |
|||
"hidden": 1, |
|||
"ignore_user_permissions": 0, |
|||
"ignore_xss_filter": 0, |
|||
"in_filter": 0, |
|||
"in_global_search": 0, |
|||
"in_list_view": 0, |
|||
"in_standard_filter": 0, |
|||
"label": "Image", |
|||
"length": 0, |
|||
"no_copy": 1, |
|||
"permlevel": 0, |
|||
"precision": "", |
|||
"print_hide": 1, |
|||
"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": "image", |
|||
"fieldtype": "Attach Image", |
|||
"hidden": 1, |
|||
"label": "Image", |
|||
"no_copy": 1, |
|||
"print_hide": 1 |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "address_contacts", |
|||
"fieldtype": "Section Break", |
|||
"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": "Address and Contact", |
|||
"length": 0, |
|||
"no_copy": 0, |
|||
"options": "fa fa-map-marker", |
|||
"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 |
|||
}, |
|||
"depends_on": "eval:!doc.__islocal;", |
|||
"fieldname": "address_contacts", |
|||
"fieldtype": "Section Break", |
|||
"label": "Address and Contact", |
|||
"options": "fa fa-map-marker" |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "address_html", |
|||
"fieldtype": "HTML", |
|||
"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": "Address HTML", |
|||
"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": "address_html", |
|||
"fieldtype": "HTML", |
|||
"label": "Address HTML" |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "column_break_9", |
|||
"fieldtype": "Column Break", |
|||
"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, |
|||
"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": "column_break_9", |
|||
"fieldtype": "Column Break" |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "contact_html", |
|||
"fieldtype": "HTML", |
|||
"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": "Contact HTML", |
|||
"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": "contact_html", |
|||
"fieldtype": "HTML", |
|||
"label": "Contact HTML" |
|||
} |
|||
], |
|||
"has_web_view": 0, |
|||
"hide_heading": 0, |
|||
"hide_toolbar": 0, |
|||
"idx": 0, |
|||
"image_field": "image", |
|||
"image_view": 0, |
|||
"in_create": 0, |
|||
"is_submittable": 0, |
|||
"issingle": 0, |
|||
"istable": 0, |
|||
"max_attachments": 0, |
|||
"modified": "2018-01-22 15:53:35.059946", |
|||
"modified_by": "Administrator", |
|||
"module": "Non Profit", |
|||
"name": "Donor", |
|||
"name_case": "", |
|||
"owner": "Administrator", |
|||
], |
|||
"image_field": "image", |
|||
"links": [], |
|||
"modified": "2020-09-16 23:46:04.083274", |
|||
"modified_by": "Administrator", |
|||
"module": "Non Profit", |
|||
"name": "Donor", |
|||
"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": "Non Profit Manager", |
|||
"set_user_permissions": 0, |
|||
"share": 1, |
|||
"submit": 0, |
|||
"create": 1, |
|||
"delete": 1, |
|||
"email": 1, |
|||
"export": 1, |
|||
"print": 1, |
|||
"read": 1, |
|||
"report": 1, |
|||
"role": "Non Profit Manager", |
|||
"share": 1, |
|||
"write": 1 |
|||
} |
|||
], |
|||
"quick_entry": 1, |
|||
"read_only": 0, |
|||
"read_only_onload": 0, |
|||
"restrict_to_domain": "Non Profit", |
|||
"show_name_in_global_search": 0, |
|||
"sort_field": "modified", |
|||
"sort_order": "DESC", |
|||
"title_field": "donor_name", |
|||
"track_changes": 1, |
|||
"track_seen": 0 |
|||
], |
|||
"quick_entry": 1, |
|||
"restrict_to_domain": "Non Profit", |
|||
"sort_field": "modified", |
|||
"sort_order": "DESC", |
|||
"title_field": "donor_name", |
|||
"track_changes": 1 |
|||
} |
@ -1,580 +1,148 @@ |
|||
{ |
|||
"allow_copy": 0, |
|||
"allow_events_in_timeline": 0, |
|||
"allow_guest_to_view": 0, |
|||
"allow_import": 0, |
|||
"allow_rename": 1, |
|||
"autoname": "field:email", |
|||
"beta": 0, |
|||
"creation": "2017-09-19 16:16:45.676019", |
|||
"custom": 0, |
|||
"docstatus": 0, |
|||
"doctype": "DocType", |
|||
"document_type": "", |
|||
"editable_grid": 1, |
|||
"engine": "InnoDB", |
|||
"actions": [], |
|||
"allow_rename": 1, |
|||
"autoname": "field:email", |
|||
"creation": "2017-09-19 16:16:45.676019", |
|||
"doctype": "DocType", |
|||
"editable_grid": 1, |
|||
"engine": "InnoDB", |
|||
"field_order": [ |
|||
"volunteer_name", |
|||
"column_break_5", |
|||
"volunteer_type", |
|||
"email", |
|||
"image", |
|||
"address_contacts", |
|||
"address_html", |
|||
"column_break_9", |
|||
"contact_html", |
|||
"volunteer_availability_and_skills_details", |
|||
"availability", |
|||
"availability_timeslot", |
|||
"column_break_12", |
|||
"volunteer_skills", |
|||
"section_break_15", |
|||
"note" |
|||
], |
|||
"fields": [ |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "volunteer_name", |
|||
"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": "Volunteer 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, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "column_break_5", |
|||
"fieldtype": "Column Break", |
|||
"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, |
|||
"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, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "volunteer_type", |
|||
"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": "Volunteer Type", |
|||
"length": 0, |
|||
"no_copy": 0, |
|||
"options": "Volunteer Type", |
|||
"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, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "email", |
|||
"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": "Email", |
|||
"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, |
|||
"translatable": 0, |
|||
"fieldname": "volunteer_name", |
|||
"fieldtype": "Data", |
|||
"in_list_view": 1, |
|||
"label": "Volunteer Name", |
|||
"reqd": 1 |
|||
}, |
|||
{ |
|||
"fieldname": "column_break_5", |
|||
"fieldtype": "Column Break" |
|||
}, |
|||
{ |
|||
"fieldname": "volunteer_type", |
|||
"fieldtype": "Link", |
|||
"in_list_view": 1, |
|||
"label": "Volunteer Type", |
|||
"options": "Volunteer Type", |
|||
"reqd": 1 |
|||
}, |
|||
{ |
|||
"fieldname": "email", |
|||
"fieldtype": "Data", |
|||
"in_list_view": 1, |
|||
"label": "Email", |
|||
"reqd": 1, |
|||
"unique": 1 |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "image", |
|||
"fieldtype": "Attach Image", |
|||
"hidden": 1, |
|||
"ignore_user_permissions": 0, |
|||
"ignore_xss_filter": 0, |
|||
"in_filter": 0, |
|||
"in_global_search": 0, |
|||
"in_list_view": 0, |
|||
"in_standard_filter": 0, |
|||
"label": "Image", |
|||
"length": 0, |
|||
"no_copy": 1, |
|||
"permlevel": 0, |
|||
"precision": "", |
|||
"print_hide": 1, |
|||
"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_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "address_contacts", |
|||
"fieldtype": "Section Break", |
|||
"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": "Address and Contact", |
|||
"length": 0, |
|||
"no_copy": 0, |
|||
"options": "fa fa-map-marker", |
|||
"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, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "address_html", |
|||
"fieldtype": "HTML", |
|||
"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": "Address HTML", |
|||
"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, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "column_break_9", |
|||
"fieldtype": "Column Break", |
|||
"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, |
|||
"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, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "contact_html", |
|||
"fieldtype": "HTML", |
|||
"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": "Contact HTML", |
|||
"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, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "volunteer_availability_and_skills_details", |
|||
"fieldtype": "Section Break", |
|||
"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": "Availability and Skills", |
|||
"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, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "availability", |
|||
"fieldtype": "Select", |
|||
"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": "Availability", |
|||
"length": 0, |
|||
"no_copy": 0, |
|||
"options": "\nWeekly\nWeekdays\nWeekends", |
|||
"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, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "availability_timeslot", |
|||
"fieldtype": "Select", |
|||
"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": "Availability Timeslot", |
|||
"length": 0, |
|||
"no_copy": 0, |
|||
"options": "\nMorning\nAfternoon\nEvening\nAnytime", |
|||
"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, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "column_break_12", |
|||
"fieldtype": "Column Break", |
|||
"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, |
|||
"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, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "volunteer_skills", |
|||
"fieldtype": "Table", |
|||
"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": "Volunteer Skills", |
|||
"length": 0, |
|||
"no_copy": 0, |
|||
"options": "Volunteer Skill", |
|||
"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, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "section_break_15", |
|||
"fieldtype": "Section Break", |
|||
"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, |
|||
"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, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "note", |
|||
"fieldtype": "Long Text", |
|||
"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": "Note", |
|||
"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, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
}, |
|||
{ |
|||
"fieldname": "image", |
|||
"fieldtype": "Attach Image", |
|||
"hidden": 1, |
|||
"label": "Image", |
|||
"no_copy": 1, |
|||
"print_hide": 1 |
|||
}, |
|||
{ |
|||
"depends_on": "eval:!doc.__islocal;", |
|||
"fieldname": "address_contacts", |
|||
"fieldtype": "Section Break", |
|||
"label": "Address and Contact", |
|||
"options": "fa fa-map-marker" |
|||
}, |
|||
{ |
|||
"fieldname": "address_html", |
|||
"fieldtype": "HTML", |
|||
"label": "Address HTML" |
|||
}, |
|||
{ |
|||
"fieldname": "column_break_9", |
|||
"fieldtype": "Column Break" |
|||
}, |
|||
{ |
|||
"fieldname": "contact_html", |
|||
"fieldtype": "HTML", |
|||
"label": "Contact HTML" |
|||
}, |
|||
{ |
|||
"fieldname": "volunteer_availability_and_skills_details", |
|||
"fieldtype": "Section Break", |
|||
"label": "Availability and Skills" |
|||
}, |
|||
{ |
|||
"fieldname": "availability", |
|||
"fieldtype": "Select", |
|||
"label": "Availability", |
|||
"options": "\nWeekly\nWeekdays\nWeekends" |
|||
}, |
|||
{ |
|||
"fieldname": "availability_timeslot", |
|||
"fieldtype": "Select", |
|||
"label": "Availability Timeslot", |
|||
"options": "\nMorning\nAfternoon\nEvening\nAnytime" |
|||
}, |
|||
{ |
|||
"fieldname": "column_break_12", |
|||
"fieldtype": "Column Break" |
|||
}, |
|||
{ |
|||
"fieldname": "volunteer_skills", |
|||
"fieldtype": "Table", |
|||
"label": "Volunteer Skills", |
|||
"options": "Volunteer Skill" |
|||
}, |
|||
{ |
|||
"fieldname": "section_break_15", |
|||
"fieldtype": "Section Break" |
|||
}, |
|||
{ |
|||
"fieldname": "note", |
|||
"fieldtype": "Long Text", |
|||
"label": "Note" |
|||
} |
|||
], |
|||
"has_web_view": 0, |
|||
"hide_heading": 0, |
|||
"hide_toolbar": 0, |
|||
"idx": 0, |
|||
"image_field": "image", |
|||
"image_view": 0, |
|||
"in_create": 0, |
|||
"is_submittable": 0, |
|||
"issingle": 0, |
|||
"istable": 0, |
|||
"max_attachments": 0, |
|||
"modified": "2018-11-04 03:36:25.776211", |
|||
"modified_by": "Administrator", |
|||
"module": "Non Profit", |
|||
"name": "Volunteer", |
|||
"name_case": "", |
|||
"owner": "Administrator", |
|||
], |
|||
"image_field": "image", |
|||
"links": [], |
|||
"modified": "2020-09-16 23:45:15.595952", |
|||
"modified_by": "Administrator", |
|||
"module": "Non Profit", |
|||
"name": "Volunteer", |
|||
"owner": "Administrator", |
|||
"permissions": [ |
|||
{ |
|||
"amend": 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": "Non Profit Manager", |
|||
"set_user_permissions": 0, |
|||
"share": 1, |
|||
"submit": 0, |
|||
"create": 1, |
|||
"delete": 1, |
|||
"email": 1, |
|||
"export": 1, |
|||
"print": 1, |
|||
"read": 1, |
|||
"report": 1, |
|||
"role": "Non Profit Manager", |
|||
"share": 1, |
|||
"write": 1 |
|||
} |
|||
], |
|||
"quick_entry": 1, |
|||
"read_only": 0, |
|||
"read_only_onload": 0, |
|||
"restrict_to_domain": "Non Profit", |
|||
"show_name_in_global_search": 0, |
|||
"sort_field": "modified", |
|||
"sort_order": "DESC", |
|||
"title_field": "volunteer_name", |
|||
"track_changes": 1, |
|||
"track_seen": 0, |
|||
"track_views": 0 |
|||
], |
|||
"quick_entry": 1, |
|||
"restrict_to_domain": "Non Profit", |
|||
"sort_field": "modified", |
|||
"sort_order": "DESC", |
|||
"title_field": "volunteer_name", |
|||
"track_changes": 1 |
|||
} |
@ -0,0 +1,174 @@ |
|||
# coding: utf-8 |
|||
from __future__ import unicode_literals |
|||
|
|||
import datetime |
|||
import zipfile |
|||
from csv import QUOTE_NONNUMERIC |
|||
from six import BytesIO |
|||
|
|||
import six |
|||
import frappe |
|||
import pandas as pd |
|||
from frappe import _ |
|||
from .datev_constants import DataCategory |
|||
|
|||
|
|||
def get_datev_csv(data, filters, csv_class): |
|||
""" |
|||
Fill in missing columns and return a CSV in DATEV Format. |
|||
|
|||
For automatic processing, DATEV requires the first line of the CSV file to |
|||
hold meta data such as the length of account numbers oder the category of |
|||
the data. |
|||
|
|||
Arguments: |
|||
data -- array of dictionaries |
|||
filters -- dict |
|||
csv_class -- defines DATA_CATEGORY, FORMAT_NAME and COLUMNS |
|||
""" |
|||
empty_df = pd.DataFrame(columns=csv_class.COLUMNS) |
|||
data_df = pd.DataFrame.from_records(data) |
|||
result = empty_df.append(data_df, sort=True) |
|||
|
|||
if csv_class.DATA_CATEGORY == DataCategory.TRANSACTIONS: |
|||
result['Belegdatum'] = pd.to_datetime(result['Belegdatum']) |
|||
|
|||
if csv_class.DATA_CATEGORY == DataCategory.ACCOUNT_NAMES: |
|||
result['Sprach-ID'] = 'de-DE' |
|||
|
|||
data = result.to_csv( |
|||
# Reason for str(';'): https://github.com/pandas-dev/pandas/issues/6035 |
|||
sep=str(';'), |
|||
# European decimal seperator |
|||
decimal=',', |
|||
# Windows "ANSI" encoding |
|||
encoding='latin_1', |
|||
# format date as DDMM |
|||
date_format='%d%m', |
|||
# Windows line terminator |
|||
line_terminator='\r\n', |
|||
# Do not number rows |
|||
index=False, |
|||
# Use all columns defined above |
|||
columns=csv_class.COLUMNS, |
|||
# Quote most fields, even currency values with "," separator |
|||
quoting=QUOTE_NONNUMERIC |
|||
) |
|||
|
|||
if not six.PY2: |
|||
data = data.encode('latin_1') |
|||
|
|||
header = get_header(filters, csv_class) |
|||
header = ';'.join(header).encode('latin_1') |
|||
|
|||
# 1st Row: Header with meta data |
|||
# 2nd Row: Data heading (Überschrift der Nutzdaten), included in `data` here. |
|||
# 3rd - nth Row: Data (Nutzdaten) |
|||
return header + b'\r\n' + data |
|||
|
|||
|
|||
def get_header(filters, csv_class): |
|||
description = filters.get('voucher_type', csv_class.FORMAT_NAME) |
|||
company = filters.get('company') |
|||
datev_settings = frappe.get_doc('DATEV Settings', {'client': company}) |
|||
default_currency = frappe.get_value('Company', company, 'default_currency') |
|||
coa = frappe.get_value('Company', company, 'chart_of_accounts') |
|||
coa_short_code = '04' if 'SKR04' in coa else ('03' if 'SKR03' in coa else '') |
|||
|
|||
header = [ |
|||
# DATEV format |
|||
# "DTVF" = created by DATEV software, |
|||
# "EXTF" = created by other software |
|||
'"EXTF"', |
|||
# version of the DATEV format |
|||
# 141 = 1.41, |
|||
# 510 = 5.10, |
|||
# 720 = 7.20 |
|||
'700', |
|||
csv_class.DATA_CATEGORY, |
|||
'"%s"' % csv_class.FORMAT_NAME, |
|||
# Format version (regarding format name) |
|||
csv_class.FORMAT_VERSION, |
|||
# Generated on |
|||
datetime.datetime.now().strftime('%Y%m%d%H%M%S') + '000', |
|||
# Imported on -- stays empty |
|||
'', |
|||
# Origin. Any two symbols, will be replaced by "SV" on import. |
|||
'"EN"', |
|||
# I = Exported by |
|||
'"%s"' % frappe.session.user, |
|||
# J = Imported by -- stays empty |
|||
'', |
|||
# K = Tax consultant number (Beraternummer) |
|||
datev_settings.get('consultant_number', '0000000'), |
|||
# L = Tax client number (Mandantennummer) |
|||
datev_settings.get('client_number', '00000'), |
|||
# M = Start of the fiscal year (Wirtschaftsjahresbeginn) |
|||
frappe.utils.formatdate(frappe.defaults.get_user_default('year_start_date'), 'yyyyMMdd'), |
|||
# N = Length of account numbers (Sachkontenlänge) |
|||
datev_settings.get('account_number_length', '4'), |
|||
# O = Transaction batch start date (YYYYMMDD) |
|||
frappe.utils.formatdate(filters.get('from_date'), 'yyyyMMdd') if csv_class.DATA_CATEGORY == DataCategory.TRANSACTIONS else '', |
|||
# P = Transaction batch end date (YYYYMMDD) |
|||
frappe.utils.formatdate(filters.get('to_date'), 'yyyyMMdd') if csv_class.DATA_CATEGORY == DataCategory.TRANSACTIONS else '', |
|||
# Q = Description (for example, "Sales Invoice") Max. 30 chars |
|||
'"{}"'.format(_(description)) if csv_class.DATA_CATEGORY == DataCategory.TRANSACTIONS else '', |
|||
# R = Diktatkürzel |
|||
'', |
|||
# S = Buchungstyp |
|||
# 1 = Transaction batch (Finanzbuchführung), |
|||
# 2 = Annual financial statement (Jahresabschluss) |
|||
'1' if csv_class.DATA_CATEGORY == DataCategory.TRANSACTIONS else '', |
|||
# T = Rechnungslegungszweck |
|||
# 0 oder leer = vom Rechnungslegungszweck unabhängig |
|||
# 50 = Handelsrecht |
|||
# 30 = Steuerrecht |
|||
# 64 = IFRS |
|||
# 40 = Kalkulatorik |
|||
# 11 = Reserviert |
|||
# 12 = Reserviert |
|||
'0' if csv_class.DATA_CATEGORY == DataCategory.TRANSACTIONS else '', |
|||
# U = Festschreibung |
|||
# TODO: Filter by Accounting Period. In export for closed Accounting Period, this will be "1" |
|||
'0', |
|||
# V = Default currency, for example, "EUR" |
|||
'"%s"' % default_currency if csv_class.DATA_CATEGORY == DataCategory.TRANSACTIONS else '', |
|||
# reserviert |
|||
'', |
|||
# Derivatskennzeichen |
|||
'', |
|||
# reserviert |
|||
'', |
|||
# reserviert |
|||
'', |
|||
# SKR |
|||
'"%s"' % coa_short_code, |
|||
# Branchen-Lösungs-ID |
|||
'', |
|||
# reserviert |
|||
'', |
|||
# reserviert |
|||
'', |
|||
# Anwendungsinformation (Verarbeitungskennzeichen der abgebenden Anwendung) |
|||
'' |
|||
] |
|||
return header |
|||
|
|||
|
|||
def download_csv_files_as_zip(csv_data_list): |
|||
""" |
|||
Put CSV files in a zip archive and send that to the client. |
|||
|
|||
Params: |
|||
csv_data_list -- list of dicts [{'file_name': 'EXTF_Buchunsstapel.zip', 'csv_data': get_datev_csv()}] |
|||
""" |
|||
zip_buffer = BytesIO() |
|||
|
|||
datev_zip = zipfile.ZipFile(zip_buffer, mode='w', compression=zipfile.ZIP_DEFLATED) |
|||
for csv_file in csv_data_list: |
|||
datev_zip.writestr(csv_file.get('file_name'), csv_file.get('csv_data')) |
|||
datev_zip.close() |
|||
|
|||
frappe.response['filecontent'] = zip_buffer.getvalue() |
|||
frappe.response['filename'] = 'DATEV.zip' |
|||
frappe.response['type'] = 'binary' |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue