mirror of
https://github.com/Karaka-Management/oms-WarehouseManagement.git
synced 2026-01-29 23:18:41 +00:00
autofixes
This commit is contained in:
parent
0d55443e76
commit
0f397efa21
|
|
@ -89,8 +89,8 @@ final class Installer extends InstallerAbstract
|
|||
/**
|
||||
* Install default stock types
|
||||
*
|
||||
* @param ApplicationAbstract $app Application
|
||||
* @param array $types Stock types
|
||||
* @param ApplicationAbstract $app Application
|
||||
* @param array $types Stock types
|
||||
*
|
||||
* @return array
|
||||
*
|
||||
|
|
|
|||
|
|
@ -27,10 +27,8 @@ use Modules\WarehouseManagement\Models\Attribute\LotAttributeValueMapper;
|
|||
use phpOMS\Localization\BaseStringL11n;
|
||||
use phpOMS\Localization\ISO639x1Enum;
|
||||
use phpOMS\Message\Http\RequestStatusCode;
|
||||
use phpOMS\Message\NotificationLevel;
|
||||
use phpOMS\Message\RequestAbstract;
|
||||
use phpOMS\Message\ResponseAbstract;
|
||||
use phpOMS\Model\Message\FormValidation;
|
||||
|
||||
/**
|
||||
* WarehouseManagement class.
|
||||
|
|
|
|||
|
|
@ -125,6 +125,4 @@ final class ApiController extends Controller
|
|||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ final class ApiStockTypeController extends Controller
|
|||
*/
|
||||
private function createStockTypeFromRequest(RequestAbstract $request) : StockType
|
||||
{
|
||||
$stockType = new StockType();
|
||||
$stockType = new StockType();
|
||||
$stockType->name = $request->getDataString('name') ?? '';
|
||||
$stockType->setL11n($request->getDataString('title') ?? '', $request->getDataString('language') ?? ISO639x1Enum::_EN);
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ final class LotAttributeMapper extends DataMapperFactory
|
|||
*/
|
||||
public const COLUMNS = [
|
||||
'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_value' => ['name' => 'warehousemgmt_lot_attr_value', 'type' => 'int', 'internal' => 'value'],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ final class StockLocationMapper extends DataMapperFactory
|
|||
'warehousemgmt_stocklocation_id' => ['name' => 'warehousemgmt_stocklocation_id', 'type' => 'int', 'internal' => 'id'],
|
||||
'warehousemgmt_stocklocation_name' => ['name' => 'warehousemgmt_stocklocation_name', 'type' => 'string', 'internal' => 'name'],
|
||||
'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_y' => ['name' => 'warehousemgmt_stocklocation_y', 'type' => 'int', 'internal' => 'y'],
|
||||
'warehousemgmt_stocklocation_z' => ['name' => 'warehousemgmt_stocklocation_z', 'type' => 'int', 'internal' => 'z'],
|
||||
|
|
|
|||
|
|
@ -37,9 +37,9 @@ final class StockMapper extends DataMapperFactory
|
|||
* @since 1.0.0
|
||||
*/
|
||||
public const COLUMNS = [
|
||||
'warehousemgmt_stock_id' => ['name' => 'warehousemgmt_stock_id', 'type' => 'int', 'internal' => 'id'],
|
||||
'warehousemgmt_stock_name' => ['name' => 'warehousemgmt_stock_name', 'type' => 'string', 'internal' => 'name'],
|
||||
'warehousemgmt_stock_unit' => ['name' => 'warehousemgmt_stock_unit', 'type' => 'int', 'internal' => 'unit'],
|
||||
'warehousemgmt_stock_id' => ['name' => 'warehousemgmt_stock_id', 'type' => 'int', 'internal' => 'id'],
|
||||
'warehousemgmt_stock_name' => ['name' => 'warehousemgmt_stock_name', 'type' => 'string', 'internal' => 'name'],
|
||||
'warehousemgmt_stock_unit' => ['name' => 'warehousemgmt_stock_unit', 'type' => 'int', 'internal' => 'unit'],
|
||||
'warehousemgmt_stock_address' => ['name' => 'warehousemgmt_stock_address', 'type' => 'int', 'internal' => 'address'],
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ final class StockShelfMapper extends DataMapperFactory
|
|||
'warehousemgmt_stockshelf_id' => ['name' => 'warehousemgmt_stockshelf_id', 'type' => 'int', 'internal' => 'id'],
|
||||
'warehousemgmt_stockshelf_name' => ['name' => 'warehousemgmt_stockshelf_name', 'type' => 'string', 'internal' => 'name'],
|
||||
'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_y' => ['name' => 'warehousemgmt_stockshelf_y', 'type' => 'int', 'internal' => 'y'],
|
||||
'warehousemgmt_stockshelf_z' => ['name' => 'warehousemgmt_stockshelf_z', 'type' => 'int', 'internal' => 'z'],
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ declare(strict_types=1);
|
|||
|
||||
namespace Modules\WarehouseManagement\Models;
|
||||
|
||||
use Modules\Admin\Models\AddressMapper;
|
||||
use phpOMS\DataStorage\Database\Mapper\DataMapperFactory;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -13,35 +13,35 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['WarehouseManagement' => [
|
||||
'All' => 'All',
|
||||
'Amount' => 'Amount',
|
||||
'Arrivals' => 'Arrivals',
|
||||
'Article' => 'Article',
|
||||
'Articles' => 'Articles',
|
||||
'City' => 'City',
|
||||
'Consignee' => 'Consignee',
|
||||
'Consignor' => 'Consignor',
|
||||
'Country' => 'Country',
|
||||
'Date' => 'Date',
|
||||
'Description' => 'Description',
|
||||
'Interval' => 'Interval',
|
||||
'Location' => 'Location',
|
||||
'Locations' => 'Locations',
|
||||
'Matchcode' => 'Matchcode',
|
||||
'Month' => 'Month',
|
||||
'Name' => 'Name',
|
||||
'Order' => 'Order',
|
||||
'Quantity' => 'Quantity',
|
||||
'Reference' => 'Reference',
|
||||
'Shipping' => 'Shipping',
|
||||
'Statistics' => 'Statistics',
|
||||
'Stock' => 'Stock',
|
||||
'Stocks' => 'Stocks',
|
||||
'Street' => 'Street',
|
||||
'Today' => 'Today',
|
||||
'Type' => 'Type',
|
||||
'Week' => 'Week',
|
||||
'Year' => 'Year',
|
||||
'Zip' => 'Zip',
|
||||
'All' => 'All',
|
||||
'Amount' => 'Amount',
|
||||
'Arrivals' => 'Arrivals',
|
||||
'Article' => 'Article',
|
||||
'Articles' => 'Articles',
|
||||
'City' => 'City',
|
||||
'Consignee' => 'Consignee',
|
||||
'Consignor' => 'Consignor',
|
||||
'Country' => 'Country',
|
||||
'Date' => 'Date',
|
||||
'Description' => 'Description',
|
||||
'Interval' => 'Interval',
|
||||
'Location' => 'Location',
|
||||
'Locations' => 'Locations',
|
||||
'Matchcode' => 'Matchcode',
|
||||
'Month' => 'Month',
|
||||
'Name' => 'Name',
|
||||
'Order' => 'Order',
|
||||
'Quantity' => 'Quantity',
|
||||
'Reference' => 'Reference',
|
||||
'Shipping' => 'Shipping',
|
||||
'Statistics' => 'Statistics',
|
||||
'Stock' => 'Stock',
|
||||
'Stocks' => 'Stocks',
|
||||
'Street' => 'Street',
|
||||
'Today' => 'Today',
|
||||
'Type' => 'Type',
|
||||
'Week' => 'Week',
|
||||
'Year' => 'Year',
|
||||
'Zip' => 'Zip',
|
||||
'Types' => 'Types',
|
||||
]];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user