From a06c4cf35646851697350447586defd098239b0c Mon Sep 17 00:00:00 2001 From: rocketdebris Date: Tue, 10 Feb 2026 15:47:02 -0500 Subject: [PATCH] Added missing Quotation Template doctype to the codebase. --- .../doctype/quotation_template/__init__.py | 0 .../quotation_template/quotation_template.js | 8 ++ .../quotation_template.json | 102 ++++++++++++++++++ .../quotation_template/quotation_template.py | 9 ++ .../test_quotation_template.py | 9 ++ 5 files changed, 128 insertions(+) create mode 100644 custom_ui/custom_ui/doctype/quotation_template/__init__.py create mode 100644 custom_ui/custom_ui/doctype/quotation_template/quotation_template.js create mode 100644 custom_ui/custom_ui/doctype/quotation_template/quotation_template.json create mode 100644 custom_ui/custom_ui/doctype/quotation_template/quotation_template.py create mode 100644 custom_ui/custom_ui/doctype/quotation_template/test_quotation_template.py diff --git a/custom_ui/custom_ui/doctype/quotation_template/__init__.py b/custom_ui/custom_ui/doctype/quotation_template/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/custom_ui/custom_ui/doctype/quotation_template/quotation_template.js b/custom_ui/custom_ui/doctype/quotation_template/quotation_template.js new file mode 100644 index 0000000..04bf13e --- /dev/null +++ b/custom_ui/custom_ui/doctype/quotation_template/quotation_template.js @@ -0,0 +1,8 @@ +// Copyright (c) 2026, Shiloh Code LLC and contributors +// For license information, please see license.txt + +// frappe.ui.form.on("Quotation Template", { +// refresh(frm) { + +// }, +// }); diff --git a/custom_ui/custom_ui/doctype/quotation_template/quotation_template.json b/custom_ui/custom_ui/doctype/quotation_template/quotation_template.json new file mode 100644 index 0000000..5a1b52f --- /dev/null +++ b/custom_ui/custom_ui/doctype/quotation_template/quotation_template.json @@ -0,0 +1,102 @@ +{ + "actions": [], + "allow_rename": 1, + "creation": "2026-02-09 03:55:24.854156", + "doctype": "DocType", + "engine": "InnoDB", + "field_order": [ + "template_name", + "is_active", + "description", + "source_quotation", + "validity_days", + "items", + "company", + "project_template" + ], + "fields": [ + { + "description": "Human readable name", + "fieldname": "template_name", + "fieldtype": "Data", + "in_list_view": 1, + "label": "Template Name", + "reqd": 1, + "unique": 1 + }, + { + "default": "1", + "description": "Hide old templates", + "fieldname": "is_active", + "fieldtype": "Check", + "label": "Active" + }, + { + "description": "Optional", + "fieldname": "description", + "fieldtype": "Small Text", + "label": "Description" + }, + { + "description": "Audit trail", + "fieldname": "source_quotation", + "fieldtype": "Link", + "label": "Created From Quotation", + "options": "Quotation" + }, + { + "default": "30", + "description": "Quote valid for", + "fieldname": "validity_days", + "fieldtype": "Int", + "label": "Default Validity Days" + }, + { + "fieldname": "items", + "fieldtype": "Table", + "label": "Items", + "options": "Quotation Template Item", + "reqd": 1 + }, + { + "fieldname": "company", + "fieldtype": "Link", + "label": "Company", + "options": "Company" + }, + { + "description": "The project that this Quotation will eventually generate.", + "fieldname": "project_template", + "fieldtype": "Link", + "label": "Project Template", + "options": "Project Template" + } + ], + "grid_page_length": 50, + "index_web_pages_for_search": 1, + "links": [], + "modified": "2026-02-10 10:46:08.039510", + "modified_by": "Administrator", + "module": "Custom UI", + "name": "Quotation Template", + "owner": "Administrator", + "permissions": [ + { + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "System Manager", + "share": 1, + "write": 1 + } + ], + "row_format": "Dynamic", + "rows_threshold_for_grid_search": 20, + "sort_field": "modified", + "sort_order": "DESC", + "states": [] +} \ No newline at end of file diff --git a/custom_ui/custom_ui/doctype/quotation_template/quotation_template.py b/custom_ui/custom_ui/doctype/quotation_template/quotation_template.py new file mode 100644 index 0000000..1a1368e --- /dev/null +++ b/custom_ui/custom_ui/doctype/quotation_template/quotation_template.py @@ -0,0 +1,9 @@ +# Copyright (c) 2026, Shiloh Code LLC and contributors +# For license information, please see license.txt + +# import frappe +from frappe.model.document import Document + + +class QuotationTemplate(Document): + pass diff --git a/custom_ui/custom_ui/doctype/quotation_template/test_quotation_template.py b/custom_ui/custom_ui/doctype/quotation_template/test_quotation_template.py new file mode 100644 index 0000000..c9088a0 --- /dev/null +++ b/custom_ui/custom_ui/doctype/quotation_template/test_quotation_template.py @@ -0,0 +1,9 @@ +# Copyright (c) 2026, Shiloh Code LLC and Contributors +# See license.txt + +# import frappe +from frappe.tests.utils import FrappeTestCase + + +class TestQuotationTemplate(FrappeTestCase): + pass