mirror of
https://github.com/Karaka-Management/oms-WarehouseManagement.git
synced 2026-01-26 21:48:40 +00:00
fix phpcs findings
This commit is contained in:
parent
d14831175b
commit
7c3ff61372
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\WarehouseManagement\Admin\Install
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\WarehouseManagement\Admin\Install
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -19,10 +19,10 @@ use phpOMS\DataStorage\Database\DatabasePool;
|
|||
/**
|
||||
* Navigation class.
|
||||
*
|
||||
* @package Modules\WarehouseManagement\Admin\Install
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\WarehouseManagement\Admin\Install
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Navigation
|
||||
{
|
||||
|
|
@ -34,7 +34,7 @@ class Navigation
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public static function install(string $path, DatabasePool $dbPool) : void
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\WarehouseManagement\Admin
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\WarehouseManagement\Admin
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -19,10 +19,10 @@ use phpOMS\Module\InstallerAbstract;
|
|||
/**
|
||||
* Installer class.
|
||||
*
|
||||
* @package Modules\WarehouseManagement\Admin
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\WarehouseManagement\Admin
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Installer extends InstallerAbstract
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\WarehouseManagement\Admin
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\WarehouseManagement\Admin
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -19,10 +19,10 @@ use phpOMS\Module\StatusAbstract;
|
|||
/**
|
||||
* Navigation class.
|
||||
*
|
||||
* @package Modules\WarehouseManagement\Admin
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\WarehouseManagement\Admin
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Status extends StatusAbstract
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\WarehouseManagement\Admin
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\WarehouseManagement\Admin
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -19,10 +19,10 @@ use phpOMS\Module\UninstallerAbstract;
|
|||
/**
|
||||
* Uninstaller class.
|
||||
*
|
||||
* @package Modules\WarehouseManagement\Admin
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\WarehouseManagement\Admin
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Uninstaller extends UninstallerAbstract
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\WarehouseManagement\Admin
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\WarehouseManagement\Admin
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -19,10 +19,10 @@ use phpOMS\Module\UpdaterAbstract;
|
|||
/**
|
||||
* Updater class.
|
||||
*
|
||||
* @package Modules\WarehouseManagement\Admin
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\WarehouseManagement\Admin
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Updater extends UpdaterAbstract
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\WarehouseManagement
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\WarehouseManagement
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -17,10 +17,10 @@ namespace Modules\WarehouseManagement\Controller;
|
|||
/**
|
||||
* WarehouseManagement class.
|
||||
*
|
||||
* @package Modules\WarehouseManagement
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\WarehouseManagement
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
final class BackendController extends Controller
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\WarehouseManagement
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\WarehouseManagement
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -20,10 +20,10 @@ use phpOMS\Module\WebInterface;
|
|||
/**
|
||||
* WarehouseManagement class.
|
||||
*
|
||||
* @package Modules\WarehouseManagement
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\WarehouseManagement
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Controller extends ModuleAbstract implements WebInterface
|
||||
{
|
||||
|
|
@ -31,7 +31,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
/**
|
||||
* Module path.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public const MODULE_PATH = __DIR__ . '/../';
|
||||
|
|
@ -39,7 +39,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
/**
|
||||
* Module version.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public const MODULE_VERSION = '1.0.0';
|
||||
|
|
@ -47,7 +47,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
/**
|
||||
* Module name.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public const MODULE_NAME = 'WarehouseManagement';
|
||||
|
|
@ -55,7 +55,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
/**
|
||||
* Module id.
|
||||
*
|
||||
* @var int
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public const MODULE_ID = 1001300000;
|
||||
|
|
@ -63,7 +63,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
/**
|
||||
* Providing.
|
||||
*
|
||||
* @var string[]
|
||||
* @var string[]
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static array $providing = [];
|
||||
|
|
@ -71,7 +71,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
/**
|
||||
* Dependencies.
|
||||
*
|
||||
* @var string[]
|
||||
* @var string[]
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static array $dependencies = [];
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Warehousing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Warehousing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -17,10 +17,10 @@ namespace Modules\WarehouseManagement\Models;
|
|||
/**
|
||||
* Warehouse class.
|
||||
*
|
||||
* @package Modules\Warehousing\Models
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Warehousing\Models
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Arrival
|
||||
{
|
||||
|
|
@ -28,7 +28,7 @@ class Arrival
|
|||
/**
|
||||
* ID.
|
||||
*
|
||||
* @var int
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private int $id = 0;
|
||||
|
|
@ -36,7 +36,7 @@ class Arrival
|
|||
/**
|
||||
* Order.
|
||||
*
|
||||
* @var int
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private int $order = '';
|
||||
|
|
@ -44,7 +44,7 @@ class Arrival
|
|||
/**
|
||||
* From.
|
||||
*
|
||||
* @var \phpOMS\Stdlib\Base\Address
|
||||
* @var \phpOMS\Stdlib\Base\Address
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $from = null;
|
||||
|
|
@ -52,7 +52,7 @@ class Arrival
|
|||
/**
|
||||
* Warehouse.
|
||||
*
|
||||
* @var \Modules\Warehousing\Models\Warehouse
|
||||
* @var \Modules\Warehousing\Models\Warehouse
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $warehouse = null;
|
||||
|
|
@ -60,7 +60,7 @@ class Arrival
|
|||
/**
|
||||
* Date of arrival.
|
||||
*
|
||||
* @var null|\DateTime
|
||||
* @var null|\DateTime
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private ?\DateTime $date = null;
|
||||
|
|
@ -68,7 +68,7 @@ class Arrival
|
|||
/**
|
||||
* Person who accepted the delivery.
|
||||
*
|
||||
* @var int
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private int $acceptor = null;
|
||||
|
|
@ -76,7 +76,7 @@ class Arrival
|
|||
/**
|
||||
* Warehouse.
|
||||
*
|
||||
* @var \Modules\Warehousing\Models\ArrivalStatus
|
||||
* @var \Modules\Warehousing\Models\ArrivalStatus
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $status = null;
|
||||
|
|
@ -86,7 +86,7 @@ class Arrival
|
|||
/**
|
||||
* Arrival.
|
||||
*
|
||||
* @var \Modules\Warehousing\Models\Arrival[]
|
||||
* @var \Modules\Warehousing\Models\Arrival[]
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private static array $instances = [];
|
||||
|
|
@ -96,7 +96,7 @@ class Arrival
|
|||
*
|
||||
* @param int $id Arrival ID
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private function __construct($id)
|
||||
{
|
||||
|
|
@ -120,7 +120,7 @@ class Arrival
|
|||
*
|
||||
* @return \Modules\Warehousing\Models\Arrival
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getInstance($id)
|
||||
{
|
||||
|
|
@ -136,7 +136,7 @@ class Arrival
|
|||
*
|
||||
* @return int
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
|
|
@ -148,7 +148,7 @@ class Arrival
|
|||
*
|
||||
* @return \DateTime Date of arrival
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getDate()
|
||||
{
|
||||
|
|
@ -162,7 +162,7 @@ class Arrival
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setDate($date) : void
|
||||
{
|
||||
|
|
@ -174,7 +174,7 @@ class Arrival
|
|||
*
|
||||
* @return int
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getOrder()
|
||||
{
|
||||
|
|
@ -188,7 +188,7 @@ class Arrival
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setOrder($order) : void
|
||||
{
|
||||
|
|
@ -200,7 +200,7 @@ class Arrival
|
|||
*
|
||||
* @return \phpOMS\Stdlib\Base\Address
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getFrom()
|
||||
{
|
||||
|
|
@ -214,7 +214,7 @@ class Arrival
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setFrom($from) : void
|
||||
{
|
||||
|
|
@ -226,7 +226,7 @@ class Arrival
|
|||
*
|
||||
* @return \Modules\Warehousing\Models\ArrivalStatus
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
|
|
@ -240,7 +240,7 @@ class Arrival
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setStatus($status) : void
|
||||
{
|
||||
|
|
@ -252,7 +252,7 @@ class Arrival
|
|||
*
|
||||
* @return \Modules\Warehousing\Models\Warehouse
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getWarehouse()
|
||||
{
|
||||
|
|
@ -264,7 +264,7 @@ class Arrival
|
|||
*
|
||||
* @return int
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getAcceptor()
|
||||
{
|
||||
|
|
@ -278,7 +278,7 @@ class Arrival
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setAcceptor($acceptor) : void
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Warehousing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Warehousing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -19,10 +19,10 @@ use phpOMS\Stdlib\Base\Enum;
|
|||
/**
|
||||
* Arrival status enum.
|
||||
*
|
||||
* @package Modules\Warehousing\Models
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Warehousing\Models
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
abstract class ArrivalStatus extends Enum
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,21 +4,21 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Warehousing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Warehousing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/ /* TODO: maybe make this a framework object? and let warehousing, sales, purchase extend this */
|
||||
namespace Modules\WarehouseManagement\Models;
|
||||
|
||||
/**
|
||||
* Article class.
|
||||
*
|
||||
* @package Modules\Warehousing\Models
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Warehousing\Models
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Article
|
||||
{
|
||||
|
|
@ -26,7 +26,7 @@ class Article
|
|||
/**
|
||||
* Article ID.
|
||||
*
|
||||
* @var int
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private int $id = null;
|
||||
|
|
@ -34,7 +34,7 @@ class Article
|
|||
/**
|
||||
* Name.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private string $name = '';
|
||||
|
|
@ -42,7 +42,7 @@ class Article
|
|||
/**
|
||||
* Description.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private string $description = '';
|
||||
|
|
@ -50,7 +50,7 @@ class Article
|
|||
/**
|
||||
* Matchcode.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private string $matchcode = '';
|
||||
|
|
@ -58,7 +58,7 @@ class Article
|
|||
/**
|
||||
* Sector.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private string $sector = null;
|
||||
|
|
@ -66,7 +66,7 @@ class Article
|
|||
/**
|
||||
* Group.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private string $group = null;
|
||||
|
|
@ -76,7 +76,7 @@ class Article
|
|||
*
|
||||
* supplier price leadtime
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private string $suppliers = null;
|
||||
|
|
@ -86,7 +86,7 @@ class Article
|
|||
*
|
||||
* [en] Name - Description
|
||||
*
|
||||
* @var array
|
||||
* @var array
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private array $invoice_i18n = [];
|
||||
|
|
@ -96,7 +96,7 @@ class Article
|
|||
*
|
||||
* [id] name country state prize discount% discountA bonus-in-kind groupA groupB amount event
|
||||
*
|
||||
* @var array
|
||||
* @var array
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private array $prizes = [];
|
||||
|
|
@ -104,7 +104,7 @@ class Article
|
|||
/**
|
||||
* Active supplier.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private string $pprice = null;
|
||||
|
|
@ -112,7 +112,7 @@ class Article
|
|||
/**
|
||||
* Created.
|
||||
*
|
||||
* @var null|\DateTime
|
||||
* @var null|\DateTime
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private ?\DateTime $created = null;
|
||||
|
|
@ -120,7 +120,7 @@ class Article
|
|||
/**
|
||||
* Creator.
|
||||
*
|
||||
* @var \phpOMS\Models\User
|
||||
* @var \phpOMS\Models\User
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $creator = null;
|
||||
|
|
@ -128,7 +128,7 @@ class Article
|
|||
/**
|
||||
* Article.
|
||||
*
|
||||
* @var \Modules\Warehousing\Models\Article[]
|
||||
* @var \Modules\Warehousing\Models\Article[]
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private static array $instances = [];
|
||||
|
|
@ -138,7 +138,7 @@ class Article
|
|||
*
|
||||
* @param int $id Article ID
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function __construct($id)
|
||||
{
|
||||
|
|
@ -162,7 +162,7 @@ class Article
|
|||
*
|
||||
* @return \Modules\Warehousing\Models\Article
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getInstance($id)
|
||||
{
|
||||
|
|
@ -178,7 +178,7 @@ class Article
|
|||
*
|
||||
* @return int
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
|
|
@ -190,7 +190,7 @@ class Article
|
|||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
|
|
@ -204,7 +204,7 @@ class Article
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setName($name) : void
|
||||
{
|
||||
|
|
@ -216,7 +216,7 @@ class Article
|
|||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getMatchcode()
|
||||
{
|
||||
|
|
@ -230,7 +230,7 @@ class Article
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setMatchcode($matchcode) : void
|
||||
{
|
||||
|
|
@ -242,7 +242,7 @@ class Article
|
|||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
|
|
@ -256,7 +256,7 @@ class Article
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setDescription($desc) : void
|
||||
{
|
||||
|
|
@ -268,7 +268,7 @@ class Article
|
|||
*
|
||||
* @return \DateTime
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getCreated()
|
||||
{
|
||||
|
|
@ -282,7 +282,7 @@ class Article
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setCreated($created) : void
|
||||
{
|
||||
|
|
@ -294,7 +294,7 @@ class Article
|
|||
*
|
||||
* @return \phpOMS\Models\User
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getCreator()
|
||||
{
|
||||
|
|
@ -308,7 +308,7 @@ class Article
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setCreator($creator) : void
|
||||
{
|
||||
|
|
@ -323,7 +323,7 @@ class Article
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function addPrice($price, $db = true) : void
|
||||
{
|
||||
|
|
@ -339,7 +339,7 @@ class Article
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function removePrice($id, $db = true) : void
|
||||
{
|
||||
|
|
@ -357,7 +357,7 @@ class Article
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function editPrice($id, $price, $db = true) : void
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Warehousing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Warehousing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -17,10 +17,10 @@ namespace Modules\WarehouseManagement\Models;
|
|||
/**
|
||||
* Counting list class.
|
||||
*
|
||||
* @package Modules\Warehousing\Models
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Warehousing\Models
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class CountingList
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Warehousing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Warehousing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -19,10 +19,10 @@ use phpOMS\Stdlib\Base\Enum;
|
|||
/**
|
||||
* Packaging status enum.
|
||||
*
|
||||
* @package Modules\Warehousing\Models
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Warehousing\Models
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
abstract class PackagingStatus extends Enum
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Warehousing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Warehousing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -17,10 +17,10 @@ namespace Modules\WarehouseManagement\Models;
|
|||
/**
|
||||
* Warehouse class.
|
||||
*
|
||||
* @package Modules\Warehousing\Models
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Warehousing\Models
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Shipping
|
||||
{
|
||||
|
|
@ -28,7 +28,7 @@ class Shipping
|
|||
/**
|
||||
* ID.
|
||||
*
|
||||
* @var int
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private int $id = 0;
|
||||
|
|
@ -36,7 +36,7 @@ class Shipping
|
|||
/**
|
||||
* Order.
|
||||
*
|
||||
* @var intstring
|
||||
* @var intstring
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $order = '';
|
||||
|
|
@ -44,7 +44,7 @@ class Shipping
|
|||
/**
|
||||
* From.
|
||||
*
|
||||
* @var \phpOMS\Stdlib\Base\Address
|
||||
* @var \phpOMS\Stdlib\Base\Address
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $to = null;
|
||||
|
|
@ -52,7 +52,7 @@ class Shipping
|
|||
/**
|
||||
* Warehouse.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private string $warehouse = '';
|
||||
|
|
@ -60,7 +60,7 @@ class Shipping
|
|||
/**
|
||||
* Date of arrival.
|
||||
*
|
||||
* @var null|\DateTime
|
||||
* @var null|\DateTime
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private ?\DateTime $delivered = null;
|
||||
|
|
@ -68,7 +68,7 @@ class Shipping
|
|||
/**
|
||||
* Person who sent the delivery.
|
||||
*
|
||||
* @var int
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private int $sender = null;
|
||||
|
|
@ -76,7 +76,7 @@ class Shipping
|
|||
/**
|
||||
* Warehouse.
|
||||
*
|
||||
* @var \Modules\Warehousing\Models\ArrivalStatus
|
||||
* @var \Modules\Warehousing\Models\ArrivalStatus
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $status = null;
|
||||
|
|
@ -84,7 +84,7 @@ class Shipping
|
|||
/**
|
||||
* Shipping.
|
||||
*
|
||||
* @var \Modules\Warehousing\Models\Article[]
|
||||
* @var \Modules\Warehousing\Models\Article[]
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private static array $instances = [];
|
||||
|
|
@ -94,7 +94,7 @@ class Shipping
|
|||
*
|
||||
* @param int $id Article ID
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function __construct($id)
|
||||
{
|
||||
|
|
@ -108,7 +108,7 @@ class Shipping
|
|||
*
|
||||
* @return \Modules\Warehousing\Models\Article
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public static function getInstance($id)
|
||||
{
|
||||
|
|
@ -134,7 +134,7 @@ class Shipping
|
|||
*
|
||||
* @return int
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
|
|
@ -146,7 +146,7 @@ class Shipping
|
|||
*
|
||||
* @return int
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getOrder()
|
||||
{
|
||||
|
|
@ -160,7 +160,7 @@ class Shipping
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setOrder($order) : void
|
||||
{
|
||||
|
|
@ -172,7 +172,7 @@ class Shipping
|
|||
*
|
||||
* @return \DateTime
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getDelivered()
|
||||
{
|
||||
|
|
@ -186,7 +186,7 @@ class Shipping
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setDelivered($delivered) : void
|
||||
{
|
||||
|
|
@ -198,7 +198,7 @@ class Shipping
|
|||
*
|
||||
* @return \phpOMS\Stdlib\Base\Address
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getTo()
|
||||
{
|
||||
|
|
@ -212,7 +212,7 @@ class Shipping
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setTo($to) : void
|
||||
{
|
||||
|
|
@ -224,7 +224,7 @@ class Shipping
|
|||
*
|
||||
* @return \Modules\Warehousing\Models\ArrivalStatus
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
|
|
@ -238,7 +238,7 @@ class Shipping
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setStatus($status) : void
|
||||
{
|
||||
|
|
@ -250,7 +250,7 @@ class Shipping
|
|||
*
|
||||
* @return \Modules\Warehousing\Models\Warehouse
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getWarehouse()
|
||||
{
|
||||
|
|
@ -262,7 +262,7 @@ class Shipping
|
|||
*
|
||||
* @return int
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getSender()
|
||||
{
|
||||
|
|
@ -276,7 +276,7 @@ class Shipping
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setSender($sender) : void
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Warehousing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Warehousing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -17,10 +17,10 @@ namespace Modules\WarehouseManagement\Models;
|
|||
/**
|
||||
* Warehouse class.
|
||||
*
|
||||
* @package Modules\Warehousing\Models
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Warehousing\Models
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Warehouse
|
||||
{
|
||||
|
|
@ -28,7 +28,7 @@ class Warehouse
|
|||
/**
|
||||
* Name.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private string $name = '';
|
||||
|
|
@ -36,7 +36,7 @@ class Warehouse
|
|||
/**
|
||||
* Description.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private string $description = '';
|
||||
|
|
@ -44,7 +44,7 @@ class Warehouse
|
|||
/**
|
||||
* Location of the warehouse.
|
||||
*
|
||||
* @var \phpOMS\Stdlib\Base\Location
|
||||
* @var \phpOMS\Stdlib\Base\Location
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $location = null;
|
||||
|
|
@ -52,7 +52,7 @@ class Warehouse
|
|||
/**
|
||||
* Warehouse.
|
||||
*
|
||||
* @var \Modules\Warehousing\Models\Warehouse[]
|
||||
* @var \Modules\Warehousing\Models\Warehouse[]
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private static array $instances = [];
|
||||
|
|
@ -62,7 +62,7 @@ class Warehouse
|
|||
*
|
||||
* @param int $id Warehouse ID
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function __construct($id)
|
||||
{
|
||||
|
|
@ -76,7 +76,7 @@ class Warehouse
|
|||
*
|
||||
* @return \Modules\Warehousing\Models\Warehouse
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public static function getInstance($id)
|
||||
{
|
||||
|
|
@ -102,7 +102,7 @@ class Warehouse
|
|||
*
|
||||
* @return int
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
|
|
@ -114,7 +114,7 @@ class Warehouse
|
|||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
|
|
@ -128,7 +128,7 @@ class Warehouse
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setName($name) : void
|
||||
{
|
||||
|
|
@ -140,7 +140,7 @@ class Warehouse
|
|||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
|
|
@ -154,7 +154,7 @@ class Warehouse
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setDescription($description) : void
|
||||
{
|
||||
|
|
@ -166,7 +166,7 @@ class Warehouse
|
|||
*
|
||||
* @return \phpOMS\Stdlib\Base\Location
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getLocation()
|
||||
{
|
||||
|
|
@ -180,7 +180,7 @@ class Warehouse
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setLocation($location) : void
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package TBD
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package TBD
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
return ['Navigation' => [
|
||||
'Arrival' => 'Arrival',
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package TBD
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package TBD
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
$MODLANG[1] = [
|
||||
];
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package TBD
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package TBD
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
return ['WarehouseManagement' => [
|
||||
'All' => 'All',
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user