Browse Source

Final update

master
hns 3 years ago
parent
commit
cb204f7542
  1. 44
      smart_service.egg-info/SOURCES.txt
  2. BIN
      smart_service/__pycache__/hooks.cpython-38.pyc
  3. 3
      smart_service/add_ons/doctype/application_menu/application_menu.json
  4. 6
      smart_service/add_ons/doctype/circular/circular.json
  5. 11
      smart_service/add_ons/doctype/user_feedback/user_feedback.json
  6. 3
      smart_service/add_ons/doctype/user_feedback_types/user_feedback_types.json
  7. 4
      smart_service/add_ons/doctype/user_manual/user_manual.json
  8. BIN
      smart_service/add_ons/report/feedback_report/__pycache__/feedback_report.cpython-38.pyc
  9. 4
      smart_service/add_ons/report/feedback_report/feedback_report.py
  10. BIN
      smart_service/add_ons/report/model_download_report/__pycache__/model_download_report.cpython-38.pyc
  11. 4
      smart_service/add_ons/report/model_download_report/model_download_report.py
  12. BIN
      smart_service/add_ons/report/model_hit_report/__pycache__/model_hit_report.cpython-38.pyc
  13. 2
      smart_service/add_ons/report/model_hit_report/model_hit_report.py
  14. BIN
      smart_service/apis/__pycache__/addon_api.cpython-38.pyc
  15. BIN
      smart_service/apis/__pycache__/app_user_login.cpython-38.pyc
  16. BIN
      smart_service/apis/__pycache__/publish_api.cpython-38.pyc
  17. BIN
      smart_service/apis/__pycache__/update_validation.cpython-38.pyc
  18. 8
      smart_service/apis/addon_api.py
  19. 18
      smart_service/apis/app_user_login.py
  20. 6
      smart_service/apis/publish_api.py
  21. 14
      smart_service/apis/update_validation.py
  22. 43
      smart_service/fixtures/custom_field.json
  23. BIN
      smart_service/mahindra_smart_service/report/_applog_translation/__pycache__/_applog_translation.cpython-38.pyc
  24. 6
      smart_service/mahindra_smart_service/report/_applog_translation/_applog_translation.py
  25. BIN
      smart_service/mahindra_smart_service/report/_file_structure/__pycache__/_file_structure.cpython-38.pyc
  26. 2
      smart_service/mahindra_smart_service/report/_file_structure/_file_structure.py
  27. BIN
      smart_service/mahindra_smart_service/report/installation_report/__pycache__/installation_report.cpython-38.pyc
  28. 6
      smart_service/mahindra_smart_service/report/installation_report/installation_report.py
  29. BIN
      smart_service/mahindra_smart_service/report/login_report/__pycache__/login_report.cpython-38.pyc
  30. 7
      smart_service/mahindra_smart_service/report/login_report/login_report.py
  31. 0
      smart_service/masters/doctype/asset_360/__init__.py
  32. BIN
      smart_service/masters/doctype/asset_360/__pycache__/__init__.cpython-38.pyc
  33. BIN
      smart_service/masters/doctype/asset_360/__pycache__/asset_360.cpython-38.pyc
  34. 8
      smart_service/masters/doctype/asset_360/asset_360.js
  35. 110
      smart_service/masters/doctype/asset_360/asset_360.json
  36. 8
      smart_service/masters/doctype/asset_360/asset_360.py
  37. 8
      smart_service/masters/doctype/asset_360/test_asset_360.py
  38. 0
      smart_service/masters/doctype/asset_360_hotspot_items/__init__.py
  39. BIN
      smart_service/masters/doctype/asset_360_hotspot_items/__pycache__/__init__.cpython-38.pyc
  40. BIN
      smart_service/masters/doctype/asset_360_hotspot_items/__pycache__/asset_360_hotspot_items.cpython-38.pyc
  41. 39
      smart_service/masters/doctype/asset_360_hotspot_items/asset_360_hotspot_items.json
  42. 8
      smart_service/masters/doctype/asset_360_hotspot_items/asset_360_hotspot_items.py
  43. 0
      smart_service/masters/doctype/competitor/__init__.py
  44. BIN
      smart_service/masters/doctype/competitor/__pycache__/__init__.cpython-38.pyc
  45. BIN
      smart_service/masters/doctype/competitor/__pycache__/competitor.cpython-38.pyc
  46. 8
      smart_service/masters/doctype/competitor/competitor.js
  47. 67
      smart_service/masters/doctype/competitor/competitor.json
  48. 8
      smart_service/masters/doctype/competitor/competitor.py
  49. 8
      smart_service/masters/doctype/competitor/test_competitor.py
  50. 6
      smart_service/masters/doctype/custom_languages/custom_languages.json
  51. 0
      smart_service/masters/doctype/customer_profile/__init__.py
  52. BIN
      smart_service/masters/doctype/customer_profile/__pycache__/__init__.cpython-38.pyc
  53. BIN
      smart_service/masters/doctype/customer_profile/__pycache__/customer_profile.cpython-38.pyc
  54. 8
      smart_service/masters/doctype/customer_profile/customer_profile.js
  55. 81
      smart_service/masters/doctype/customer_profile/customer_profile.json
  56. 8
      smart_service/masters/doctype/customer_profile/customer_profile.py
  57. 8
      smart_service/masters/doctype/customer_profile/test_customer_profile.py
  58. 0
      smart_service/masters/doctype/dealer/__init__.py
  59. BIN
      smart_service/masters/doctype/dealer/__pycache__/__init__.cpython-38.pyc
  60. BIN
      smart_service/masters/doctype/dealer/__pycache__/dealer.cpython-38.pyc
  61. 8
      smart_service/masters/doctype/dealer/dealer.js
  62. 61
      smart_service/masters/doctype/dealer/dealer.json
  63. 8
      smart_service/masters/doctype/dealer/dealer.py
  64. 8
      smart_service/masters/doctype/dealer/test_dealer.py
  65. 3
      smart_service/masters/doctype/drive/drive.json
  66. 39
      smart_service/masters/doctype/fuel/fuel.json
  67. 0
      smart_service/masters/doctype/gallery/__init__.py
  68. BIN
      smart_service/masters/doctype/gallery/__pycache__/__init__.cpython-38.pyc
  69. BIN
      smart_service/masters/doctype/gallery/__pycache__/gallery.cpython-38.pyc
  70. 8
      smart_service/masters/doctype/gallery/gallery.js
  71. 72
      smart_service/masters/doctype/gallery/gallery.json
  72. 8
      smart_service/masters/doctype/gallery/gallery.py
  73. 8
      smart_service/masters/doctype/gallery/test_gallery.py
  74. 0
      smart_service/masters/doctype/gallery_items/__init__.py
  75. BIN
      smart_service/masters/doctype/gallery_items/__pycache__/__init__.cpython-38.pyc
  76. BIN
      smart_service/masters/doctype/gallery_items/__pycache__/gallery_items.cpython-38.pyc
  77. 46
      smart_service/masters/doctype/gallery_items/gallery_items.json
  78. 8
      smart_service/masters/doctype/gallery_items/gallery_items.py
  79. 0
      smart_service/masters/doctype/idle_screen/__init__.py
  80. BIN
      smart_service/masters/doctype/idle_screen/__pycache__/__init__.cpython-38.pyc
  81. BIN
      smart_service/masters/doctype/idle_screen/__pycache__/idle_screen.cpython-38.pyc
  82. 8
      smart_service/masters/doctype/idle_screen/idle_screen.js
  83. 58
      smart_service/masters/doctype/idle_screen/idle_screen.json
  84. 8
      smart_service/masters/doctype/idle_screen/idle_screen.py
  85. 8
      smart_service/masters/doctype/idle_screen/test_idle_screen.py
  86. 0
      smart_service/masters/doctype/idle_screen_items/__init__.py
  87. BIN
      smart_service/masters/doctype/idle_screen_items/__pycache__/__init__.cpython-38.pyc
  88. BIN
      smart_service/masters/doctype/idle_screen_items/__pycache__/idle_screen_items.cpython-38.pyc
  89. 50
      smart_service/masters/doctype/idle_screen_items/idle_screen_items.json
  90. 8
      smart_service/masters/doctype/idle_screen_items/idle_screen_items.py
  91. 3
      smart_service/masters/doctype/service_kilometers/service_kilometers.json
  92. 0
      smart_service/masters/doctype/six_reasons_to_buy/__init__.py
  93. BIN
      smart_service/masters/doctype/six_reasons_to_buy/__pycache__/__init__.cpython-38.pyc
  94. BIN
      smart_service/masters/doctype/six_reasons_to_buy/__pycache__/six_reasons_to_buy.cpython-38.pyc
  95. 8
      smart_service/masters/doctype/six_reasons_to_buy/six_reasons_to_buy.js
  96. 73
      smart_service/masters/doctype/six_reasons_to_buy/six_reasons_to_buy.json
  97. 8
      smart_service/masters/doctype/six_reasons_to_buy/six_reasons_to_buy.py
  98. 8
      smart_service/masters/doctype/six_reasons_to_buy/test_six_reasons_to_buy.py
  99. 3
      smart_service/masters/doctype/sub_systems/sub_systems.json
  100. 3
      smart_service/masters/doctype/systems/systems.json

