-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6d2387b
commit 2788f98
Showing
11 changed files
with
217 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { | ||
|
||
// }, | ||
// }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { | ||
|
||
// }, | ||
// }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |