mirror of
https://github.com/Karaka-Management/oms-FleetManagement.git
synced 2026-01-11 04:48:41 +00:00
Test fixes
This commit is contained in:
parent
29f0411b89
commit
f68f1c26fd
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
# Structure
|
||||
|
||||
## ER
|
||||
|
||||

|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 158 KiB |
|
|
@ -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',
|
||||
]];
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
]];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user