Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
victorarocha committed Jun 9, 2024
1 parent 6d2387b commit 2788f98
Show file tree
Hide file tree
Showing 11 changed files with 217 additions and 0 deletions.
Empty file.
Empty file.
8 changes: 8 additions & 0 deletions rentals/rentals/doctype/driver/driver.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Copyright (c) 2024, Victor and contributors
// For license information, please see license.txt

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

// },
// });
98 changes: 98 additions & 0 deletions rentals/rentals/doctype/driver/driver.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"actions": [],
"allow_import": 1,
"allow_rename": 1,
"autoname": "format:DRV-{####}",
"creation": "2024-06-08 16:07:51.503174",
"doctype": "DocType",
"engine": "InnoDB",
"field_order": [
"enabled",
"first_name",
"last_name",
"phone_number",
"column_break_hvli",
"license_number",
"gender",
"profile_image"
],
"fields": [
{
"default": "0",
"fieldname": "enabled",
"fieldtype": "Check",
"label": "Enabled?"
},
{
"fieldname": "license_number",
"fieldtype": "Data",
"in_list_view": 1,
"label": "License Number",
"reqd": 1
},
{
"fieldname": "gender",
"fieldtype": "Select",
"label": "Gender",
"options": "Do not respond\nMale\nFemale"
},
{
"fieldname": "column_break_hvli",
"fieldtype": "Column Break"
},
{
"fieldname": "profile_image",
"fieldtype": "Attach Image",
"label": "Profile Image"
},
{
"fieldname": "phone_number",
"fieldtype": "Phone",
"in_list_view": 1,
"label": "Phone Number",
"reqd": 1
},
{
"fieldname": "first_name",
"fieldtype": "Data",
"in_list_view": 1,
"label": "First Name",
"reqd": 1
},
{
"fieldname": "last_name",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Last Name",
"reqd": 1
}
],
"image_field": "profile_image",
"index_web_pages_for_search": 1,
"links": [],
"modified": "2024-06-08 19:44:32.299954",
"modified_by": "Administrator",
"module": "Rentals",
"name": "Driver",
"naming_rule": "Expression",
"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": [],
"title_field": "first_name",
"track_changes": 1
}
9 changes: 9 additions & 0 deletions rentals/rentals/doctype/driver/driver.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2024, Victor and contributors
# For license information, please see license.txt

# import frappe
from frappe.model.document import Document


class Driver(Document):
pass
9 changes: 9 additions & 0 deletions rentals/rentals/doctype/driver/test_driver.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2024, Victor and Contributors
# See license.txt

# import frappe
from frappe.tests.utils import FrappeTestCase


class TestDriver(FrappeTestCase):
pass
Empty file.
9 changes: 9 additions & 0 deletions rentals/rentals/doctype/vehicle/test_vehicle.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2024, Victor and Contributors
# See license.txt

# import frappe
from frappe.tests.utils import FrappeTestCase


class TestVehicle(FrappeTestCase):
pass
8 changes: 8 additions & 0 deletions rentals/rentals/doctype/vehicle/vehicle.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Copyright (c) 2024, Victor and contributors
// For license information, please see license.txt

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

// },
// });
67 changes: 67 additions & 0 deletions rentals/rentals/doctype/vehicle/vehicle.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"actions": [],
"allow_import": 1,
"allow_rename": 1,
"creation": "2024-06-08 16:17:47.795987",
"doctype": "DocType",
"engine": "InnoDB",
"field_order": [
"make",
"model",
"year",
"license_plate",
"color"
],
"fields": [
{
"fieldname": "make",
"fieldtype": "Data",
"label": "Make"
},
{
"fieldname": "model",
"fieldtype": "Data",
"label": "Model"
},
{
"fieldname": "year",
"fieldtype": "Int",
"label": "Year"
},
{
"fieldname": "license_plate",
"fieldtype": "Data",
"label": "License Plate"
},
{
"fieldname": "color",
"fieldtype": "Data",
"label": "Color"
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2024-06-08 16:21:40.611151",
"modified_by": "Administrator",
"module": "Rentals",
"name": "Vehicle",
"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": [],
"track_changes": 1
}
9 changes: 9 additions & 0 deletions rentals/rentals/doctype/vehicle/vehicle.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2024, Victor and contributors
# For license information, please see license.txt

# import frappe
from frappe.model.document import Document


class Vehicle(Document):
pass

0 comments on commit 2788f98

Please sign in to comment.