Deleted formula editor app, because it's to big and became new app

This commit is contained in:
Ali 2025-02-27 19:25:12 +04:00
parent cf36b8be2c
commit 1865122a4d
6 changed files with 0 additions and 1391 deletions

View File

@ -1,24 +0,0 @@
import frappe
@frappe.whitelist()
def get_doctype_fields(doctype):
meta = frappe.get_meta(doctype)
fields = []
# Получаем все int-поля
for field in meta.fields:
if field.fieldtype in ["Int", "Float", "Currency"]:
fields.append({"fieldname": field.fieldname, "label": field.label})
# Проверяем таблицы внутри DocType (например, `items` в `Sales Invoice`)
for child in meta.fields:
if child.fieldtype == "Table":
child_meta = frappe.get_meta(child.options)
for sub_field in child_meta.fields:
if sub_field.fieldtype in ["Int", "Float", "Currency"]:
fields.append({
"fieldname": f"{child.fieldname}_{sub_field.fieldname}",
"label": f"{child.label}{sub_field.label}"
})
return fields

File diff suppressed because it is too large Load Diff

View File

@ -1,66 +0,0 @@
{
"actions": [],
"allow_rename": 1,
"creation": "2025-02-20 14:32:09.445777",
"doctype": "DocType",
"engine": "InnoDB",
"field_order": [
"target_doctype",
"formula_storage",
"formula_fields",
"test",
"test_copy"
],
"fields": [
{
"fieldname": "target_doctype",
"fieldtype": "Link",
"label": "target_doctype",
"options": "DocType"
},
{
"fieldname": "formula_storage",
"fieldtype": "Text",
"label": "formula_storage"
},
{
"fieldname": "formula_fields",
"fieldtype": "Section Break",
"label": "formula_fields"
},
{
"fieldname": "test",
"fieldtype": "Int",
"label": "test"
},
{
"fieldname": "test_copy",
"fieldtype": "Int",
"label": "test Copy"
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2025-02-20 15:52:59.048027",
"modified_by": "Administrator",
"module": "Jey Erp",
"name": "Formula Editor",
"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": "creation",
"sort_order": "DESC",
"states": []
}

View File

@ -1,9 +0,0 @@
# Copyright (c) 2025, JeyERP and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class FormulaEditor(Document):
pass

View File

@ -1,30 +0,0 @@
# Copyright (c) 2025, JeyERP and Contributors
# See license.txt
# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase
# On IntegrationTestCase, the doctype test records and all
# link-field test record depdendencies are recursively loaded
# Use these module variables to add/remove to/from that list
EXTRA_TEST_RECORD_DEPENDENCIES = [] # eg. ["User"]
IGNORE_TEST_RECORD_DEPENDENCIES = [] # eg. ["User"]
class UnitTestFormulaEditor(UnitTestCase):
"""
Unit tests for FormulaEditor.
Use this class for testing individual functions and methods.
"""
pass
class IntegrationTestFormulaEditor(IntegrationTestCase):
"""
Integration tests for FormulaEditor.
Use this class for testing interactions between multiple components.
"""
pass