Skip to main content

VEHICLE BRAND

🚘 Technical Specification: Vehicle Brand Setup


📋 Feature Overview

Attribute Detail
Module 📂 Directory (VEHICLE_BRAND)
Feature Name Vehicle Brand Management
Description Manages the master list of vehicle manufacturers/brands (e.g., Volvo, Scania) used when creating Movers and Tankers.
Page & Detail
1. Listing Page: /vehicle-brand
Displays grid of vehicle brands, filters, and delete actions.
2. Add/Edit Page: /add-vehicle-brand
Form for creating new brands or updating details.
User Guide 📄 [Ekajaya Admin User Guide - Directory Module, Section 9]1]

🛠️ Technical Implementation

A. Permissions & Access Control

Note: Access is controlled via PermissionGuard and component-level checks.
Scope Permission Code Description & Page Usage
Menu Visibility VEHICLE_BRAND.MENU

Sidebar menu visibility.

\vehicle-brand

\add-vehicle-brand

Page Routing VEHICLE_BRAND.LISTING Access to listing route.
\vehicle-brand
Page Routing VEHICLE_BRAND.VIEW

Access to add/edit route.

\add-vehicle-brand

Create Action VEHICLE_BRAND.UPDATE Controls the + Add button on listing.
\vehicle-brand
View Access VEHICLE_BRAND.VIEW Controls visibility of Edit icon.
\vehicle-brand
Delete Action VEHICLE_BRAND.DELETE Visibility of the Delete 🗑️ icon.
\vehicle-brand
Edit/Save Action VEHICLE_BRAND.UPDATE Ability to save changes on Add/Edit screen.
\add-vehicle-brand

B. API Interaction

Base URL: ${environment.baseApiUrl}
1. Listing Vehicle Brand \vehicle-brand
/vehicleBrands/getQuery
POST
Filter: brandName, isActive
/movers/getQuery
POST
Filter: vehicleBrandId (Dependency Check)
/vehicleBrands/delete
POST
Purpose: Delete Record
2. Add Vehicle Brand \add-vehicle-brand
/vehicleBrands/getOne
GET
Purpose: Fetch specific record by ID
/vehicleBrands/getQuery
POST
Filter: brandName (Uniqueness Check)
/vehicleBrands/create
POST
Purpose: Create new dataSource record
/vehicleBrands/update
POST
Purpose: Update existing dataSource record