autofixes

This commit is contained in:
Dennis Eichhorn 2023-08-30 12:08:10 +00:00
parent 0d55443e76
commit 0f397efa21
10 changed files with 39 additions and 44 deletions

View File

@ -89,8 +89,8 @@ final class Installer extends InstallerAbstract
/** /**
* Install default stock types * Install default stock types
* *
* @param ApplicationAbstract $app Application * @param ApplicationAbstract $app Application
* @param array $types Stock types * @param array $types Stock types
* *
* @return array * @return array
* *

View File

@ -27,10 +27,8 @@ use Modules\WarehouseManagement\Models\Attribute\LotAttributeValueMapper;
use phpOMS\Localization\BaseStringL11n; use phpOMS\Localization\BaseStringL11n;
use phpOMS\Localization\ISO639x1Enum; use phpOMS\Localization\ISO639x1Enum;
use phpOMS\Message\Http\RequestStatusCode; use phpOMS\Message\Http\RequestStatusCode;
use phpOMS\Message\NotificationLevel;
use phpOMS\Message\RequestAbstract; use phpOMS\Message\RequestAbstract;
use phpOMS\Message\ResponseAbstract; use phpOMS\Message\ResponseAbstract;
use phpOMS\Model\Message\FormValidation;
/** /**
* WarehouseManagement class. * WarehouseManagement class.

View File

@ -125,6 +125,4 @@ final class ApiController extends Controller
return; return;
} }
} }
} }

View File

@ -73,7 +73,7 @@ final class ApiStockTypeController extends Controller
*/ */
private function createStockTypeFromRequest(RequestAbstract $request) : StockType private function createStockTypeFromRequest(RequestAbstract $request) : StockType
{ {
$stockType = new StockType(); $stockType = new StockType();
$stockType->name = $request->getDataString('name') ?? ''; $stockType->name = $request->getDataString('name') ?? '';
$stockType->setL11n($request->getDataString('title') ?? '', $request->getDataString('language') ?? ISO639x1Enum::_EN); $stockType->setL11n($request->getDataString('title') ?? '', $request->getDataString('language') ?? ISO639x1Enum::_EN);

View File

@ -38,7 +38,7 @@ final class LotAttributeMapper extends DataMapperFactory
*/ */
public const COLUMNS = [ public const COLUMNS = [
'warehousemgmt_lot_attr_id' => ['name' => 'warehousemgmt_lot_attr_id', 'type' => 'int', 'internal' => 'id'], 'warehousemgmt_lot_attr_id' => ['name' => 'warehousemgmt_lot_attr_id', 'type' => 'int', 'internal' => 'id'],
'warehousemgmt_lot_attr_lot' => ['name' => 'warehousemgmt_lot_attr_lot', 'type' => 'int', 'internal' => 'ref'], 'warehousemgmt_lot_attr_lot' => ['name' => 'warehousemgmt_lot_attr_lot', 'type' => 'int', 'internal' => 'ref'],
'warehousemgmt_lot_attr_type' => ['name' => 'warehousemgmt_lot_attr_type', 'type' => 'int', 'internal' => 'type'], 'warehousemgmt_lot_attr_type' => ['name' => 'warehousemgmt_lot_attr_type', 'type' => 'int', 'internal' => 'type'],
'warehousemgmt_lot_attr_value' => ['name' => 'warehousemgmt_lot_attr_value', 'type' => 'int', 'internal' => 'value'], 'warehousemgmt_lot_attr_value' => ['name' => 'warehousemgmt_lot_attr_value', 'type' => 'int', 'internal' => 'value'],
]; ];

View File

@ -39,7 +39,7 @@ final class StockLocationMapper extends DataMapperFactory
'warehousemgmt_stocklocation_id' => ['name' => 'warehousemgmt_stocklocation_id', 'type' => 'int', 'internal' => 'id'], 'warehousemgmt_stocklocation_id' => ['name' => 'warehousemgmt_stocklocation_id', 'type' => 'int', 'internal' => 'id'],
'warehousemgmt_stocklocation_name' => ['name' => 'warehousemgmt_stocklocation_name', 'type' => 'string', 'internal' => 'name'], 'warehousemgmt_stocklocation_name' => ['name' => 'warehousemgmt_stocklocation_name', 'type' => 'string', 'internal' => 'name'],
'warehousemgmt_stocklocation_stock' => ['name' => 'warehousemgmt_stocklocation_stock', 'type' => 'int', 'internal' => 'stock'], 'warehousemgmt_stocklocation_stock' => ['name' => 'warehousemgmt_stocklocation_stock', 'type' => 'int', 'internal' => 'stock'],
'warehousemgmt_stocklocation_type' => ['name' => 'warehousemgmt_stocklocation_type', 'type' => 'int', 'internal' => 'type'], 'warehousemgmt_stocklocation_type' => ['name' => 'warehousemgmt_stocklocation_type', 'type' => 'int', 'internal' => 'type'],
'warehousemgmt_stocklocation_x' => ['name' => 'warehousemgmt_stocklocation_x', 'type' => 'int', 'internal' => 'x'], 'warehousemgmt_stocklocation_x' => ['name' => 'warehousemgmt_stocklocation_x', 'type' => 'int', 'internal' => 'x'],
'warehousemgmt_stocklocation_y' => ['name' => 'warehousemgmt_stocklocation_y', 'type' => 'int', 'internal' => 'y'], 'warehousemgmt_stocklocation_y' => ['name' => 'warehousemgmt_stocklocation_y', 'type' => 'int', 'internal' => 'y'],
'warehousemgmt_stocklocation_z' => ['name' => 'warehousemgmt_stocklocation_z', 'type' => 'int', 'internal' => 'z'], 'warehousemgmt_stocklocation_z' => ['name' => 'warehousemgmt_stocklocation_z', 'type' => 'int', 'internal' => 'z'],

View File

@ -37,9 +37,9 @@ final class StockMapper extends DataMapperFactory
* @since 1.0.0 * @since 1.0.0
*/ */
public const COLUMNS = [ public const COLUMNS = [
'warehousemgmt_stock_id' => ['name' => 'warehousemgmt_stock_id', 'type' => 'int', 'internal' => 'id'], 'warehousemgmt_stock_id' => ['name' => 'warehousemgmt_stock_id', 'type' => 'int', 'internal' => 'id'],
'warehousemgmt_stock_name' => ['name' => 'warehousemgmt_stock_name', 'type' => 'string', 'internal' => 'name'], 'warehousemgmt_stock_name' => ['name' => 'warehousemgmt_stock_name', 'type' => 'string', 'internal' => 'name'],
'warehousemgmt_stock_unit' => ['name' => 'warehousemgmt_stock_unit', 'type' => 'int', 'internal' => 'unit'], 'warehousemgmt_stock_unit' => ['name' => 'warehousemgmt_stock_unit', 'type' => 'int', 'internal' => 'unit'],
'warehousemgmt_stock_address' => ['name' => 'warehousemgmt_stock_address', 'type' => 'int', 'internal' => 'address'], 'warehousemgmt_stock_address' => ['name' => 'warehousemgmt_stock_address', 'type' => 'int', 'internal' => 'address'],
]; ];

View File

@ -39,7 +39,7 @@ final class StockShelfMapper extends DataMapperFactory
'warehousemgmt_stockshelf_id' => ['name' => 'warehousemgmt_stockshelf_id', 'type' => 'int', 'internal' => 'id'], 'warehousemgmt_stockshelf_id' => ['name' => 'warehousemgmt_stockshelf_id', 'type' => 'int', 'internal' => 'id'],
'warehousemgmt_stockshelf_name' => ['name' => 'warehousemgmt_stockshelf_name', 'type' => 'string', 'internal' => 'name'], 'warehousemgmt_stockshelf_name' => ['name' => 'warehousemgmt_stockshelf_name', 'type' => 'string', 'internal' => 'name'],
'warehousemgmt_stockshelf_location' => ['name' => 'warehousemgmt_stockshelf_location', 'type' => 'int', 'internal' => 'location'], 'warehousemgmt_stockshelf_location' => ['name' => 'warehousemgmt_stockshelf_location', 'type' => 'int', 'internal' => 'location'],
'warehousemgmt_stockshelf_type' => ['name' => 'warehousemgmt_stockshelf_type', 'type' => 'int', 'internal' => 'type'], 'warehousemgmt_stockshelf_type' => ['name' => 'warehousemgmt_stockshelf_type', 'type' => 'int', 'internal' => 'type'],
'warehousemgmt_stockshelf_x' => ['name' => 'warehousemgmt_stockshelf_x', 'type' => 'int', 'internal' => 'x'], 'warehousemgmt_stockshelf_x' => ['name' => 'warehousemgmt_stockshelf_x', 'type' => 'int', 'internal' => 'x'],
'warehousemgmt_stockshelf_y' => ['name' => 'warehousemgmt_stockshelf_y', 'type' => 'int', 'internal' => 'y'], 'warehousemgmt_stockshelf_y' => ['name' => 'warehousemgmt_stockshelf_y', 'type' => 'int', 'internal' => 'y'],
'warehousemgmt_stockshelf_z' => ['name' => 'warehousemgmt_stockshelf_z', 'type' => 'int', 'internal' => 'z'], 'warehousemgmt_stockshelf_z' => ['name' => 'warehousemgmt_stockshelf_z', 'type' => 'int', 'internal' => 'z'],

View File

@ -14,7 +14,6 @@ declare(strict_types=1);
namespace Modules\WarehouseManagement\Models; namespace Modules\WarehouseManagement\Models;
use Modules\Admin\Models\AddressMapper;
use phpOMS\DataStorage\Database\Mapper\DataMapperFactory; use phpOMS\DataStorage\Database\Mapper\DataMapperFactory;
/** /**

View File

@ -13,35 +13,35 @@
declare(strict_types=1); declare(strict_types=1);
return ['WarehouseManagement' => [ return ['WarehouseManagement' => [
'All' => 'All', 'All' => 'All',
'Amount' => 'Amount', 'Amount' => 'Amount',
'Arrivals' => 'Arrivals', 'Arrivals' => 'Arrivals',
'Article' => 'Article', 'Article' => 'Article',
'Articles' => 'Articles', 'Articles' => 'Articles',
'City' => 'City', 'City' => 'City',
'Consignee' => 'Consignee', 'Consignee' => 'Consignee',
'Consignor' => 'Consignor', 'Consignor' => 'Consignor',
'Country' => 'Country', 'Country' => 'Country',
'Date' => 'Date', 'Date' => 'Date',
'Description' => 'Description', 'Description' => 'Description',
'Interval' => 'Interval', 'Interval' => 'Interval',
'Location' => 'Location', 'Location' => 'Location',
'Locations' => 'Locations', 'Locations' => 'Locations',
'Matchcode' => 'Matchcode', 'Matchcode' => 'Matchcode',
'Month' => 'Month', 'Month' => 'Month',
'Name' => 'Name', 'Name' => 'Name',
'Order' => 'Order', 'Order' => 'Order',
'Quantity' => 'Quantity', 'Quantity' => 'Quantity',
'Reference' => 'Reference', 'Reference' => 'Reference',
'Shipping' => 'Shipping', 'Shipping' => 'Shipping',
'Statistics' => 'Statistics', 'Statistics' => 'Statistics',
'Stock' => 'Stock', 'Stock' => 'Stock',
'Stocks' => 'Stocks', 'Stocks' => 'Stocks',
'Street' => 'Street', 'Street' => 'Street',
'Today' => 'Today', 'Today' => 'Today',
'Type' => 'Type', 'Type' => 'Type',
'Week' => 'Week', 'Week' => 'Week',
'Year' => 'Year', 'Year' => 'Year',
'Zip' => 'Zip', 'Zip' => 'Zip',
'Types' => 'Types', 'Types' => 'Types',
]]; ]];