to select ↑↓ to navigate
Fleet ms

Fleet ms

1. Overview

The Truck Type doctype in Frappe ERPNext is used to define and manage different types of trucks within the fleet management system. This doctype stores the name of the truck type and ensures that each truck type is unique within the system.

2. Key Features

  • Truck Type Name: A field to define the name of the truck type.
  • Unique Constraint: Ensures that each truck type has a unique name.
  • Editable Grid: Allows you to modify and manage truck types in an editable list format.
  • Autoname Field: The truck type is automatically named based on the truck_type field.
  • Permissions: Specific roles, such as the System Manager, can manage truck types with full access.

3. Pre-Requisites

  • Frappe ERPNext Installation: Ensure that you have an active installation of Frappe ERPNext.
  • Required Permissions: Only users with the System Manager role can create, delete, update, or modify truck types.
  • Valid User Roles: Make sure the users have the correct permissions set in their roles.

4. Step-by-Step Usage

  1. Navigate to Truck Type: Go to the VSD Fleet MS module and find the Truck Type doctype under the list view.
  2. Create a New Truck Type:
    • Click on the New button to create a new truck type.
    • Enter a name for the truck type in the Truck Type field.
    • Click Save to create the record.
  3. Modify an Existing Truck Type:
    • Open the desired truck type from the list.
    • Modify the Truck Type field as needed.
    • Save your changes.

5. Script Customizations

Customizations for the Truck Type doctype can be made by creating custom scripts that modify its behavior. For example:

  • Adding Business Logic: You can customize the truck type creation process by adding specific validation or business rules.
  • Permissions: Customize access control through role-based permissions to manage who can add, delete, or update truck types.

6. Troubleshooting (Common Errors and Resolutions)

  • Error: "Truck Type already exists":
    • Resolution: Ensure the truck type name is unique. The doctype enforces uniqueness on the Truck Type field.
  • Error: "Permission Denied":
    • Resolution: Verify that the user has the System Manager role or has been granted the necessary permissions to manage truck types.
  • Error: "Field not editable":
    • Resolution: Check the field permissions in the role configuration and make sure that the user has write access to the Truck Type field.

7. User Roles and Permissions

The Truck Type doctype has the following permissions:

  • System Manager: Full access to create, read, write, delete, export, print, report, and email.
  • Permissions on Creation: When creating or modifying truck types, only users with the System Manager role have the permission to do so.

8. Key Notes

  • Uniqueness: The Truck Type field is unique, so no two records can have the same truck type name.
  • Autoname: The system automatically names the truck type based on the value provided in the Truck Type field.

9. What business process pain point does it help remove?

The Truck Type doctype helps streamline the management of different truck types within the fleet management system. By having a central location for defining truck types, it removes the confusion of manually tracking different truck specifications and ensures consistency in the fleet data. It simplifies reporting and tracking the fleet's asset types, helping businesses to optimize fleet management and operational efficiency.

Last updated 4 days ago
Was this helpful?
Thanks!