44
smart_service.egg-info/SOURCES.txt

@ -94,6 +94,10 @@ smart_service/add_ons/report/_test/__init__.py
smart_service/add_ons/report/_test/_test.js
smart_service/add_ons/report/_test/_test.json
smart_service/add_ons/report/_test/_test.py
smart_service/add_ons/report/feedback_report/__init__.py
smart_service/add_ons/report/feedback_report/feedback_report.js
smart_service/add_ons/report/feedback_report/feedback_report.json
smart_service/add_ons/report/feedback_report/feedback_report.py
smart_service/add_ons/report/installation_report/__init__.py
smart_service/add_ons/report/installation_report/installation_report.js
smart_service/add_ons/report/installation_report/installation_report.json
@ -102,6 +106,18 @@ smart_service/add_ons/report/login_report/__init__.py
smart_service/add_ons/report/login_report/login_report.js
smart_service/add_ons/report/login_report/login_report.json
smart_service/add_ons/report/login_report/login_report.py
smart_service/add_ons/report/model_download_report/__init__.py
smart_service/add_ons/report/model_download_report/model_download_report.js
smart_service/add_ons/report/model_download_report/model_download_report.json
smart_service/add_ons/report/model_download_report/model_download_report.py
smart_service/add_ons/report/model_hit_report/__init__.py
smart_service/add_ons/report/model_hit_report/model_hit_report.js
smart_service/add_ons/report/model_hit_report/model_hit_report.json
smart_service/add_ons/report/model_hit_report/model_hit_report.py
smart_service/add_ons/report/release_report/__init__.py
smart_service/add_ons/report/release_report/release_report.js
smart_service/add_ons/report/release_report/release_report.json
smart_service/add_ons/report/release_report/release_report.py
smart_service/apis/addon_api.py
smart_service/apis/app_user_login.py
smart_service/apis/master_api.py
@ -111,8 +127,7 @@ smart_service/apis/update_validation.py
smart_service/config/__init__.py
smart_service/config/desktop.py
smart_service/config/docs.py
smart_service/json_files/Thar-en -2022-01-10 15:02:15.309338'.json
smart_service/json_files/procedurePublish.json
smart_service/fixtures/custom_field.json
smart_service/mahindra_smart_service/__init__.py
smart_service/mahindra_smart_service/doctype/__init__.py
smart_service/mahindra_smart_service/doctype/release/__init__.py
@ -226,22 +241,6 @@ smart_service/masters/doctype/variant/test_variant.py
smart_service/masters/doctype/variant/variant.js
smart_service/masters/doctype/variant/variant.json
smart_service/masters/doctype/variant/variant.py
smart_service/masters/doctype/vehi/__init__.py
smart_service/masters/doctype/vehi/test_vehi.py
smart_service/masters/doctype/vehi/vehi.html
smart_service/masters/doctype/vehi/vehi.js
smart_service/masters/doctype/vehi/vehi.json
smart_service/masters/doctype/vehi/vehi.py
smart_service/masters/doctype/vehi_master/__init__.py
smart_service/masters/doctype/vehi_master/test_vehi_master.py
smart_service/masters/doctype/vehi_master/vehi_master.js
smart_service/masters/doctype/vehi_master/vehi_master.json
smart_service/masters/doctype/vehi_master/vehi_master.py
smart_service/masters/doctype/vehi_master_item/__init__.py
smart_service/masters/doctype/vehi_master_item/test_vehi_master_item.py
smart_service/masters/doctype/vehi_master_item/vehi_master_item.js
smart_service/masters/doctype/vehi_master_item/vehi_master_item.json
smart_service/masters/doctype/vehi_master_item/vehi_master_item.py
smart_service/masters/doctype/vehicle/__init__.py
smart_service/masters/doctype/vehicle/test_vehicle.py
smart_service/masters/doctype/vehicle/vehicle.js
@ -364,6 +363,15 @@ smart_service/transactions/doctype/variant_mapping_assets/variant_mapping_assets
smart_service/transactions/doctype/variant_mapping_sk/__init__.py
smart_service/transactions/doctype/variant_mapping_sk/variant_mapping_sk.json
smart_service/transactions/doctype/variant_mapping_sk/variant_mapping_sk.py
smart_service/transactions/report/__init__.py
smart_service/transactions/report/audit_report/__init__.py
smart_service/transactions/report/audit_report/audit_report.js
smart_service/transactions/report/audit_report/audit_report.json
smart_service/transactions/report/audit_report/audit_report.py
smart_service/transactions/report/kilometer_mapping/__init__.py
smart_service/transactions/report/kilometer_mapping/kilometer_mapping.js
smart_service/transactions/report/kilometer_mapping/kilometer_mapping.json
smart_service/transactions/report/kilometer_mapping/kilometer_mapping.py
smart_service/www/demofile2.txt
smart_service/www/login.html
smart_service/www/login.py

BIN
smart_service/__pycache__/hooks.cpython-38.pyc

Binary file not shown.

3
smart_service/add_ons/doctype/application_menu/application_menu.json

@ -32,13 +32,14 @@
"fieldtype": "Int",
"hidden": 1,
"in_list_view": 1,
"in_standard_filter": 1,
"label": "myID",
"set_only_once": 1
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2022-01-28 12:58:40.400099",
"modified": "2022-02-11 12:52:11.833682",
"modified_by": "Administrator",
"module": "Add Ons",
"name": "Application Menu",

6
smart_service/add_ons/doctype/circular/circular.json

@ -20,6 +20,7 @@
"fieldname": "title",
"fieldtype": "Data",
"in_list_view": 1,
"in_standard_filter": 1,
"label": "Title",
"reqd": 1
},
@ -27,6 +28,7 @@
"fieldname": "description",
"fieldtype": "Small Text",
"in_list_view": 1,
"in_standard_filter": 1,
"label": "Description",
"reqd": 1
},
@ -34,6 +36,7 @@
"fieldname": "status",
"fieldtype": "Select",
"in_list_view": 1,
"in_standard_filter": 1,
"label": "Status",
"options": "Active\nInactive",
"reqd": 1
@ -58,6 +61,7 @@
{
"fieldname": "valid_till",
"fieldtype": "Date",
"in_standard_filter": 1,
"label": "Valid Till"
},
{
@ -69,7 +73,7 @@
"index_web_pages_for_search": 1,
"is_submittable": 1,
"links": [],
"modified": "2022-02-04 10:27:12.813102",
"modified": "2022-02-11 12:53:44.581142",
"modified_by": "Administrator",
"module": "Add Ons",
"name": "Circular",

11
smart_service/add_ons/doctype/user_feedback/user_feedback.json

@ -23,6 +23,7 @@
"fieldname": "subject",
"fieldtype": "Data",
"in_list_view": 1,
"in_standard_filter": 1,
"label": "Subject",
"reqd": 1,
"set_only_once": 1
@ -35,6 +36,7 @@
"fieldname": "user_name",
"fieldtype": "Link",
"in_list_view": 1,
"in_standard_filter": 1,
"label": "User Name",
"options": "App Users",
"set_only_once": 1
@ -65,6 +67,8 @@
{
"fieldname": "description",
"fieldtype": "Text Editor",
"in_list_view": 1,
"in_standard_filter": 1,
"label": "Description",
"set_only_once": 1
},
@ -80,25 +84,30 @@
{
"fieldname": "attachments",
"fieldtype": "Int",
"in_list_view": 1,
"label": "Attachments",
"read_only": 1
},
{
"fieldname": "closure_date",
"fieldtype": "Datetime",
"in_list_view": 1,
"in_standard_filter": 1,
"label": "Closure Date",
"read_only": 1
},
{
"fieldname": "closed_by",
"fieldtype": "Data",
"in_list_view": 1,
"in_standard_filter": 1,
"label": "Closed By",
"read_only": 1
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2022-01-28 12:48:03.045078",
"modified": "2022-02-11 13:30:25.712932",
"modified_by": "Administrator",
"module": "Add Ons",
"name": "User Feedback",

3
smart_service/add_ons/doctype/user_feedback_types/user_feedback_types.json

@ -20,6 +20,7 @@
"fieldname": "status",
"fieldtype": "Select",
"in_list_view": 1,
"in_standard_filter": 1,
"label": "Status",
"options": "Active\nInactive",
"reqd": 1
@ -27,7 +28,7 @@
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2022-01-28 12:49:56.113178",
"modified": "2022-02-11 12:51:13.201263",
"modified_by": "Administrator",
"module": "Add Ons",
"name": "User Feedback_Types",

4
smart_service/add_ons/doctype/user_manual/user_manual.json

@ -15,6 +15,7 @@
"fieldname": "title",
"fieldtype": "Data",
"in_list_view": 1,
"in_standard_filter": 1,
"label": "Title",
"reqd": 1
},
@ -22,6 +23,7 @@
"fieldname": "description",
"fieldtype": "Small Text",
"in_list_view": 1,
"in_standard_filter": 1,
"label": "Description",
"reqd": 1
},
@ -34,7 +36,7 @@
"index_web_pages_for_search": 1,
"issingle": 1,
"links": [],
"modified": "2022-01-28 12:51:43.149442",
"modified": "2022-02-11 12:54:53.162278",
"modified_by": "Administrator",
"module": "Add Ons",
"name": "User Manual",

BIN
smart_service/add_ons/report/feedback_report/__pycache__/feedback_report.cpython-38.pyc

Binary file not shown.

4
smart_service/add_ons/report/feedback_report/feedback_report.py

@ -16,7 +16,7 @@ def get_data(filters):
current_db_name = frappe.conf.get("db_name")
data = frappe.db.sql("""select uf.name,uf.date,uf.subject,uf.user_name,uf.status,uf.attachments,uf.closure_date,uf.closed_by,
uf.description,uf.feedback_type,dealer.dealer_code,dealer.zone,dealer.dealer_name,uf.closure_date,uf.closed_by,
dealer.area,au.user_id,au.first_name from {0}.`tabUser Feedback` uf,{0}.`tabApp Dealer` dealer,{0}.`tabApp Users` au
dealer.area,au.user_id,concat_ws(' ',au.first_name,au.last_name) as user_name from {0}.`tabUser Feedback` uf,{0}.`tabApp Dealer` dealer,{0}.`tabApp Users` au
where uf.user_name = au.name and
(date(uf.modified) between '{1}' and '{2}') group by uf.name""".format(current_db_name,filters.get('from_date'), filters.get('to_date')), as_dict=1)
if data:
@ -34,7 +34,7 @@ def get_columns():
{"label": _("Attachments"), "fieldname": "attachments", "fieldtype": "Data", "width": 100},
{"label": _("Feedback Status"), "fieldname": "status", "fieldtype": "Data", "width": 100},
{"label": _("User ID"), "fieldname": "user_id", "fieldtype":"Data","width": 100},
{"label": _("User Name"), "fieldname": "first_name", "fieldtype": "Data", "width": 150},
{"label": _("User Name"), "fieldname": "user_name", "fieldtype": "Data", "width": 150},
{"label": _("Zone"), "fieldname": "zone", "fieldtype": "Data", "width": 100},
{"label": _("Dealer Location"), "fieldname": "area", "fieldtype": "Data", "width": 140},
{"label": _("Dealer Code"), "fieldname": "dealer_code", "fieldtype": "Data", "width": 120},

BIN
smart_service/add_ons/report/model_download_report/__pycache__/model_download_report.cpython-38.pyc

Binary file not shown.

4
smart_service/add_ons/report/model_download_report/model_download_report.py

@ -60,8 +60,8 @@ def get_columns():
{"label": _("<b>Device</b>"), "fieldname": "device_id", "fieldtype": "Data", "width": 100},
{"label": _("<b>Device Type</b>"), "fieldname": "device_type", "fieldtype": "Data", "width": 130},
{"label": _("<b>Downloaded Vehicle</b>"), "fieldname": "download_vehicle_id", "fieldtype": "Data", "width": 170},
{"label": _("<b>Downloaded Version</b>"), "fieldname": "download_vehicle_current_version", "fieldtype": "Data", "width": 250},
{"label": _("<b>Downloaded Language</b>"), "fieldname": "download_vehicle_language_id", "fieldtype": "Data", "width": 250},
{"label": _("<b>Downloaded Version</b>"), "fieldname": "download_vehicle_current_version", "fieldtype": "Data", "width": 150},
{"label": _("<b>Downloaded Language</b>"), "fieldname": "download_vehicle_language_id", "fieldtype": "Data", "width": 150},
{"label": _("<b>App Version</b>"), "fieldname": "app_version", "fieldtype": "Data", "width": 150}
]

BIN
smart_service/add_ons/report/model_hit_report/__pycache__/model_hit_report.cpython-38.pyc

Binary file not shown.

2
smart_service/add_ons/report/model_hit_report/model_hit_report.py

