Skip to content

Commit

Permalink
feat: nodes doctype
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthra-kumar committed Dec 1, 2023
1 parent de2eba0 commit 85f2a6d
Show file tree
Hide file tree
Showing 5 changed files with 115 additions and 0 deletions.
Empty file.
8 changes: 8 additions & 0 deletions erpnext/accounts/doctype/nodes/nodes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt

// frappe.ui.form.on("Nodes", {
// refresh(frm) {

// },
// });
89 changes: 89 additions & 0 deletions erpnext/accounts/doctype/nodes/nodes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
{
"actions": [],
"autoname": "autoincrement",
"creation": "2023-09-25 22:01:33.961832",
"default_view": "List",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"root",
"left_child",
"right_child",
"period_from_date",
"period_to_date",
"difference",
"balance_sheet_summary",
"profit_loss_summary"
],
"fields": [
{
"fieldname": "root",
"fieldtype": "Link",
"label": "Root",
"options": "Nodes"
},
{
"fieldname": "left_child",
"fieldtype": "Link",
"label": "Left Child",
"options": "Nodes"
},
{
"fieldname": "right_child",
"fieldtype": "Link",
"label": "Right Child",
"options": "Nodes"
},
{
"fieldname": "period_from_date",
"fieldtype": "Datetime",
"label": "Period_from_date"
},
{
"fieldname": "period_to_date",
"fieldtype": "Datetime",
"label": "Period To Date"
},
{
"fieldname": "difference",
"fieldtype": "Float",
"label": "Difference"
},
{
"fieldname": "balance_sheet_summary",
"fieldtype": "Float",
"label": "Balance Sheet Summary"
},
{
"fieldname": "profit_loss_summary",
"fieldtype": "Float",
"label": "Profit and Loss Summary"
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2023-09-25 22:05:49.577861",
"modified_by": "Administrator",
"module": "Accounts",
"name": "Nodes",
"naming_rule": "Autoincrement",
"owner": "Administrator",
"permissions": [
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "System Manager",
"share": 1,
"write": 1
}
],
"sort_field": "modified",
"sort_order": "DESC",
"states": []
}
9 changes: 9 additions & 0 deletions erpnext/accounts/doctype/nodes/nodes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt

# import frappe
from frappe.model.document import Document


class Nodes(Document):
pass
9 changes: 9 additions & 0 deletions erpnext/accounts/doctype/nodes/test_nodes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and Contributors
# See license.txt

# import frappe
from frappe.tests.utils import FrappeTestCase


class TestNodes(FrappeTestCase):
pass

0 comments on commit 85f2a6d

Please sign in to comment.