TransportechAI Docs
FinanceFines

Field Reference

Complete reference of all fields in the Fines module.

This page provides a complete reference of all fields, status values, and mappings used in the Fines module.

Fine Record Fields

FieldTypeDescriptionExample
IDTextUnique identifier for the fine recordfin_abc123
Employee/DriverTextThe person who was finedJohn Smith
Target TypeEnumWhether the fine was issued to an Employee or DriverDriver
CategoryTextThe fine type/category appliedTraffic Violation
Amount (AED)NumberThe fine amount in AED500.00
DateDateThe date when the violation occurred2025-01-15
DescriptionTextDetails about the violation and circumstances"Ran red light on Sheikh Zayed Rd"
EvidenceFileSupporting documentation such as photos, screenshots, or reportsevidence.jpg
Workflow StatusEnumThe current approval status of the fineAPPROVED
Payment StatusEnumThe current collection status of the fineUNPAID
Display StatusTextThe combined status shown in the Fines List tableDEDUCTED
Created AtDateWhen the fine record was created in the system2025-01-16
Approved ByTextThe user who approved or rejected the fineAdmin User
Rejection ReasonTextThe reason provided when a fine is rejected"Insufficient evidence"

Workflow Status Values

The workflow status tracks where the fine is in the approval process.

ValueDescription
PENDINGThe fine has been submitted and is waiting for an authorized user to review and approve or reject it
APPROVEDThe fine has been reviewed and approved. It is now eligible for salary deduction, waiver, or loan conversion
REJECTEDThe fine has been reviewed and rejected. The approver has provided a reason. The fine will not be charged
CANCELLEDThe fine was cancelled before an approval decision was made. This is typically done by the person who created the fine
CONVERTED_TO_LOANThe fine has been converted to a loan for installment repayment through the Loans module

Payment Status Values

The payment status tracks the collection of the fine amount. This status is only meaningful for fines with an APPROVED workflow status.

ValueDescription
UNPAIDThe fine has been approved but the amount has not yet been collected from the employee or driver
PARTIALA partial payment has been received toward the fine. The remaining balance is still outstanding
PAIDThe full fine amount has been collected, typically through automatic salary deduction in payroll
WAIVEDThe fine amount has been forgiven by management. No payment will be collected

Display Status Mapping

The display status is a simplified label shown in the Fines List table. It combines the workflow status and payment status into a single, easy-to-read value.

Workflow StatusPayment StatusDisplayed As
PENDINGUNPAIDPending
APPROVEDUNPAIDApproved
APPROVEDPAIDDeducted
APPROVEDWAIVEDWaived
REJECTED--Rejected
CANCELLED--Cancelled
CONVERTED_TO_LOAN--Converted

"Deducted" means the fine was approved and the full amount has been deducted from the person's salary. "Waived" means the fine was approved but then forgiven. "Converted" means the fine was turned into a loan for installment repayment.

Fine Category Fields

Fine categories define the types of fines available for selection when creating a fine.

FieldTypeDescriptionExample
NameTextThe name of the fine categoryTraffic Violation
DescriptionTextAn explanation of what violations this category coversSpeeding, red light, wrong parking
Default Amount (AED)NumberThe pre-set fine amount for this category (can be overridden per fine)500.00
StatusEnumWhether the category is available for useActive

Category Status Values

ValueDescription
ActiveThe category is available and appears in the dropdown when creating a new fine
InactiveThe category is hidden from the creation form but preserved for existing fine records

Target Type Values

ValueDescription
EmployeeThe fine is issued to a company employee
DriverThe fine is issued to a driver