@ -55,7 +55,7 @@ def get_data(filters):
to_date=filters['to_date']
modelfilter=filters['model']
data = frappe.db.sql("""SELECT date as date, device_id, device_type, module_id, vehicle_id, variant_id, system_id, sub_system_id, procedure_id, steps_id, count(*) as count, user_id, language
data = frappe.db.sql("""SELECT date(date) as date, device_id, device_type, module_id, vehicle_id, variant_id, system_id, sub_system_id, procedure_id, steps_id, count(*) as count, user_id, language
FROM {0}.`tabModel Usage` WHERE vehicle_id='{1}' and (date(date) between '{2}' and '{3}')
GROUP BY date(date), user_id, module_id, device_id, vehicle_id, variant_id, variant_mapping_id, system_id, sub_system_id, procedure_id, steps_id, language;""".format(current_db_name, modelfilter, from_date, to_date), as_dict=1)

BIN
smart_service/apis/__pycache__/addon_api.cpython-38.pyc

Binary file not shown.

BIN
smart_service/apis/__pycache__/app_user_login.cpython-38.pyc

Binary file not shown.

BIN
smart_service/apis/__pycache__/publish_api.cpython-38.pyc

Binary file not shown.

BIN
smart_service/apis/__pycache__/update_validation.cpython-38.pyc

Binary file not shown.

8
smart_service/apis/addon_api.py

@ -8,10 +8,10 @@ current_db_name = frappe.conf.get("db_name")
@frappe.whitelist()
def addon(args):
if args == "circular":
api = frappe.db.get_list(
"Circular", fields=["name", "title", "status", "description","circular_image", "valid_till"],
filters={"valid_till": [">=", frappe.utils.today()]})
# api = frappe.db.get_list(
# "Circular", fields=["name", "title", "status", "description","circular_image", "valid_till"],
# filters={"valid_till": [">=", frappe.utils.today()]})
api = frappe.db.sql('''SELECT name,title,status,description,circular_image as FileUrl,valid_till as validity from {}.tabCircular WHERE valid_till >='{}' '''.format(current_db_name,frappe.utils.today()),as_dict= True)
for i in api:
if i["status"] == "Active":
i["status"] = True

18
smart_service/apis/app_user_login.py

@ -238,6 +238,15 @@ def grant_user_access(userdata,iid):
app_logs.date_time_stamp = now()
app_logs.insert()
app_logs3 = frappe.new_doc('App Log')
app_logs3.user = app_user1.name
app_logs3.device = app_device.name
app_logs3.type = 'Logged in'
app_logs3.latitude = latitude
app_logs3.longitude = longitude
app_logs3.date_time_stamp = now()
app_logs3.insert()
else:
app_user1=frappe.get_last_doc('App Users', filters={"email_id": email})
app_device1=frappe.get_last_doc('App Device', filters={"device_id": device_id})
@ -250,6 +259,15 @@ def grant_user_access(userdata,iid):
app_logs.date_time_stamp = now()
app_logs.save()
app_logs4 = frappe.new_doc('App Log')
app_logs4.user = app_user1.name
app_logs4.device = app_device.name
app_logs4.type = 'Logged in'
app_logs4.latitude = latitude
app_logs4.longitude = longitude
app_logs4.date_time_stamp = now()
app_logs4.save()
else :
frappe.db.sql('''UPDATE {4}.`tabApp Device` set last_logged_in= '{0}', user_name = '{2}', device_type = '{3}' where name = "{1}";'''.format(now(),iid,email,user_type_desc,current_db_name))

6
smart_service/apis/publish_api.py

@ -8,7 +8,6 @@ from frappe.utils import cstr
current_db_name = frappe.conf.get("db_name")
class Publish(Document):
pass
@ -46,15 +45,13 @@ def api_procedure(args, vehicle, language, version):
current_db_name, 'Published', 'Publish Ready', d['procedure_link'], d['system'], d['sub_system']))
frappe.db.commit()
file_name = "/public/files/json_files/%s-%s_v%s.json" % (vehicle, language, version)
file_name = "/files/json_files/%s-%s_v%s.json" % (vehicle, language, version)
return file_name
def json_grouping(args, language):
docs_child = frappe.db.get_list('Publish_Docs', filters={'parent': args},
fields=['variant_mapping', 'system', 'sub_system', 'procedure_status','procedure_link'])
lang = {'language': language}
variant = set()
system = {}
@ -165,6 +162,7 @@ def json_grouping(args, language):
system_out.append(sys)
variant_out['StepCount'] = count
variant_out['Variant']['Systems'] = system_out
final.append(variant_out)
frappe.db.sql(""" UPDATE %s.tabPublish SET publish_status = '%s' where name = '%s' """ % (

14
smart_service/apis/update_validation.py

@ -25,9 +25,8 @@ def check_all_vehicle_updates(vehicle_list):
v_id = v['Vehicle']
current_version = float(v['CurrentVersion'])
data1 = frappe.db.sql('''SELECT name,max(version) as version,vehicle_id,language FROM {}.tabPublish where vehicle='{}' and language='{}' and publish_status='Published'
and publish_type='{}' and vehicle_status='Active' order by version ASC;'''.format(current_db_name, v_id,
lang, publish_type[0][0]),
as_dict=True)
and publish_type='{}' and vehicle_status='Active' order by version ASC;'''.format(current_db_name, v_id,lang, publish_type[0][0]),as_dict=True)
if data1[0]['version'] != None:
if current_version == float(data1[0]['version']):
data1[0]['IsUpdateAvailable'] = "false"
@ -94,11 +93,10 @@ def check_vehicle_update(vehicle_list):
l_id = v['LanguageID']
current_version = v['CurrentVersion']
if publish_type == 'Internal':
publish_data = frappe.db.sql('''select name,CAST(version AS DECIMAL(10,2)) as version from {}.tabPublish where vehicle= '{}' and language='{}' and publish_type= '{}' and version > {} and vehicle_status = 'Active' and variant_mapping_status= 'Active';
publish_data = frappe.db.sql('''select name,CAST(version AS DECIMAL(10,2)) as version from {}.tabPublish where vehicle= '{}' and language='{}' and publish_type = '{}' and version > {} and vehicle_status = 'Active';
'''.format(current_db_name, vehicle, l_id, publish_type, current_version), as_dict=True)
else:
publish_data = frappe.db.sql('''select name,version from {}.tabPublish where vehicle= '{}' and language='{}' and publish_type= '{}' and version > {} and vehicle_status = 'Active' and variant_mapping_status= 'Active' ;
'''.format(current_db_name, vehicle, l_id, publish_type, current_version), as_dict=True)
publish_data = frappe.db.sql('''select name,version from {}.tabPublish where vehicle= '{}' and language='{}' and publish_type= '{}' and version > {} and vehicle_status = 'Active'; '''.format(current_db_name, vehicle, l_id, publish_type, current_version), as_dict=True)
if len(publish_data) > 0:
@ -212,10 +210,6 @@ def check_vehicle_update(vehicle_list):
else:
subsys['active_status'] = False
# kms = frappe.db.sql(
# '''SELECT kilometer as kilometer_name, idx as kilometer_IDX, applicable as kilometers_applicable FROM %s.`tabKilometer Mapping_Items` where sub_systems='%s' order by kilometer_IDX;''' % (
# current_db_name, j), as_dict=True)
kms = frappe.db.sql(
'''SELECT kilometer as kilometer_name, idx as kilometer_IDX, applicable as kilometers_applicable FROM {}.`tabKilometer Mapping_Items` where sub_systems='{}'
and parent Like '{}' and substring(parent,-5,2) = '{}' order by kilometer_IDX;'''.format(current_db_name, j, d+"%",l_id), as_dict=True)

43
smart_service/fixtures/custom_field.json

@ -1,43 +0,0 @@
[
{
"allow_on_submit": 0,
"bold": 0,
"collapsible": 0,
"collapsible_depends_on": null,
"columns": 0,
"default": null,
"depends_on": null,
"description": null,
"docstatus": 0,
"doctype": "Custom Field",
"dt": "User",
"fetch_from": null,
"fieldname": "pwd",
"fieldtype": "Data",
"hidden": 0,
"ignore_user_permissions": 0,
"ignore_xss_filter": 0,
"in_global_search": 0,
"in_list_view": 0,
"in_standard_filter": 0,
"insert_after": "new_password",
"label": "PWD",
"name": "User-pwd",
"no_copy": 0,
"options": "",
"permlevel": 0,
"precision": "",
"print_hide": 0,
"print_hide_if_no_value": 0,
"print_width": null,
"read_only": 0,
"report_hide": 0,
"reqd": 0,
"search_index": 0,
"translatable": 0,
"unique": 0,
"width": null
}
]

BIN
smart_service/mahindra_smart_service/report/_applog_translation/__pycache__/_applog_translation.cpython-38.pyc

Binary file not shown.

6
smart_service/mahindra_smart_service/report/_applog_translation/_applog_translation.py

@ -15,7 +15,7 @@ def execute(filters=None):
return columns, data
def get_data(filters):
data = frappe.db.sql("""select dealer.zone,au.user_id,au.first_name,dealer.dealer_code,dealer.area,dealer.dealer_name,ad.os,ad.os_version,
data = frappe.db.sql("""select dealer.zone,au.user_id,concat_ws(' ',au.first_name,au.last_name) as user_name,dealer.dealer_code,dealer.area,dealer.dealer_name,ad.os,ad.os_version,
al.device,ad.device_id,ad.app_current_version,al.type,al.date_time_stamp,al.creation
from `tabApp Log` al,`tabApp Device` ad,`tabApp Users` au,`tabApp Dealer` dealer
where
@ -28,10 +28,10 @@ def get_columns():
columns = [
{"label": _("<b>Zone</b>"), "fieldname": "zone", "fieldtype": "Data", "width": 150},
{"label": _("<b>Dealer Location</b>"), "fieldname": "area", "fieldtype":"Data","width": 150},
{"label": _("<b>Dealer code</b>"), "fieldname": "dealer_code", "fieldtype": "Data", "width": 150},
{"label": _("<b>Dealer Code</b>"), "fieldname": "dealer_code", "fieldtype": "Data", "width": 150},
{"label": _("<b>Dealer Name</b>"), "fieldname": "dealer_name", "fieldtype":"Data","width": 300},
{"label": _("<b>User ID</b>"), "fieldname": "user_id", "fieldtype": "Data", "width": 150},
{"label": _("<b>User Name</b>"), "fieldname": "first_name", "fieldtype": "Data", "width": 150},
{"label": _("<b>User Name</b>"), "fieldname": "user_name", "fieldtype": "Data", "width": 150},
{"label": _("<b>Device ID</b>"), "fieldname": "device_id", "fieldtype": "Data", "width": 150},
{"label": _("<b>Device OS</b>"), "fieldname": "os", "fieldtype": "Data", "width": 150},
{"label": _("<b>OS Version</b>"), "fieldname": "os_version", "fieldtype": "Data", "width": 150},

BIN
smart_service/mahindra_smart_service/report/_file_structure/__pycache__/_file_structure.cpython-38.pyc

Binary file not shown.

2
smart_service/mahindra_smart_service/report/_file_structure/_file_structure.py

@ -140,7 +140,7 @@ def get_columns():
},
{
"fieldname": "attached_to",
"label": _("<b>Attached to</b>"),
"label": _("<b>Attached To</b>"),
"fieldtype": 'Dynamic Link',
"options": "",
"width": 175

BIN
smart_service/mahindra_smart_service/report/installation_report/__pycache__/installation_report.cpython-38.pyc

Binary file not shown.

6
smart_service/mahindra_smart_service/report/installation_report/installation_report.py

@ -16,7 +16,7 @@ def execute(filters=None):
def get_data(filters):
current_db_name = frappe.conf.get("db_name")
data = frappe.db.sql("""select dealer.zone,au.user_id,au.first_name,dealer.dealer_code,dealer.dealer_name,dealer.area,ad.os,ad.os_version,
data = frappe.db.sql("""select dealer.zone,au.user_id,concat_ws(' ',au.first_name,au.last_name) as user_name,dealer.dealer_code,dealer.dealer_name,dealer.area,ad.os,ad.os_version,
al.device,ad.device_id,ad.app_current_version,al.type as type,ad.device_type,al.date_time_stamp,al.creation,al.date_time_stamp as date,al.date_time_stamp as time,time(al.date_time_stamp) as last_time
from {0}.`tabApp Log` al, {0}.`tabApp Device` ad, {0}.`tabApp Users` au, {0}.`tabApp Dealer` dealer
where
@ -33,14 +33,14 @@ def get_columns():
columns = [
{"label": _("Zone"), "fieldname": "zone", "fieldtype": "Data", "width": 100},
{"label": _("Dealer Location"), "fieldname": "area", "fieldtype":"Data","width": 150},
{"label": _("Dealer code"), "fieldname": "dealer_code", "fieldtype": "Data", "width": 100},
{"label": _("Dealer Code"), "fieldname": "dealer_code", "fieldtype": "Data", "width": 100},
{"label": _("Dealer Name"), "fieldname": "dealer_name", "fieldtype":"Data","width": 150},
{"label": _("Device"), "fieldname": "device_type", "fieldtype": "Data","width": 100},
{"label": _("Device ID"), "fieldname": "device_id", "fieldtype": "Data", "width": 100},
{"label": _("Device OS"), "fieldname": "os", "fieldtype": "Data", "width": 100},
{"label": _("OS Version"), "fieldname": "os_version", "fieldtype": "Data", "width": 100},
{"label": _("User ID"), "fieldname": "user_id", "fieldtype": "Data", "width": 100},
{"label": _("User Name"), "fieldname": "first_name", "fieldtype": "Data", "width": 100},
{"label": _("User Name"), "fieldname": "user_name", "fieldtype": "Data", "width": 100},
{"label": _("Activity Type"), "fieldname": "type", "fieldtype": "Data","width": 100},
{"label": _("App Installation Date"), "fieldname": "date_time_stamp", "fieldtype": "DateTime","width": 200},
{"label": _("App Last Accessed Date"), "fieldname": "date", "fieldtype": "DateTime","width": 200},

BIN
smart_service/mahindra_smart_service/report/login_report/__pycache__/login_report.cpython-38.pyc

Binary file not shown.

7
smart_service/mahindra_smart_service/report/login_report/login_report.py

@ -20,7 +20,8 @@ def get_data(filters):
current_db_name = frappe.conf.get("db_name")
from_date = filters.get('from_date')
to_date = filters.get('to_date')
data = frappe.db.sql("""select count(al.name) as count,dealer.zone,au.user_id,au.first_name,dealer.dealer_code,dealer.dealer_name,dealer.area,ad.os,ad.os_version,
data = frappe.db.sql("""select count(al.name) as count,dealer.zone,au.user_id,concat_ws(' ',au.first_name,au.last_name) as user_name,
dealer.dealer_code,dealer.dealer_name,dealer.area,ad.os,ad.os_version,
ad.device_type,ad.device_id,ad.app_current_version,al.type,al.latitude,al.longitude,al.date_time_stamp,al.creation,
date(al.date_time_stamp) as date,time(al.date_time_stamp) as time
from {0}.`tabApp Log` al,{0}.`tabApp Device` ad,{0}.`tabApp Users` au,{0}.`tabApp Dealer` dealer
@ -39,12 +40,12 @@ def get_columns():
{"label": _("Time"), "fieldname": "time", "fieldtype": "DateTime", "width": 130},
{"label": _("Zone"), "fieldname": "zone", "fieldtype": "Data", "width": 100},
{"label": _("Dealer Location"), "fieldname": "area", "fieldtype": "Data", "width": 100},
{"label": _("Dealer code"), "fieldname": "dealer_code", "fieldtype": "Data", "width": 150},
{"label": _("Dealer Code"), "fieldname": "dealer_code", "fieldtype": "Data", "width": 150},
{"label": _("Dealer Name"), "fieldname": "dealer_name", "fieldtype":"Data","width": 150},
{"label": _("Device"), "fieldname": "device_type", "fieldtype": "Data", "width": 100},
{"label": _("Device ID"), "fieldname": "device_id", "fieldtype": "Data", "width": 150},
{"label": _("User ID"), "fieldname": "user_id", "fieldtype": "Data", "width": 150},
{"label": _("User Name"), "fieldname": "first_name", "fieldtype": "Data", "width": 100},
{"label": _("User Name"), "fieldname": "user_name", "fieldtype": "Data", "width": 100},
{"label": _("Latitude"), "fieldname": "latitude", "fieldtype": "Data", "width": 100},
{"label": _("Longitude"), "fieldname": "longitude", "fieldtype": "Data", "width": 100},
{"label": _("Count"), "fieldname": "count", "fieldtype": "Data", "width": 100},

0
smart_service/masters/doctype/asset_360/__init__.py

BIN
smart_service/masters/doctype/asset_360/__pycache__/__init__.cpython-38.pyc

Binary file not shown.

BIN
smart_service/masters/doctype/asset_360/__pycache__/asset_360.cpython-38.pyc

Binary file not shown.

8
smart_service/masters/doctype/asset_360/asset_360.js

@ -0,0 +1,8 @@
// Copyright (c) 2022, Hard n Soft Technologies Pvt Ltd and contributors
// For license information, please see license.txt
frappe.ui.form.on('Asset 360', {
// refresh: function(frm) {
// }
});

110
smart_service/masters/doctype/asset_360/asset_360.json

@ -0,0 +1,110 @@
{
"actions": [],
"autoname": "format:{vehicle}",
"creation": "2022-02-13 21:28:52.997368",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"vehicle",
"column_break_2",
"active_status",
"exterior_360_section",
"hero_shot",
"exterior_360_asset",
"exterior_360_hotspots",
"interior_360_section",
"interior_360_asset",
"interior_360_hotspots"
],
"fields": [
{
"fieldname": "vehicle",
"fieldtype": "Link",
"in_list_view": 1,
"label": "Vehicle",
"options": "Vehicle",
"reqd": 1
},
{
"fieldname": "column_break_2",
"fieldtype": "Column Break"
},
{
"fieldname": "active_status",
"fieldtype": "Select",
"in_list_view": 1,
"label": "Active Status",
"options": "Active\nInactive",
"reqd": 1
},
{
"fieldname": "exterior_360_section",
"fieldtype": "Section Break",
"label": "Exterior 360"
},
{
"fieldname": "exterior_360_asset",
"fieldtype": "Attach",
"in_list_view": 1,
"label": "Exterior 360 Asset",
"reqd": 1
},
{
"fieldname": "exterior_360_hotspots",
"fieldtype": "Table",
"label": "Exterior 360 Hotspots",
"options": "Asset 360 Hotspot Items"
},
{
"fieldname": "interior_360_section",
"fieldtype": "Section Break",
"label": "Interior 360"
},
{
"fieldname": "interior_360_asset",
"fieldtype": "Attach",
"in_list_view": 1,
"label": "Interior 360 Asset",
"reqd": 1
},
{
"fieldname": "interior_360_hotspots",
"fieldtype": "Table",
"label": "Interior 360 Hotspots",
"options": "Asset 360 Hotspot Items"
},
{
"description": "for Info stand",
"fieldname": "hero_shot",
"fieldtype": "Attach Image",
"label": "Hero Shot"
}
],
"image_field": "hero_shot",
"index_web_pages_for_search": 1,
"links": [],
"modified": "2022-02-13 21:32:04.109344",
"modified_by": "Administrator",
"module": "Masters",
"name": "Asset 360",
"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",
"title_field": "vehicle",
"track_changes": 1
}

8
smart_service/masters/doctype/asset_360/asset_360.py

@ -0,0 +1,8 @@
# Copyright (c) 2022, Hard n Soft Technologies Pvt Ltd and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class Asset360(Document):
pass

8
smart_service/masters/doctype/asset_360/test_asset_360.py

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

0
smart_service/masters/doctype/asset_360_hotspot_items/__init__.py

BIN
smart_service/masters/doctype/asset_360_hotspot_items/__pycache__/__init__.cpython-38.pyc

Binary file not shown.

BIN
smart_service/masters/doctype/asset_360_hotspot_items/__pycache__/asset_360_hotspot_items.cpython-38.pyc

Binary file not shown.

39
smart_service/masters/doctype/asset_360_hotspot_items/asset_360_hotspot_items.json

@ -0,0 +1,39 @@
{
"actions": [],
"creation": "2022-02-13 21:27:45.788343",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"hotspot_id",
"remarks"
],
"fields": [
{
"columns": 3,
"fieldname": "hotspot_id",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Hotspot ID",
"reqd": 1
},
{
"columns": 7,
"fieldname": "remarks",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Remarks"
}
],
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2022-02-13 21:27:45.788343",
"modified_by": "Administrator",
"module": "Masters",
"name": "Asset 360 Hotspot Items",
"owner": "Administrator",
"permissions": [],
"sort_field": "modified",
"sort_order": "DESC"
}

8
smart_service/masters/doctype/asset_360_hotspot_items/asset_360_hotspot_items.py

@ -0,0 +1,8 @@
# Copyright (c) 2022, Hard n Soft Technologies Pvt Ltd and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class Asset360HotspotItems(Document):
pass

0
smart_service/masters/doctype/competitor/__init__.py

BIN
smart_service/masters/doctype/competitor/__pycache__/__init__.cpython-38.pyc

Binary file not shown.

BIN
smart_service/masters/doctype/competitor/__pycache__/competitor.cpython-38.pyc

Binary file not shown.

8
smart_service/masters/doctype/competitor/competitor.js

@ -0,0 +1,8 @@
// Copyright (c) 2022, Hard n Soft Technologies Pvt Ltd and contributors
// For license information, please see license.txt
frappe.ui.form.on('Competitor', {
// refresh: function(frm) {
// }
});

67
smart_service/masters/doctype/competitor/competitor.json

@ -0,0 +1,67 @@
{
"actions": [],
"autoname": "format:{vehicle_name}",
"creation": "2022-02-13 19:33:17.995623",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"vehicle_name",
"variant",
"active_status",
"image"
],
"fields": [
{
"fieldname": "vehicle_name",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Vehicle Name",
"reqd": 1
},
{
"fieldname": "active_status",
"fieldtype": "Select",
"in_list_view": 1,
"label": "Active Status",
"options": "Active\nInactive",
"reqd": 1
},
{
"fieldname": "image",
"fieldtype": "Attach Image",
"label": "Image"
},
{
"fieldname": "variant",
"fieldtype": "Data",
"label": "Variant"
}
],
"image_field": "image",
"index_web_pages_for_search": 1,
"links": [],
"modified": "2022-02-13 19:43:53.741741",
"modified_by": "Administrator",
"module": "Masters",
"name": "Competitor",
"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",
"title_field": "vehicle_name",
"track_changes": 1
}

8
smart_service/masters/doctype/competitor/competitor.py

@ -0,0 +1,8 @@
# Copyright (c) 2022, Hard n Soft Technologies Pvt Ltd and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class Competitor(Document):
pass

8
smart_service/masters/doctype/competitor/test_competitor.py

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

6
smart_service/masters/doctype/custom_languages/custom_languages.json

@ -18,6 +18,7 @@
"fieldname": "lang_code",
"fieldtype": "Link",
"in_list_view": 1,
"in_standard_filter": 1,
"label": "Lang Code",
"options": "Language",
"reqd": 1
@ -38,6 +39,7 @@
"fieldname": "active_status",
"fieldtype": "Select",
"in_list_view": 1,
"in_standard_filter": 1,
"label": "Active Status",
"options": "Active\nInactive",
"reqd": 1
@ -46,6 +48,7 @@
"fieldname": "display_order",
"fieldtype": "Int",
"in_list_view": 1,
"in_standard_filter": 1,
"label": "Display Order",
"reqd": 1
},
@ -53,6 +56,7 @@
"fieldname": "myid",
"fieldtype": "Int",
"in_list_view": 1,
"in_standard_filter": 1,
"label": "myID",
"read_only": 1,
"set_only_once": 1
@ -60,7 +64,7 @@
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2022-01-18 16:41:19.156174",
"modified": "2022-02-11 12:41:29.369497",
"modified_by": "Administrator",
"module": "Masters",
"name": "Custom Languages",

0
smart_service/masters/doctype/customer_profile/__init__.py

BIN
smart_service/masters/doctype/customer_profile/__pycache__/__init__.cpython-38.pyc

Binary file not shown.

BIN
smart_service/masters/doctype/customer_profile/__pycache__/customer_profile.cpython-38.pyc

Binary file not shown.

8
smart_service/masters/doctype/customer_profile/customer_profile.js

@ -0,0 +1,8 @@
// Copyright (c) 2022, Hard n Soft Technologies Pvt Ltd and contributors
// For license information, please see license.txt
frappe.ui.form.on('Customer Profile', {
// refresh: function(frm) {
// }
});

81
smart_service/masters/doctype/customer_profile/customer_profile.json

@ -0,0 +1,81 @@
{
"actions": [],
"autoname": "CUST.#####",
"creation": "2022-02-13 20:55:57.161845",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"name1",
"mobile",
"email",
"column_break_4",
"dealer_code",
"registration_time"
],
"fields": [
{
"fieldname": "name1",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Name",
"options": "Name",
"reqd": 1
},
{
"fieldname": "mobile",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Mobile",
"options": "Phone",
"reqd": 1
},
{
"fieldname": "email",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Email",
"options": "Email",
"reqd": 1
},
{
"fieldname": "column_break_4",
"fieldtype": "Column Break"
},
{
"fieldname": "dealer_code",
"fieldtype": "Link",
"label": "Dealer Code",
"options": "Dealer"
},
{
"fieldname": "registration_time",
"fieldtype": "Data",
"label": "Registration Time"
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2022-02-15 10:02:07.864699",
"modified_by": "Administrator",
"module": "Masters",
"name": "Customer Profile",
"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",
"track_changes": 1
}

8
smart_service/masters/doctype/customer_profile/customer_profile.py

@ -0,0 +1,8 @@
# Copyright (c) 2022, Hard n Soft Technologies Pvt Ltd and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class CustomerProfile(Document):
pass

8
smart_service/masters/doctype/customer_profile/test_customer_profile.py

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

0
smart_service/masters/doctype/dealer/__init__.py

BIN
smart_service/masters/doctype/dealer/__pycache__/__init__.cpython-38.pyc

Binary file not shown.

BIN
smart_service/masters/doctype/dealer/__pycache__/dealer.cpython-38.pyc

Binary file not shown.

8
smart_service/masters/doctype/dealer/dealer.js

@ -0,0 +1,8 @@
// Copyright (c) 2022, Hard n Soft Technologies Pvt Ltd and contributors
// For license information, please see license.txt
frappe.ui.form.on('Dealer', {
// refresh: function(frm) {
// }
});

61
smart_service/masters/doctype/dealer/dealer.json

@ -0,0 +1,61 @@
{
"actions": [],
"autoname": "format:{dealer_name}",
"creation": "2022-02-13 20:51:54.246914",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"dealer_name",
"dealer_code",
"mobile_number"
],
"fields": [
{
"fieldname": "dealer_name",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Dealer Name",
"reqd": 1
},
{
"fieldname": "dealer_code",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Dealer Code",
"reqd": 1
},
{
"fieldname": "mobile_number",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Mobile Number",
"reqd": 1
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2022-02-13 20:51:54.246914",
"modified_by": "Administrator",
"module": "Masters",
"name": "Dealer",
"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",
"title_field": "dealer_name",
"track_changes": 1
}

8
smart_service/masters/doctype/dealer/dealer.py

@ -0,0 +1,8 @@
# Copyright (c) 2022, Hard n Soft Technologies Pvt Ltd and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class Dealer(Document):
pass

8
smart_service/masters/doctype/dealer/test_dealer.py

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

3
smart_service/masters/doctype/drive/drive.json

@ -35,13 +35,14 @@
"fieldtype": "Int",
"hidden": 1,
"in_list_view": 1,
"in_standard_filter": 1,
"label": "myID",
"set_only_once": 1
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2022-01-28 11:43:29.834686",
"modified": "2022-02-11 12:34:30.847569",
"modified_by": "Administrator",
"module": "Masters",
"name": "Drive",

39
smart_service/masters/doctype/fuel/fuel.json

@ -1,48 +1,25 @@
{
"actions": [],
"allow_import": 1,
"allow_rename": 1,
"autoname": "format: {fuel}",
"creation": "2021-10-28 13:06:03.207653",
"autoname": "format:{fuel_type}",
"creation": "2022-02-13 05:21:49.396717",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"fuel",
"active_status",
"myid"
"fuel_type"
],
"fields": [
{
"allow_in_quick_entry": 1,
"bold": 1,
"fieldname": "fuel",
"fieldname": "fuel_type",
"fieldtype": "Data",
"in_list_view": 1,
"in_preview": 1,
"in_standard_filter": 1,
"label": "Fuel",
"label": "Fuel Type",
"reqd": 1
},
{
"fieldname": "active_status",
"fieldtype": "Select",
"hidden": 1,
"label": "Active Status",
"options": "Active\nInactive"
},
{
"fieldname": "myid",
"fieldtype": "Int",
"hidden": 1,
"in_list_view": 1,
"label": "myID",
"set_only_once": 1
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2022-01-28 11:38:18.719814",
"modified": "2022-02-13 05:21:49.396717",
"modified_by": "Administrator",
"module": "Masters",
"name": "Fuel",
@ -61,9 +38,7 @@
"write": 1
}
],
"search_fields": "fuel",
"sort_field": "modified",
"sort_order": "DESC",
"title_field": "fuel",
"track_changes": 1
"title_field": "fuel_type"
}

0
smart_service/masters/doctype/gallery/__init__.py

BIN
smart_service/masters/doctype/gallery/__pycache__/__init__.cpython-38.pyc

Binary file not shown.

BIN
smart_service/masters/doctype/gallery/__pycache__/gallery.cpython-38.pyc

Binary file not shown.

8
smart_service/masters/doctype/gallery/gallery.js

@ -0,0 +1,8 @@
// Copyright (c) 2022, Hard n Soft Technologies Pvt Ltd and contributors
// For license information, please see license.txt
frappe.ui.form.on('Gallery', {
// refresh: function(frm) {
// }
});

72
smart_service/masters/doctype/gallery/gallery.json

@ -0,0 +1,72 @@
{
"actions": [],
"autoname": "format:{vehicle}",
"creation": "2022-02-13 04:51:17.414100",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"vehicle",
"column_break_2",
"active_status",
"section_break_4",
"gallery_items"
],
"fields": [
{
"fieldname": "vehicle",
"fieldtype": "Link",
"in_list_view": 1,
"label": "Vehicle",
"options": "Vehicle",
"reqd": 1
},
{
"fieldname": "column_break_2",
"fieldtype": "Column Break"
},
{
"fieldname": "active_status",
"fieldtype": "Select",
"in_list_view": 1,
"label": "Active Status",
"options": "Active\nInactive",
"reqd": 1
},
{
"fieldname": "section_break_4",
"fieldtype": "Section Break"
},
{
"fieldname": "gallery_items",
"fieldtype": "Table",
"label": "Gallery Items",
"options": "Gallery Items"
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2022-02-13 04:51:17.414100",
"modified_by": "Administrator",
"module": "Masters",
"name": "Gallery",
"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",
"title_field": "vehicle",
"track_changes": 1
}

8
smart_service/masters/doctype/gallery/gallery.py

@ -0,0 +1,8 @@
# Copyright (c) 2022, Hard n Soft Technologies Pvt Ltd and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class Gallery(Document):
pass

8
smart_service/masters/doctype/gallery/test_gallery.py

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

0
smart_service/masters/doctype/gallery_items/__init__.py

BIN
smart_service/masters/doctype/gallery_items/__pycache__/__init__.cpython-38.pyc

Binary file not shown.

BIN
smart_service/masters/doctype/gallery_items/__pycache__/gallery_items.cpython-38.pyc

Binary file not shown.

46
smart_service/masters/doctype/gallery_items/gallery_items.json

@ -0,0 +1,46 @@
{
"actions": [],
"creation": "2022-02-13 04:47:57.408390",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"gallery_item",
"preview",
"remarks"
],
"fields": [
{
"fieldname": "gallery_item",
"fieldtype": "Attach",
"in_list_view": 1,
"in_preview": 1,
"label": "Gallery Item",
"reqd": 1
},
{
"fieldname": "preview",
"fieldtype": "Image",
"label": "Preview",
"options": "gallery_item"
},
{
"fieldname": "remarks",
"fieldtype": "Data",
"in_list_view": 1,
"in_preview": 1,
"label": "Remarks"
}
],
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2022-02-13 04:47:57.408390",
"modified_by": "Administrator",
"module": "Masters",
"name": "Gallery Items",
"owner": "Administrator",
"permissions": [],
"sort_field": "modified",
"sort_order": "DESC"
}

8
smart_service/masters/doctype/gallery_items/gallery_items.py

@ -0,0 +1,8 @@
# Copyright (c) 2022, Hard n Soft Technologies Pvt Ltd and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class GalleryItems(Document):
pass

0
smart_service/masters/doctype/idle_screen/__init__.py

BIN
smart_service/masters/doctype/idle_screen/__pycache__/__init__.cpython-38.pyc

Binary file not shown.

BIN
smart_service/masters/doctype/idle_screen/__pycache__/idle_screen.cpython-38.pyc

Binary file not shown.

8
smart_service/masters/doctype/idle_screen/idle_screen.js

@ -0,0 +1,8 @@
// Copyright (c) 2022, Hard n Soft Technologies Pvt Ltd and contributors
// For license information, please see license.txt
frappe.ui.form.on('Idle Screen', {
// refresh: function(frm) {
// }
});

58
smart_service/masters/doctype/idle_screen/idle_screen.json

@ -0,0 +1,58 @@
{
"actions": [],
"autoname": "format:Idle_Screen",
"creation": "2022-02-13 21:40:33.755869",
"description": "- Set the Idle Time in minutes \n- Add the Assets (JPG, MP4)\n- Set Asset Status",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"idle_time",
"section_break_2",
"idle_screen_items"
],
"fields": [
{
"description": "mins",
"fieldname": "idle_time",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Idle Time",
"length": 2
},
{
"fieldname": "section_break_2",
"fieldtype": "Section Break"
},
{
"fieldname": "idle_screen_items",
"fieldtype": "Table",
"label": "Idle Screen Items",
"options": "Idle Screen Items"
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2022-02-13 22:02:32.320063",
"modified_by": "Administrator",
"module": "Masters",
"name": "Idle Screen",
"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",
"track_changes": 1
}

8
smart_service/masters/doctype/idle_screen/idle_screen.py

@ -0,0 +1,8 @@
# Copyright (c) 2022, Hard n Soft Technologies Pvt Ltd and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class IdleScreen(Document):
pass

8
smart_service/masters/doctype/idle_screen/test_idle_screen.py

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

0
smart_service/masters/doctype/idle_screen_items/__init__.py

BIN
smart_service/masters/doctype/idle_screen_items/__pycache__/__init__.cpython-38.pyc

Binary file not shown.

BIN
smart_service/masters/doctype/idle_screen_items/__pycache__/idle_screen_items.cpython-38.pyc

Binary file not shown.

50
smart_service/masters/doctype/idle_screen_items/idle_screen_items.json

@ -0,0 +1,50 @@
{
"actions": [],
"allow_rename": 1,
"creation": "2022-02-13 21:38:06.703121",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"idle_asset",
"active_status",
"remarks"
],
"fields": [
{
"columns": 3,
"fieldname": "idle_asset",
"fieldtype": "Attach",
"in_list_view": 1,
"label": "Idle Asset",
"reqd": 1
},
{
"columns": 2,
"fieldname": "active_status",
"fieldtype": "Select",
"in_list_view": 1,
"label": "Active Status",
"options": "Active\nInactive",
"reqd": 1
},
{
"columns": 5,
"fieldname": "remarks",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Remarks"
}
],
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2022-02-13 21:38:06.703121",
"modified_by": "Administrator",
"module": "Masters",
"name": "Idle Screen Items",
"owner": "Administrator",
"permissions": [],
"sort_field": "modified",
"sort_order": "DESC"
}

8
smart_service/masters/doctype/idle_screen_items/idle_screen_items.py

@ -0,0 +1,8 @@
# Copyright (c) 2022, Hard n Soft Technologies Pvt Ltd and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class IdleScreenItems(Document):
pass

3
smart_service/masters/doctype/service_kilometers/service_kilometers.json

@ -35,13 +35,14 @@
"fieldtype": "Int",
"hidden": 1,
"in_list_view": 1,
"in_standard_filter": 1,
"label": "myID",
"set_only_once": 1
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2022-01-28 11:38:37.902918",
"modified": "2022-02-11 12:33:08.426297",
"modified_by": "Administrator",
"module": "Masters",
"name": "Service Kilometers",

0
smart_service/masters/doctype/six_reasons_to_buy/__init__.py

BIN
smart_service/masters/doctype/six_reasons_to_buy/__pycache__/__init__.cpython-38.pyc

Binary file not shown.

BIN
smart_service/masters/doctype/six_reasons_to_buy/__pycache__/six_reasons_to_buy.cpython-38.pyc

Binary file not shown.

8
smart_service/masters/doctype/six_reasons_to_buy/six_reasons_to_buy.js

@ -0,0 +1,8 @@
// Copyright (c) 2022, Hard n Soft Technologies Pvt Ltd and contributors
// For license information, please see license.txt
frappe.ui.form.on('Six Reasons to Buy', {
// refresh: function(frm) {
// }
});

73
smart_service/masters/doctype/six_reasons_to_buy/six_reasons_to_buy.json

@ -0,0 +1,73 @@
{
"actions": [],
"autoname": "format:{vehicle}.{title}",
"creation": "2022-02-12 20:05:59.552613",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"vehicle",
"title",
"description",
"image"
],
"fields": [
{
"fieldname": "title",
"fieldtype": "Data",
"in_list_view": 1,
"in_standard_filter": 1,
"label": "Title",
"reqd": 1
},
{
"fieldname": "description",
"fieldtype": "Small Text",
"in_list_view": 1,
"in_standard_filter": 1,
"label": "Description",
"reqd": 1
},
{
"fieldname": "image",
"fieldtype": "Attach Image",
"label": "Image",
"reqd": 1
},
{
"fieldname": "vehicle",
"fieldtype": "Link",
"in_list_view": 1,
"in_standard_filter": 1,
"label": "Vehicle",
"options": "Vehicle",
"reqd": 1
}
],
"image_field": "image",
"index_web_pages_for_search": 1,
"links": [],
"modified": "2022-02-13 04:40:25.915820",
"modified_by": "Administrator",
"module": "Masters",
"name": "Six Reasons to Buy",
"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",
"title_field": "title",
"track_changes": 1
}

8
smart_service/masters/doctype/six_reasons_to_buy/six_reasons_to_buy.py

@ -0,0 +1,8 @@
# Copyright (c) 2022, Hard n Soft Technologies Pvt Ltd and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class SixReasonstoBuy(Document):
pass

8
smart_service/masters/doctype/six_reasons_to_buy/test_six_reasons_to_buy.py

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

3
smart_service/masters/doctype/sub_systems/sub_systems.json

@ -35,13 +35,14 @@
"fieldtype": "Int",
"hidden": 1,
"in_list_view": 1,
"in_standard_filter": 1,
"label": "myID",
"set_only_once": 1
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2022-01-28 11:51:29.646242",
"modified": "2022-02-11 12:40:29.687934",
"modified_by": "Administrator",
"module": "Masters",
"name": "Sub Systems",

3
smart_service/masters/doctype/systems/systems.json

@ -51,13 +51,14 @@
"fieldtype": "Int",
"hidden": 1,
"in_list_view": 1,
"in_standard_filter": 1,
"label": "myID",
"set_only_once": 1
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2022-01-28 11:46:42.820041",
"modified": "2022-02-11 12:40:21.114791",
"modified_by": "Administrator",
"module": "Masters",
"name": "Systems",

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save