Skip to main content

MOVER SCHEDULE

🗓️ Technical Specification: Mover Schedule


📋 Feature Overview

Attribute Detail
Module 📂 Fleet (MOVER SCHEDULE)
Feature Name Mover Schedule (Inspection/Block Days)
Description Manages mover unavailability, inspections, or maintenance blocks. Used to determine asset availability in the Carrier Calendar.
Page & Detail
1. Listing Page: /listing-mover-inspection-schedule
Displays grid of block records, filters by date/status, delete actions, and report printing.
2. Add/Edit Page: /add-edit-mover-inspection-schedule
Form for creating or updating a mover block period.
User Guide 📄 [Ekajaya Admin User Guide - Fleet Module, Section 4]

🛠️ Technical Implementation

A. Permissions & Access Control

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

Sidebar menu visibility.

\listing-mover-inspection-schedule

\add-edit-mover-inspection-schedule

Page Routing MOVER_BLOCK_DAY.LISTING Access to listing route.
\listing-mover-inspection-schedule
Page Routing MOVER_BLOCK_DAY.VIEW

Access to add/edit route.

\add-edit-mover-inspection-schedule

Create Action MOVER_BLOCK_DAY.UPDATE Controls the + Add button on listing.
\listing-mover-inspection-schedule
View Access MOVER_BLOCK_DAY.VIEW Controls visibility of Edit icon.
\listing-mover-inspection-schedule
Delete Action MOVER_BLOCK_DAY.DELETE Visibility of the Delete 🗑️ icon.
\listing-mover-inspection-schedule
Print Action MOVER_BLOCK_DAY.REPORT.LISTING.VIEW Visibility of the Print 🖨️ icon.
\listing-mover-inspection-schedule
Edit/Save Action MOVER_BLOCK_DAY.UPDATE Ability to save changes on Add/Edit screen.
\add-edit-mover-inspection-schedule

B. API Interaction

Base URL: ${environment.baseApiUrl}
1. Listing Mover Schedule \listing-mover-inspection-schedule
/settings/getQuery
POST
Filter: type='Block Type'
/settings/getQuery
POST
Filter: type='Status'
/moverBlockDays/getQuery
POST
Filter: mover.plateNo, blockType, status, blockEndDate (Date Range)
/moverBlockDay/delete
POST
Purpose: Hard Delete Record
/mover-schedule-report/moverScheduleReport
NONE
Purpose: Generate PDF Report
2. Add/Edit Mover Schedule \add-edit-mover-inspection-schedule
/movers/getQuery
POST
Filter: isDeleted=0 (Active Movers)
/settings/getQuery
POST
Filter: type='Block Type'
/settings/getQuery
POST
Filter: type='Status'
/moverBlockDays/getQuery
POST
Filter: id (Fetch specific record)
/moverBlockDay/create
POST
Purpose: Create new record
/moverBlockDay/update
POST
Purpose: Update existing record