From 8027154b9600e659c0f7a106abc2e036444e704c Mon Sep 17 00:00:00 2001 From: Shyam Rathod Date: Tue, 20 Feb 2024 15:52:31 +0530 Subject: [PATCH] create doctype --- .../doctype/generate_group_id/__init__.py | 0 .../generate_group_id/generate_group_id.js | 8 ++ .../generate_group_id/generate_group_id.json | 73 +++++++++++++++++++ .../generate_group_id/generate_group_id.py | 8 ++ .../test_generate_group_id.py | 9 +++ 5 files changed, 98 insertions(+) create mode 100644 gst_india/gst_india/doctype/generate_group_id/__init__.py create mode 100644 gst_india/gst_india/doctype/generate_group_id/generate_group_id.js create mode 100644 gst_india/gst_india/doctype/generate_group_id/generate_group_id.json create mode 100644 gst_india/gst_india/doctype/generate_group_id/generate_group_id.py create mode 100644 gst_india/gst_india/doctype/generate_group_id/test_generate_group_id.py diff --git a/gst_india/gst_india/doctype/generate_group_id/__init__.py b/gst_india/gst_india/doctype/generate_group_id/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/gst_india/gst_india/doctype/generate_group_id/generate_group_id.js b/gst_india/gst_india/doctype/generate_group_id/generate_group_id.js new file mode 100644 index 00000000..7f14a7df --- /dev/null +++ b/gst_india/gst_india/doctype/generate_group_id/generate_group_id.js @@ -0,0 +1,8 @@ +// Copyright (c) 2024, 8848 Digital LLP and contributors +// For license information, please see license.txt + +frappe.ui.form.on('Generate Group ID', { + // refresh: function(frm) { + + // } +}); diff --git a/gst_india/gst_india/doctype/generate_group_id/generate_group_id.json b/gst_india/gst_india/doctype/generate_group_id/generate_group_id.json new file mode 100644 index 00000000..d289689b --- /dev/null +++ b/gst_india/gst_india/doctype/generate_group_id/generate_group_id.json @@ -0,0 +1,73 @@ +{ + "actions": [], + "allow_rename": 1, + "autoname": "field:pan", + "creation": "2024-02-20 11:09:47.097835", + "default_view": "List", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "pan", + "pan_no", + "document_no", + "random_id", + "dacument_type" + ], + "fields": [ + { + "fieldname": "pan", + "fieldtype": "Data", + "label": "Pan", + "unique": 1 + }, + { + "fieldname": "pan_no", + "fieldtype": "Data", + "label": "Pan No" + }, + { + "fieldname": "document_no", + "fieldtype": "Data", + "label": "Document No" + }, + { + "fieldname": "random_id", + "fieldtype": "Data", + "label": "Random ID" + }, + { + "fieldname": "dacument_type", + "fieldtype": "Select", + "label": "Dacument Type", + "options": "\nSales Invoice\nPurchase Invoice" + } + ], + "index_web_pages_for_search": 1, + "links": [], + "modified": "2024-02-20 15:52:09.400343", + "modified_by": "Administrator", + "module": "GST India", + "name": "Generate Group ID", + "naming_rule": "By fieldname", + "owner": "Administrator", + "permissions": [ + { + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "System Manager", + "share": 1, + "write": 1 + } + ], + "quick_entry": 1, + "sort_field": "modified", + "sort_order": "DESC", + "states": [], + "track_changes": 1 +} \ No newline at end of file diff --git a/gst_india/gst_india/doctype/generate_group_id/generate_group_id.py b/gst_india/gst_india/doctype/generate_group_id/generate_group_id.py new file mode 100644 index 00000000..c340df4d --- /dev/null +++ b/gst_india/gst_india/doctype/generate_group_id/generate_group_id.py @@ -0,0 +1,8 @@ +# Copyright (c) 2024, 8848 Digital LLP and contributors +# For license information, please see license.txt + +# import frappe +from frappe.model.document import Document + +class GenerateGroupID(Document): + pass diff --git a/gst_india/gst_india/doctype/generate_group_id/test_generate_group_id.py b/gst_india/gst_india/doctype/generate_group_id/test_generate_group_id.py new file mode 100644 index 00000000..a1aff64f --- /dev/null +++ b/gst_india/gst_india/doctype/generate_group_id/test_generate_group_id.py @@ -0,0 +1,9 @@ +# Copyright (c) 2024, 8848 Digital LLP and Contributors +# See license.txt + +# import frappe +from frappe.tests.utils import FrappeTestCase + + +class TestGenerateGroupID(FrappeTestCase): + pass