Container return and Price per KM for Vehcles

This commit is contained in:
Hagernesh
2026-07-31 09:13:13 +00:00
parent 7f87e2d8ca
commit 90fef6856b
3 changed files with 113 additions and 34 deletions

View File

@@ -141,6 +141,7 @@ export const vehiclesConfig: FleetResourceConfig = {
required: true,
description: "Pre-filled from the truck type — override only for a one-off",
},
{ name: "pricePerKm", label: "Price per KM (ETB)", type: "number", description: "Haulage rate charged per kilometre" },
{ name: "status", label: "Status", type: "select", required: true, options: VEHICLE_STATUS_OPTIONS },
{ name: "availability", label: "Availability", type: "select", required: true, options: VEHICLE_AVAILABILITY_OPTIONS },
{ name: "description", label: "Description", type: "textarea" },
@@ -157,6 +158,7 @@ export const vehiclesConfig: FleetResourceConfig = {
year: new Date().getFullYear(),
fuelType: "DIESEL",
capacity: 0,
pricePerKm: 0,
status: "ACTIVE",
availability: "FREE",
description: "",