Skip to main content

TANKER SCHEDULE

🗓️ Technical Specification: Tanker Schedule


📋 Feature Overview

AttributeDetail
Module📂 Fleet (TANKER_BLOCK_DAY)
Feature NameTanker Schedule (Inspection/Block Days)
DescriptionManages 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.
ScopePermission CodeDescription & Page Usage
Menu VisibilityTANKER_BLOCK_DAY.MENU

Sidebar menu visibility.

\listing-tanker-garage-schedule

\add-edit-tanker-garage-schedule

Page RoutingTANKER_BLOCK_DAY.LISTINGAccess to listing route.
\listing-tanker-garage-schedule
Page RoutingTANKER_BLOCK_DAY.VIEW

Access to add/edit route.

\add-edit-tanker-garage-schedule

Create ActionTANKER_BLOCK_DAY.UPDATEControls the + Add button on listing.
\listing-tanker-garage-schedule
View AccessTANKER_BLOCK_DAY.VIEWControls visibility of Edit icon.
\listing-tanker-garage-schedule
Delete ActionTANKER_BLOCK_DAY.DELETEVisibility of the Delete 🗑️ icon.
\listing-tanker-garage-schedule
Print ActionTANKER_BLOCK_DAY.REPORT.LISTING.VIEWVisibility of the Print 🖨️ icon.
\listing-tanker-garage-schedule
Edit/Save ActionTANKER_BLOCK_DAY.UPDATEAbility 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