Browse Source

Torque table column doctype delete

version2
venkata akhil 11 months ago
parent
commit
fc3a0b75f9
  1. 0
      smart_service/phase_2/doctype/torque_table_column/__init__.py
  2. 8
      smart_service/phase_2/doctype/torque_table_column/test_torque_table_column.py
  3. 18
      smart_service/phase_2/doctype/torque_table_column/torque_table_column.js
  4. 66
      smart_service/phase_2/doctype/torque_table_column/torque_table_column.json
  5. 17
      smart_service/phase_2/doctype/torque_table_column/torque_table_column.py

0
smart_service/phase_2/doctype/torque_table_column/__init__.py

8
smart_service/phase_2/doctype/torque_table_column/test_torque_table_column.py

@ -1,8 +0,0 @@
# Copyright (c) 2023, Hard n Soft Technologies Pvt Ltd and Contributors
# See license.txt
# import frappe
import unittest
class TestTorqueTableColumn(unittest.TestCase):
pass

18
smart_service/phase_2/doctype/torque_table_column/torque_table_column.js

@ -1,18 +0,0 @@
// Copyright (c) 2023, Hard n Soft Technologies Pvt Ltd and contributors
// For license information, please see license.txt
frappe.ui.form.on('Torque Table Column', {
// refresh: function(frm) {
// }
});
frappe.ui.form.on('Torque Table Column Child Table', {
torque_table_columns_add: function(frm,cdt,cdn) {
var child = locals[cdt][cdn];
// if(!child.column_name){
// frappe.msgprint("should add data")
// console.log("column_name"+child.column_name)
// }
}
});

66
smart_service/phase_2/doctype/torque_table_column/torque_table_column.json

@ -1,66 +0,0 @@
{
"actions": [],
"allow_rename": 1,
"autoname": "format:{variant}",
"creation": "2023-12-08 14:40:14.464142",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"variant",
"vehicle",
"section_break_bytf4",
"torque_table_columns"
],
"fields": [
{
"fieldname": "variant",
"fieldtype": "Link",
"in_list_view": 1,
"label": "Variant",
"options": "Variant Mapping",
"reqd": 1
},
{
"fetch_from": "variant.vehicle",
"fieldname": "vehicle",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Vehicle",
"reqd": 1
},
{
"fieldname": "section_break_bytf4",
"fieldtype": "Section Break"
},
{
"fieldname": "torque_table_columns",
"fieldtype": "Table",
"label": "Torque Table Columns",
"options": "Torque Table Column Child Table"
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2023-12-12 12:09:57.530576",
"modified_by": "Administrator",
"module": "Phase-2",
"name": "Torque Table Column",
"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"
}

17
smart_service/phase_2/doctype/torque_table_column/torque_table_column.py

@ -1,17 +0,0 @@
# Copyright (c) 2023, Hard n Soft Technologies Pvt Ltd and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class TorqueTableColumn(Document):
pass
# def generate_col_seq(col_data):
# try:
# except Exception as e:
# return str(e)
Loading…
Cancel
Save