Skip to main content

TANKER SCHEDULE

🗓️ Technical Specification: Tanker Schedule


📋 Feature Overview

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

🛠️ Technical Implementation

A. Permissions & Access Control

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

Sidebar menu visibility.

\listing-tanker-garage-schedule

\add-edit-tanker-garage-schedule

Page Routing TANKER_BLOCK_DAY.LISTING Access to listing route.
\listing-tanker-garage-schedule
Page Routing TANKER_BLOCK_DAY.VIEW

Access to add/edit route.

\add-edit-tanker-garage-schedule

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

B. API Interaction

Base URL: ${environment.baseApiUrl}
1. Listing Tanker Schedule \listing-tanker-garage-schedule
/settings/getQuery
POST
Filter: type='Block Type'
/settings/getQuery
POST
Filter: type='Status'
/tankerBlockDays/getQuery
POST
Filter: tanker.tankerNumber, blockType, status, blockEndDate (Date Range)
/tankerBlockDay/delete
POST
Purpose: Delete Record
2. Add/Edit Tanker Schedule \add-edit-tanker-garage-schedule
/tankers/getQuery
POST
Filter: isDeleted=0 (Active Tankers)
/settings/getQuery
POST
Filter: type='Block Type'
/settings/getQuery
POST
Filter: type='Status'
/tankerBlockDays/getQuery
POST
Filter: id (Fetch specific record)
/tankerBlockDay/create
POST
Purpose: Create new record
/tankerBlockDay/update
POST
Purpose: Update existing record