From 02522a0df527bba0b4c7dfa17a02f00fe53c4b14 Mon Sep 17 00:00:00 2001 From: alyf-de Date: Wed, 14 Aug 2019 00:06:21 +0200 Subject: [PATCH] Add DATEV Settings --- .../doctype/datev_settings/__init__.py | 0 .../doctype/datev_settings/datev_settings.js | 8 ++ .../datev_settings/datev_settings.json | 105 ++++++++++++++++++ .../doctype/datev_settings/datev_settings.py | 10 ++ .../datev_settings/test_datev_settings.py | 10 ++ 5 files changed, 133 insertions(+) create mode 100644 erpnext/regional/doctype/datev_settings/__init__.py create mode 100644 erpnext/regional/doctype/datev_settings/datev_settings.js create mode 100644 erpnext/regional/doctype/datev_settings/datev_settings.json create mode 100644 erpnext/regional/doctype/datev_settings/datev_settings.py create mode 100644 erpnext/regional/doctype/datev_settings/test_datev_settings.py diff --git a/erpnext/regional/doctype/datev_settings/__init__.py b/erpnext/regional/doctype/datev_settings/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/erpnext/regional/doctype/datev_settings/datev_settings.js b/erpnext/regional/doctype/datev_settings/datev_settings.js new file mode 100644 index 0000000000..69747b0b89 --- /dev/null +++ b/erpnext/regional/doctype/datev_settings/datev_settings.js @@ -0,0 +1,8 @@ +// Copyright (c) 2019, Frappe Technologies Pvt. Ltd. and contributors +// For license information, please see license.txt + +frappe.ui.form.on('DATEV Settings', { + // refresh: function(frm) { + + // } +}); diff --git a/erpnext/regional/doctype/datev_settings/datev_settings.json b/erpnext/regional/doctype/datev_settings/datev_settings.json new file mode 100644 index 0000000000..6860ed3fda --- /dev/null +++ b/erpnext/regional/doctype/datev_settings/datev_settings.json @@ -0,0 +1,105 @@ +{ + "autoname": "field:client", + "creation": "2019-08-13 23:56:34.259906", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "client", + "column_break_2", + "client_number", + "section_break_4", + "consultant", + "column_break_6", + "consultant_number" + ], + "fields": [ + { + "fieldname": "client", + "fieldtype": "Link", + "in_list_view": 1, + "label": "Client", + "options": "Company", + "reqd": 1, + "unique": 1 + }, + { + "fieldname": "client_number", + "fieldtype": "Data", + "in_list_view": 1, + "label": "Client ID", + "reqd": 1 + }, + { + "fieldname": "consultant", + "fieldtype": "Link", + "in_list_view": 1, + "label": "Consultant", + "options": "Supplier" + }, + { + "fieldname": "consultant_number", + "fieldtype": "Data", + "in_list_view": 1, + "label": "Consultant ID", + "reqd": 1 + }, + { + "fieldname": "column_break_2", + "fieldtype": "Column Break" + }, + { + "fieldname": "section_break_4", + "fieldtype": "Section Break" + }, + { + "fieldname": "column_break_6", + "fieldtype": "Column Break" + } + ], + "modified": "2019-08-14 00:03:26.616460", + "modified_by": "Administrator", + "module": "Regional", + "name": "DATEV Settings", + "owner": "Administrator", + "permissions": [ + { + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "System Manager", + "share": 1, + "write": 1 + }, + { + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "Accounts Manager", + "share": 1, + "write": 1 + }, + { + "create": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "Accounts User", + "share": 1 + } + ], + "quick_entry": 1, + "sort_field": "modified", + "sort_order": "DESC", + "track_changes": 1 +} \ No newline at end of file diff --git a/erpnext/regional/doctype/datev_settings/datev_settings.py b/erpnext/regional/doctype/datev_settings/datev_settings.py new file mode 100644 index 0000000000..cff5bba58f --- /dev/null +++ b/erpnext/regional/doctype/datev_settings/datev_settings.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +# Copyright (c) 2019, Frappe Technologies Pvt. Ltd. and contributors +# For license information, please see license.txt + +from __future__ import unicode_literals +# import frappe +from frappe.model.document import Document + +class DATEVSettings(Document): + pass diff --git a/erpnext/regional/doctype/datev_settings/test_datev_settings.py b/erpnext/regional/doctype/datev_settings/test_datev_settings.py new file mode 100644 index 0000000000..0271329f4d --- /dev/null +++ b/erpnext/regional/doctype/datev_settings/test_datev_settings.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +# Copyright (c) 2019, Frappe Technologies Pvt. Ltd. and Contributors +# See license.txt +from __future__ import unicode_literals + +# import frappe +import unittest + +class TestDATEVSettings(unittest.TestCase): + pass