Test fixes
Some checks failed
Image optimization / general_image_workflow (push) Has been cancelled
CI / general_module_workflow_php (push) Has been cancelled
CI / general_module_workflow_js (push) Has been cancelled

This commit is contained in:
Dennis Eichhorn 2024-05-16 02:14:54 +00:00
parent 29f0411b89
commit f68f1c26fd
7 changed files with 89 additions and 86 deletions

View File

@ -464,13 +464,13 @@
"null": false
},
"fleetmgmt_vehicle_attr_type_required": {
"description": "Every vehicle must have this attribute type if set to true.",
"comment": "Every vehicle must have this attribute type if set to true.",
"name": "fleetmgmt_vehicle_attr_type_required",
"type": "TINYINT(1)",
"null": false
},
"fleetmgmt_vehicle_attr_type_pattern": {
"description": "This is a regex validation pattern.",
"comment": "This is a regex validation pattern.",
"name": "fleetmgmt_vehicle_attr_type_pattern",
"type": "VARCHAR(255)",
"null": false
@ -755,13 +755,13 @@
"null": false
},
"fleetmgmt_driver_attr_type_required": {
"description": "Every driver must have this attribute type if set to true.",
"comment": "Every driver must have this attribute type if set to true.",
"name": "fleetmgmt_driver_attr_type_required",
"type": "TINYINT(1)",
"null": false
},
"fleetmgmt_driver_attr_type_pattern": {
"description": "This is a regex validation pattern.",
"comment": "This is a regex validation pattern.",
"name": "fleetmgmt_driver_attr_type_pattern",
"type": "VARCHAR(255)",
"null": false

View File

@ -440,6 +440,10 @@ final class Installer extends InstallerAbstract
$module = $app->moduleManager->get('FleetManagement', 'ApiVehicleAttribute');
foreach ($attributes as $attribute) {
if (!isset($attribute['values'])) {
continue;
}
$itemAttrValue[$attribute['name']] = [];
/** @var array $value */
@ -581,6 +585,10 @@ final class Installer extends InstallerAbstract
$module = $app->moduleManager->get('FleetManagement', 'ApiDriverAttribute');
foreach ($attributes as $attribute) {
if (!isset($attribute['values'])) {
continue;
}
$itemAttrValue[$attribute['name']] = [];
/** @var array $value */

View File

@ -1,5 +0,0 @@
# Structure
## ER
![ER](Modules/FleetManagement/Docs/Dev/img/er.png)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 158 KiB

View File

@ -13,42 +13,42 @@
declare(strict_types=1);
return ['FleetManagement' => [
':status1' => 'Aktiv',
':status2' => 'Inaktiv',
':status3' => 'Beschädigt',
':status4' => 'Außer Betrieb',
':status-d1' => 'Aktiv',
':status-d2' => 'Inaktiv',
':status-d3' => 'Fahrunfähig',
'Attributes' => 'Attribute',
'Costs' => 'Kosten',
'Date' => 'Datum',
'Driver' => 'Fahrer',
'Drivers' => 'Fahrer',
'Reference' => 'Referenz',
'End' => 'Ende',
'From' => 'Von',
'Description' => 'Beschreibung',
'To' => 'Nach',
'Files' => 'Dateien',
'History' => 'Historie',
'Inspections' => 'Inspektionen',
'InspectionTypes' => 'Inspektionsarten',
'LeasingFee' => 'Leasingkosten',
'Make' => 'Marke',
'Milage' => 'Tacho',
'Model' => 'Modell',
'Name' => 'Name',
'Notes' => 'Notizen',
'Profile' => 'Profile',
'PurchasePrice' => 'Kaufpreis',
'Responsible' => 'Verantwortlich',
'Start' => 'Start',
'Status' => 'Status',
'VIN' => 'VIN',
'Type' => 'Typ',
'Upcoming' => 'Upcoming',
'Vehicles' => 'Fahrzeuge',
'Vehicle' => 'Fahrzeug',
'Vin' => 'Vin',
':status1' => 'Aktiv',
':status2' => 'Inaktiv',
':status3' => 'Beschädigt',
':status4' => 'Außer Betrieb',
':status-d1' => 'Aktiv',
':status-d2' => 'Inaktiv',
':status-d3' => 'Fahrunfähig',
'Attributes' => 'Attribute',
'Costs' => 'Kosten',
'Date' => 'Datum',
'Driver' => 'Fahrer',
'Drivers' => 'Fahrer',
'Reference' => 'Referenz',
'End' => 'Ende',
'From' => 'Von',
'Description' => 'Beschreibung',
'To' => 'Nach',
'Files' => 'Dateien',
'History' => 'Historie',
'Inspections' => 'Inspektionen',
'InspectionTypes' => 'Inspektionsarten',
'LeasingFee' => 'Leasingkosten',
'Make' => 'Marke',
'Milage' => 'Tacho',
'Model' => 'Modell',
'Name' => 'Name',
'Notes' => 'Notizen',
'Profile' => 'Profile',
'PurchasePrice' => 'Kaufpreis',
'Responsible' => 'Verantwortlich',
'Start' => 'Start',
'Status' => 'Status',
'VIN' => 'VIN',
'Type' => 'Typ',
'Upcoming' => 'Upcoming',
'Vehicles' => 'Fahrzeuge',
'Vehicle' => 'Fahrzeug',
'Vin' => 'Vin',
]];

View File

@ -13,42 +13,42 @@
declare(strict_types=1);
return ['FleetManagement' => [
':status1' => 'Active',
':status2' => 'Inactive',
':status3' => 'Damaged',
':status4' => 'Out of order',
':status-d1' => 'Active',
':status-d2' => 'Inactive',
':status-d3' => 'Suspended',
'Attributes' => 'Attributes',
'Costs' => 'Costs',
'Date' => 'Date',
'Driver' => 'Driver',
'Drivers' => 'Drivers',
'End' => 'End',
'From' => 'From',
'To' => 'To',
'Description' => 'Description',
'Files' => 'Files',
'Reference' => 'Reference',
'History' => 'History',
'Inspections' => 'Inspections',
'InspectionTypes' => 'Inspection Types',
'LeasingFee' => 'Leasing Fee',
'Make' => 'Make',
'Milage' => 'Milage',
'Model' => 'Model',
'Name' => 'Name',
'Notes' => 'Notes',
'Profile' => 'Profile',
'PurchasePrice' => 'Purchase Price',
'Responsible' => 'Responsible',
'Start' => 'Start',
'Status' => 'Status',
'VIN' => 'VIN',
'Type' => 'Type',
'Upcoming' => 'Upcoming',
'Vehicles' => 'Vehicles',
'Vehicle' => 'Vehicle',
'Vin' => 'Vin',
':status1' => 'Active',
':status2' => 'Inactive',
':status3' => 'Damaged',
':status4' => 'Out of order',
':status-d1' => 'Active',
':status-d2' => 'Inactive',
':status-d3' => 'Suspended',
'Attributes' => 'Attributes',
'Costs' => 'Costs',
'Date' => 'Date',
'Driver' => 'Driver',
'Drivers' => 'Drivers',
'End' => 'End',
'From' => 'From',
'To' => 'To',
'Description' => 'Description',
'Files' => 'Files',
'Reference' => 'Reference',
'History' => 'History',
'Inspections' => 'Inspections',
'InspectionTypes' => 'Inspection Types',
'LeasingFee' => 'Leasing Fee',
'Make' => 'Make',
'Milage' => 'Milage',
'Model' => 'Model',
'Name' => 'Name',
'Notes' => 'Notes',
'Profile' => 'Profile',
'PurchasePrice' => 'Purchase Price',
'Responsible' => 'Responsible',
'Start' => 'Start',
'Status' => 'Status',
'VIN' => 'VIN',
'Type' => 'Type',
'Upcoming' => 'Upcoming',
'Vehicles' => 'Vehicles',
'Vehicle' => 'Vehicle',
'Vin' => 'Vin',
]];

View File

@ -12,7 +12,7 @@
},
"creator": {
"name": "Jingga",
"website": "jingga.app"
"website": "https://jingga.app"
},
"directory": "FleetManagement",
"dependencies": {