Skip to main content

VEHICLE BRAND

🚘 Technical Specification: Vehicle Brand Setup


📋 Feature Overview

AttributeDetail
Module📂 Directory (VEHICLE_BRAND)
Feature NameVehicle Brand Management
DescriptionManages 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]

🛠️ Technical Implementation

A. Permissions & Access Control

Note: Access is controlled via PermissionGuard and component-level checks.
ScopePermission CodeDescription & Page Usage
Menu VisibilityVEHICLE_BRAND.MENU

Sidebar menu visibility.

\vehicle-brand

\add-vehicle-brand

Page RoutingVEHICLE_BRAND.LISTINGAccess to listing route.
\vehicle-brand
Page RoutingVEHICLE_BRAND.VIEW

Access to add/edit route.

\add-vehicle-brand

Create ActionVEHICLE_BRAND.UPDATEControls the + Add button on listing.
\vehicle-brand
View AccessVEHICLE_BRAND.VIEWControls visibility of Edit icon.
\vehicle-brand
Delete ActionVEHICLE_BRAND.DELETEVisibility of the Delete 🗑️ icon.
\vehicle-brand
Edit/Save ActionVEHICLE_BRAND.UPDATEAbility 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