mirror of
https://github.com/Karaka-Management/oms-FleetManagement.git
synced 2026-02-16 13:28:41 +00:00
Test fixes
This commit is contained in:
parent
29f0411b89
commit
f68f1c26fd
|
|
@ -464,13 +464,13 @@
|
||||||
"null": false
|
"null": false
|
||||||
},
|
},
|
||||||
"fleetmgmt_vehicle_attr_type_required": {
|
"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",
|
"name": "fleetmgmt_vehicle_attr_type_required",
|
||||||
"type": "TINYINT(1)",
|
"type": "TINYINT(1)",
|
||||||
"null": false
|
"null": false
|
||||||
},
|
},
|
||||||
"fleetmgmt_vehicle_attr_type_pattern": {
|
"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",
|
"name": "fleetmgmt_vehicle_attr_type_pattern",
|
||||||
"type": "VARCHAR(255)",
|
"type": "VARCHAR(255)",
|
||||||
"null": false
|
"null": false
|
||||||
|
|
@ -755,13 +755,13 @@
|
||||||
"null": false
|
"null": false
|
||||||
},
|
},
|
||||||
"fleetmgmt_driver_attr_type_required": {
|
"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",
|
"name": "fleetmgmt_driver_attr_type_required",
|
||||||
"type": "TINYINT(1)",
|
"type": "TINYINT(1)",
|
||||||
"null": false
|
"null": false
|
||||||
},
|
},
|
||||||
"fleetmgmt_driver_attr_type_pattern": {
|
"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",
|
"name": "fleetmgmt_driver_attr_type_pattern",
|
||||||
"type": "VARCHAR(255)",
|
"type": "VARCHAR(255)",
|
||||||
"null": false
|
"null": false
|
||||||
|
|
|
||||||
|
|
@ -440,6 +440,10 @@ final class Installer extends InstallerAbstract
|
||||||
$module = $app->moduleManager->get('FleetManagement', 'ApiVehicleAttribute');
|
$module = $app->moduleManager->get('FleetManagement', 'ApiVehicleAttribute');
|
||||||
|
|
||||||
foreach ($attributes as $attribute) {
|
foreach ($attributes as $attribute) {
|
||||||
|
if (!isset($attribute['values'])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$itemAttrValue[$attribute['name']] = [];
|
$itemAttrValue[$attribute['name']] = [];
|
||||||
|
|
||||||
/** @var array $value */
|
/** @var array $value */
|
||||||
|
|
@ -581,6 +585,10 @@ final class Installer extends InstallerAbstract
|
||||||
$module = $app->moduleManager->get('FleetManagement', 'ApiDriverAttribute');
|
$module = $app->moduleManager->get('FleetManagement', 'ApiDriverAttribute');
|
||||||
|
|
||||||
foreach ($attributes as $attribute) {
|
foreach ($attributes as $attribute) {
|
||||||
|
if (!isset($attribute['values'])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$itemAttrValue[$attribute['name']] = [];
|
$itemAttrValue[$attribute['name']] = [];
|
||||||
|
|
||||||
/** @var array $value */
|
/** @var array $value */
|
||||||
|
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
# Structure
|
|
||||||
|
|
||||||
## ER
|
|
||||||
|
|
||||||

|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 158 KiB |
|
|
@ -13,42 +13,42 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
return ['FleetManagement' => [
|
return ['FleetManagement' => [
|
||||||
':status1' => 'Aktiv',
|
':status1' => 'Aktiv',
|
||||||
':status2' => 'Inaktiv',
|
':status2' => 'Inaktiv',
|
||||||
':status3' => 'Beschädigt',
|
':status3' => 'Beschädigt',
|
||||||
':status4' => 'Außer Betrieb',
|
':status4' => 'Außer Betrieb',
|
||||||
':status-d1' => 'Aktiv',
|
':status-d1' => 'Aktiv',
|
||||||
':status-d2' => 'Inaktiv',
|
':status-d2' => 'Inaktiv',
|
||||||
':status-d3' => 'Fahrunfähig',
|
':status-d3' => 'Fahrunfähig',
|
||||||
'Attributes' => 'Attribute',
|
'Attributes' => 'Attribute',
|
||||||
'Costs' => 'Kosten',
|
'Costs' => 'Kosten',
|
||||||
'Date' => 'Datum',
|
'Date' => 'Datum',
|
||||||
'Driver' => 'Fahrer',
|
'Driver' => 'Fahrer',
|
||||||
'Drivers' => 'Fahrer',
|
'Drivers' => 'Fahrer',
|
||||||
'Reference' => 'Referenz',
|
'Reference' => 'Referenz',
|
||||||
'End' => 'Ende',
|
'End' => 'Ende',
|
||||||
'From' => 'Von',
|
'From' => 'Von',
|
||||||
'Description' => 'Beschreibung',
|
'Description' => 'Beschreibung',
|
||||||
'To' => 'Nach',
|
'To' => 'Nach',
|
||||||
'Files' => 'Dateien',
|
'Files' => 'Dateien',
|
||||||
'History' => 'Historie',
|
'History' => 'Historie',
|
||||||
'Inspections' => 'Inspektionen',
|
'Inspections' => 'Inspektionen',
|
||||||
'InspectionTypes' => 'Inspektionsarten',
|
'InspectionTypes' => 'Inspektionsarten',
|
||||||
'LeasingFee' => 'Leasingkosten',
|
'LeasingFee' => 'Leasingkosten',
|
||||||
'Make' => 'Marke',
|
'Make' => 'Marke',
|
||||||
'Milage' => 'Tacho',
|
'Milage' => 'Tacho',
|
||||||
'Model' => 'Modell',
|
'Model' => 'Modell',
|
||||||
'Name' => 'Name',
|
'Name' => 'Name',
|
||||||
'Notes' => 'Notizen',
|
'Notes' => 'Notizen',
|
||||||
'Profile' => 'Profile',
|
'Profile' => 'Profile',
|
||||||
'PurchasePrice' => 'Kaufpreis',
|
'PurchasePrice' => 'Kaufpreis',
|
||||||
'Responsible' => 'Verantwortlich',
|
'Responsible' => 'Verantwortlich',
|
||||||
'Start' => 'Start',
|
'Start' => 'Start',
|
||||||
'Status' => 'Status',
|
'Status' => 'Status',
|
||||||
'VIN' => 'VIN',
|
'VIN' => 'VIN',
|
||||||
'Type' => 'Typ',
|
'Type' => 'Typ',
|
||||||
'Upcoming' => 'Upcoming',
|
'Upcoming' => 'Upcoming',
|
||||||
'Vehicles' => 'Fahrzeuge',
|
'Vehicles' => 'Fahrzeuge',
|
||||||
'Vehicle' => 'Fahrzeug',
|
'Vehicle' => 'Fahrzeug',
|
||||||
'Vin' => 'Vin',
|
'Vin' => 'Vin',
|
||||||
]];
|
]];
|
||||||
|
|
|
||||||
|
|
@ -13,42 +13,42 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
return ['FleetManagement' => [
|
return ['FleetManagement' => [
|
||||||
':status1' => 'Active',
|
':status1' => 'Active',
|
||||||
':status2' => 'Inactive',
|
':status2' => 'Inactive',
|
||||||
':status3' => 'Damaged',
|
':status3' => 'Damaged',
|
||||||
':status4' => 'Out of order',
|
':status4' => 'Out of order',
|
||||||
':status-d1' => 'Active',
|
':status-d1' => 'Active',
|
||||||
':status-d2' => 'Inactive',
|
':status-d2' => 'Inactive',
|
||||||
':status-d3' => 'Suspended',
|
':status-d3' => 'Suspended',
|
||||||
'Attributes' => 'Attributes',
|
'Attributes' => 'Attributes',
|
||||||
'Costs' => 'Costs',
|
'Costs' => 'Costs',
|
||||||
'Date' => 'Date',
|
'Date' => 'Date',
|
||||||
'Driver' => 'Driver',
|
'Driver' => 'Driver',
|
||||||
'Drivers' => 'Drivers',
|
'Drivers' => 'Drivers',
|
||||||
'End' => 'End',
|
'End' => 'End',
|
||||||
'From' => 'From',
|
'From' => 'From',
|
||||||
'To' => 'To',
|
'To' => 'To',
|
||||||
'Description' => 'Description',
|
'Description' => 'Description',
|
||||||
'Files' => 'Files',
|
'Files' => 'Files',
|
||||||
'Reference' => 'Reference',
|
'Reference' => 'Reference',
|
||||||
'History' => 'History',
|
'History' => 'History',
|
||||||
'Inspections' => 'Inspections',
|
'Inspections' => 'Inspections',
|
||||||
'InspectionTypes' => 'Inspection Types',
|
'InspectionTypes' => 'Inspection Types',
|
||||||
'LeasingFee' => 'Leasing Fee',
|
'LeasingFee' => 'Leasing Fee',
|
||||||
'Make' => 'Make',
|
'Make' => 'Make',
|
||||||
'Milage' => 'Milage',
|
'Milage' => 'Milage',
|
||||||
'Model' => 'Model',
|
'Model' => 'Model',
|
||||||
'Name' => 'Name',
|
'Name' => 'Name',
|
||||||
'Notes' => 'Notes',
|
'Notes' => 'Notes',
|
||||||
'Profile' => 'Profile',
|
'Profile' => 'Profile',
|
||||||
'PurchasePrice' => 'Purchase Price',
|
'PurchasePrice' => 'Purchase Price',
|
||||||
'Responsible' => 'Responsible',
|
'Responsible' => 'Responsible',
|
||||||
'Start' => 'Start',
|
'Start' => 'Start',
|
||||||
'Status' => 'Status',
|
'Status' => 'Status',
|
||||||
'VIN' => 'VIN',
|
'VIN' => 'VIN',
|
||||||
'Type' => 'Type',
|
'Type' => 'Type',
|
||||||
'Upcoming' => 'Upcoming',
|
'Upcoming' => 'Upcoming',
|
||||||
'Vehicles' => 'Vehicles',
|
'Vehicles' => 'Vehicles',
|
||||||
'Vehicle' => 'Vehicle',
|
'Vehicle' => 'Vehicle',
|
||||||
'Vin' => 'Vin',
|
'Vin' => 'Vin',
|
||||||
]];
|
]];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user