Add vehicle management features in Falukant

- Introduced vehicle types and transport management in the backend, including new models and associations for vehicles and transports.
- Implemented service methods to retrieve vehicle types and handle vehicle purchases, ensuring user validation and transaction management.
- Updated the FalukantController and router to expose new endpoints for fetching vehicle types and buying vehicles.
- Enhanced the frontend with a new transport tab in BranchView, allowing users to buy vehicles, and added localization for vehicle-related terms.
- Included initialization logic for vehicle types in the database setup.
This commit is contained in:
Torsten Schulz (local)
2025-11-24 20:15:45 +01:00
parent 5ed27e5a6a
commit 3f043fc315
14 changed files with 544 additions and 12 deletions

View File

@@ -106,7 +106,8 @@
"director": "Direktor",
"inventory": "Inventar",
"production": "Produktion",
"storage": "Lager"
"storage": "Lager",
"transport": "Transportmittel"
},
"selection": {
"title": "Niederlassungsauswahl",
@@ -203,6 +204,25 @@
"buycost": "Kosten",
"sellincome": "Einnahmen"
},
"vehicles": {
"cargo_cart": "Lastkarren",
"ox_cart": "Ochsenkarren",
"small_carriage": "Kleine Pferdekutsche",
"large_carriage": "Große Pferdekutsche",
"four_horse_carriage": "Vierspänner",
"raft": "Floß",
"sailing_ship": "Segelschiff"
},
"transport": {
"title": "Transportmittel",
"placeholder": "Hier kannst du Transportmittel für deine Region kaufen.",
"vehicleType": "Transportmittel",
"quantity": "Anzahl",
"totalCost": "Gesamtkosten",
"notEnoughMoney": "Du hast nicht genug Geld für diesen Kauf.",
"buy": "Transportmittel kaufen",
"balance": "Kontostand"
},
"stocktype": {
"wood": "Holzlager",
"stone": "Steinlager",

View File

@@ -30,6 +30,17 @@
"knowledge": "Knowledge",
"hire": "Hire",
"noProposals": "No director candidates available."
},
"branch": {
"vehicles": {
"cargo_cart": "Cargo cart",
"ox_cart": "Ox cart",
"small_carriage": "Small horse carriage",
"large_carriage": "Large horse carriage",
"four_horse_carriage": "Four-horse carriage",
"raft": "Raft",
"sailing_ship": "Sailing ship"
}
}
}
}