mirror of
https://github.com/Karaka-Management/oms-WarehouseManagement.git
synced 2026-02-17 06:38:40 +00:00
Bulkl path fix
This commit is contained in:
parent
e05db1e491
commit
ba909f6387
|
|
@ -1,44 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Orange Management
|
|
||||||
*
|
|
||||||
* PHP Version 7.1
|
|
||||||
*
|
|
||||||
* @category TBD
|
|
||||||
* @package TBD
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @copyright Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @version 1.0.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
*/
|
|
||||||
namespace Modules\WarehouseManagement\Admin;
|
|
||||||
|
|
||||||
|
|
||||||
use phpOMS\DataStorage\Database\DatabasePool;
|
|
||||||
use phpOMS\Module\ActivateAbstract;
|
|
||||||
use phpOMS\Module\InfoManager;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Navigation class.
|
|
||||||
*
|
|
||||||
* @category Modules
|
|
||||||
* @package Modules\Admin
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
class Activate extends ActivateAbstract
|
|
||||||
{
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public static function activate(DatabasePool $dbPool, InfoManager $info)
|
|
||||||
{
|
|
||||||
parent::activate($dbPool, $info);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,44 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Orange Management
|
|
||||||
*
|
|
||||||
* PHP Version 7.1
|
|
||||||
*
|
|
||||||
* @category TBD
|
|
||||||
* @package TBD
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @copyright Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @version 1.0.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
*/
|
|
||||||
namespace Modules\WarehouseManagement\Admin;
|
|
||||||
|
|
||||||
|
|
||||||
use phpOMS\DataStorage\Database\DatabasePool;
|
|
||||||
use phpOMS\Module\DeactivateAbstract;
|
|
||||||
use phpOMS\Module\InfoManager;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Navigation class.
|
|
||||||
*
|
|
||||||
* @category Modules
|
|
||||||
* @package Modules\Admin
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
class Deactivate extends DeactivateAbstract
|
|
||||||
{
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public static function deactivate(DatabasePool $dbPool, InfoManager $info)
|
|
||||||
{
|
|
||||||
parent::deactivate($dbPool, $info);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
[
|
|
||||||
{
|
|
||||||
"id": 1001301001,
|
|
||||||
"pid": "754a08ddf8bcb1cf22f310f09206dd783d42f7dd",
|
|
||||||
"type": 2,
|
|
||||||
"subtype": 0,
|
|
||||||
"name": "Warehousing",
|
|
||||||
"uri": null,
|
|
||||||
"target": "self",
|
|
||||||
"icon": "fa fa-cube",
|
|
||||||
"order": 40,
|
|
||||||
"from": 1001300000,
|
|
||||||
"permission": null,
|
|
||||||
"parent": 0,
|
|
||||||
"children": [
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
|
|
@ -1,40 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Orange Management
|
|
||||||
*
|
|
||||||
* PHP Version 7.1
|
|
||||||
*
|
|
||||||
* @category TBD
|
|
||||||
* @package TBD
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @copyright Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @version 1.0.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
*/
|
|
||||||
namespace Modules\WarehouseManagement\Admin\Install;
|
|
||||||
use phpOMS\DataStorage\Database\DatabasePool;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Navigation class.
|
|
||||||
*
|
|
||||||
* @category Modules
|
|
||||||
* @package Modules\Admin
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
class Navigation
|
|
||||||
{
|
|
||||||
public static function install(string $path, DatabasePool $dbPool)
|
|
||||||
{
|
|
||||||
$navData = json_decode(file_get_contents(__DIR__ . '/Navigation.install.json'), true);
|
|
||||||
|
|
||||||
$class = '\\Modules\\Navigation\\Admin\\Installer';
|
|
||||||
/** @var $class \Modules\Navigation\Admin\Installer */
|
|
||||||
$class::installExternal($dbPool, $navData);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,239 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Orange Management
|
|
||||||
*
|
|
||||||
* PHP Version 7.1
|
|
||||||
*
|
|
||||||
* @category TBD
|
|
||||||
* @package TBD
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @copyright Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @version 1.0.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
*/
|
|
||||||
namespace Modules\WarehouseManagement\Admin;
|
|
||||||
|
|
||||||
use phpOMS\DataStorage\Database\DatabaseType;
|
|
||||||
use phpOMS\DataStorage\Database\DatabasePool;
|
|
||||||
use phpOMS\Module\InfoManager;
|
|
||||||
use phpOMS\Module\InstallerAbstract;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Navigation class.
|
|
||||||
*
|
|
||||||
* @category Modules
|
|
||||||
* @package Framework
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
class Installer extends InstallerAbstract
|
|
||||||
{
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public static function install(string $path, DatabasePool $dbPool, InfoManager $info)
|
|
||||||
{
|
|
||||||
parent::install($path, $dbPool, $info);
|
|
||||||
|
|
||||||
switch ($dbPool->get('core')->getType()) {
|
|
||||||
case DatabaseType::MYSQL:
|
|
||||||
$dbPool->get('core')->con->prepare(
|
|
||||||
'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'warehousing_stock` (
|
|
||||||
`WarehousingStockID` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`name` varchar(50) DEFAULT NULL,
|
|
||||||
PRIMARY KEY (`WarehousingStockID`)
|
|
||||||
)ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;'
|
|
||||||
)->execute();
|
|
||||||
|
|
||||||
$dbPool->get('core')->con->prepare(
|
|
||||||
'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'warehousing_stock_location` (
|
|
||||||
`WarehousingStockLocationID` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`name` varchar(50) DEFAULT NULL,
|
|
||||||
`stock` int(11) DEFAULT NULL,
|
|
||||||
PRIMARY KEY (`WarehousingStockLocationID`),
|
|
||||||
KEY `stock` (`stock`)
|
|
||||||
)ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;'
|
|
||||||
)->execute();
|
|
||||||
|
|
||||||
$dbPool->get('core')->con->prepare(
|
|
||||||
'ALTER TABLE `' . $dbPool->get('core')->prefix . 'warehousing_stock_location`
|
|
||||||
ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'warehousing_stock_location_ibfk_1` FOREIGN KEY (`stock`) REFERENCES `' . $dbPool->get('core')->prefix . 'warehousing_stock` (`WarehousingStockID`);'
|
|
||||||
)->execute();
|
|
||||||
|
|
||||||
// TODO: complete
|
|
||||||
$dbPool->get('core')->con->prepare(
|
|
||||||
'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'warehousing_article` (
|
|
||||||
`WarehousingArticleID` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`weight` int(11) DEFAULT NULL,
|
|
||||||
`dimension` varchar(17) DEFAULT NULL,
|
|
||||||
`volume` int(11) DEFAULT NULL,
|
|
||||||
`lot` tinyint(1) DEFAULT NULL,
|
|
||||||
`status` tinyint(2) DEFAULT NULL,
|
|
||||||
PRIMARY KEY (`WarehousingArticleID`)
|
|
||||||
)ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;'
|
|
||||||
)->execute();
|
|
||||||
|
|
||||||
$dbPool->get('core')->con->prepare(
|
|
||||||
'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'warehousing_article_disposal` (
|
|
||||||
`WarehousingArticleID` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`glas` int(11) DEFAULT NULL,
|
|
||||||
`paper` int(11) DEFAULT NULL,
|
|
||||||
`sheet` int(11) DEFAULT NULL,
|
|
||||||
`aluminium` int(11) DEFAULT NULL,
|
|
||||||
`synthetic` int(11) DEFAULT NULL,
|
|
||||||
`cardboard` int(11) DEFAULT NULL,
|
|
||||||
`composites` int(11) DEFAULT NULL,
|
|
||||||
`organic` int(11) DEFAULT NULL,
|
|
||||||
`pe` int(11) DEFAULT NULL,
|
|
||||||
`misc` int(11) DEFAULT NULL,
|
|
||||||
PRIMARY KEY (`WarehousingArticleID`)
|
|
||||||
)ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;'
|
|
||||||
)->execute();
|
|
||||||
|
|
||||||
// WE kann von client oder supplier kommen, deswegen type
|
|
||||||
$dbPool->get('core')->con->prepare(
|
|
||||||
'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'warehousing_arrival` (
|
|
||||||
`WarehousingArrivalID` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`arrivaldate` datetime DEFAULT NULL,
|
|
||||||
`from` int(11) DEFAULT NULL,
|
|
||||||
`type` tinyint(1) DEFAULT NULL,
|
|
||||||
`media` int(11) DEFAULT NULL,
|
|
||||||
`pcondition` tinyint(1) DEFAULT NULL,
|
|
||||||
`acondition` tinyint(1) DEFAULT NULL,
|
|
||||||
`amount` tinyint(1) DEFAULT NULL,
|
|
||||||
`checked` int(11) DEFAULT NULL,
|
|
||||||
`dnote` int(11) DEFAULT NULL,
|
|
||||||
PRIMARY KEY (`WarehousingArrivalID`),
|
|
||||||
KEY `checked` (`checked`),
|
|
||||||
KEY `dnote` (`dnote`)
|
|
||||||
)ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;'
|
|
||||||
)->execute();
|
|
||||||
|
|
||||||
$dbPool->get('core')->con->prepare(
|
|
||||||
'ALTER TABLE `' . $dbPool->get('core')->prefix . 'warehousing_arrival`
|
|
||||||
ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'warehousing_arrival_ibfk_1` FOREIGN KEY (`checked`) REFERENCES `' . $dbPool->get('core')->prefix . 'account` (`account_id`);'
|
|
||||||
)->execute();
|
|
||||||
|
|
||||||
/* info: amount will get increased and reduced based on invoices -> will result in a high amount of entries where the amount is 0 -> long lookup times for available lot lookup?! */
|
|
||||||
$dbPool->get('core')->con->prepare(
|
|
||||||
'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'warehousing_article_stock` (
|
|
||||||
`WarehousingArticleStockID` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`article` int(11) DEFAULT NULL,
|
|
||||||
`lot` varchar(256) DEFAULT NULL,
|
|
||||||
`sn` varchar(256) DEFAULT NULL,
|
|
||||||
`durability` datetime DEFAULT NULL,
|
|
||||||
`arrival` int(11) DEFAULT NULL,
|
|
||||||
`amount` mediumint(9) DEFAULT NULL,
|
|
||||||
`location` int(11) DEFAULT NULL,
|
|
||||||
PRIMARY KEY (`WarehousingArticleStockID`),
|
|
||||||
KEY `article` (`article`),
|
|
||||||
KEY `arrival` (`arrival`),
|
|
||||||
KEY `location` (`location`)
|
|
||||||
)ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;'
|
|
||||||
)->execute();
|
|
||||||
|
|
||||||
$dbPool->get('core')->con->prepare(
|
|
||||||
'ALTER TABLE `' . $dbPool->get('core')->prefix . 'warehousing_article_stock`
|
|
||||||
ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'warehousing_article_stock_ibfk_1` FOREIGN KEY (`article`) REFERENCES `' . $dbPool->get('core')->prefix . 'warehousing_article` (`WarehousingArticleID`),
|
|
||||||
ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'warehousing_article_stock_ibfk_2` FOREIGN KEY (`arrival`) REFERENCES `' . $dbPool->get('core')->prefix . 'warehousing_arrival` (`WarehousingArrivalID`),
|
|
||||||
ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'warehousing_article_stock_ibfk_3` FOREIGN KEY (`location`) REFERENCES `' . $dbPool->get('core')->prefix . 'warehousing_stock_location` (`WarehousingStockLocationID`);'
|
|
||||||
)->execute();
|
|
||||||
|
|
||||||
$dbPool->get('core')->con->prepare(
|
|
||||||
'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'warehousing_arrival_transfer` (
|
|
||||||
`WarehousingArrivalTransferID` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`location` int(11) DEFAULT NULL,
|
|
||||||
`amount` int(11) DEFAULT NULL,
|
|
||||||
`arrival` int(11) DEFAULT NULL,
|
|
||||||
PRIMARY KEY (`WarehousingArrivalTransferID`),
|
|
||||||
KEY `location` (`location`),
|
|
||||||
KEY `arrival` (`arrival`)
|
|
||||||
)ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;'
|
|
||||||
)->execute();
|
|
||||||
|
|
||||||
$dbPool->get('core')->con->prepare(
|
|
||||||
'ALTER TABLE `' . $dbPool->get('core')->prefix . 'warehousing_arrival_transfer`
|
|
||||||
ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'warehousing_arrival_transfer_ibfk_1` FOREIGN KEY (`location`) REFERENCES `' . $dbPool->get('core')->prefix . 'warehousing_article_stock` (`WarehousingArticleStockID`),
|
|
||||||
ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'warehousing_arrival_transfer_ibfk_2` FOREIGN KEY (`arrival`) REFERENCES `' . $dbPool->get('core')->prefix . 'warehousing_arrival` (`WarehousingArrivalID`);'
|
|
||||||
)->execute();
|
|
||||||
|
|
||||||
$dbPool->get('core')->con->prepare(
|
|
||||||
'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'warehousing_article_transfer` (
|
|
||||||
`WarehousingArticleTransferID` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`name` varchar(50) DEFAULT NULL,
|
|
||||||
`creator` int(11) DEFAULT NULL,
|
|
||||||
`created` datetime DEFAULT NULL,
|
|
||||||
PRIMARY KEY (`WarehousingArticleTransferID`),
|
|
||||||
KEY `creator` (`creator`)
|
|
||||||
)ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;'
|
|
||||||
)->execute();
|
|
||||||
|
|
||||||
$dbPool->get('core')->con->prepare(
|
|
||||||
'ALTER TABLE `' . $dbPool->get('core')->prefix . 'warehousing_article_transfer`
|
|
||||||
ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'warehousing_article_transfer_ibfk_1` FOREIGN KEY (`creator`) REFERENCES `' . $dbPool->get('core')->prefix . 'account` (`account_id`);'
|
|
||||||
)->execute();
|
|
||||||
|
|
||||||
$dbPool->get('core')->con->prepare(
|
|
||||||
'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'warehousing_article_transfer_single` (
|
|
||||||
`WarehousingArticleStockID` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`old` int(11) DEFAULT NULL,
|
|
||||||
`new` int(11) DEFAULT NULL,
|
|
||||||
`amount` int(11) DEFAULT NULL,
|
|
||||||
`transfer` int(11) DEFAULT NULL,
|
|
||||||
PRIMARY KEY (`WarehousingArticleStockID`),
|
|
||||||
KEY `old` (`old`),
|
|
||||||
KEY `new` (`new`),
|
|
||||||
KEY `transfer` (`transfer`)
|
|
||||||
)ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;'
|
|
||||||
)->execute();
|
|
||||||
|
|
||||||
$dbPool->get('core')->con->prepare(
|
|
||||||
'ALTER TABLE `' . $dbPool->get('core')->prefix . 'warehousing_article_transfer_single`
|
|
||||||
ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'warehousing_article_transfer_single_ibfk_1` FOREIGN KEY (`old`) REFERENCES `' . $dbPool->get('core')->prefix . 'warehousing_article_stock` (`WarehousingArticleStockID`),
|
|
||||||
ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'warehousing_article_transfer_single_ibfk_2` FOREIGN KEY (`new`) REFERENCES `' . $dbPool->get('core')->prefix . 'warehousing_article_stock` (`WarehousingArticleStockID`),
|
|
||||||
ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'warehousing_article_transfer_single_ibfk_3` FOREIGN KEY (`transfer`) REFERENCES `' . $dbPool->get('core')->prefix . 'warehousing_article_transfer` (`WarehousingArticleTransferID`);'
|
|
||||||
)->execute();
|
|
||||||
|
|
||||||
// TODO: maybe consider chaning shipCountry varchar to size 55 (based on ISO 3166-1) (same goes for sales department tables)
|
|
||||||
// TODO: create shipFrom table = business address of your company (maybe multiple)
|
|
||||||
// TODO: implement ups fields make sure to use multiple tables (multiple packages)
|
|
||||||
$dbPool->get('core')->con->prepare(
|
|
||||||
'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'warehousing_shipping` (
|
|
||||||
`WarehousingShippingID` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`shippingdate` datetime DEFAULT NULL,
|
|
||||||
`shipTo` varchar(50) DEFAULT NULL,
|
|
||||||
`shipFAO` varchar(30) DEFAULT NULL,
|
|
||||||
`shipAddr` varchar(50) DEFAULT NULL,
|
|
||||||
`shipCity` varchar(20) DEFAULT NULL,
|
|
||||||
`shipState` varchar(30) DEFAULT NULL,
|
|
||||||
`shipZip` varchar(20) DEFAULT NULL,
|
|
||||||
`shipCountry` varchar(30) DEFAULT NULL,
|
|
||||||
`shipPhone` varchar(30) DEFAULT NULL,
|
|
||||||
`shipFrom` int(11) DEFAULT NULL,
|
|
||||||
`carrier` varchar(30) DEFAULT NULL,
|
|
||||||
`tracking` varchar(7089) DEFAULT NULL,
|
|
||||||
`client` int(11) DEFAULT NULL,
|
|
||||||
`invoice` int(11) DEFAULT NULL,
|
|
||||||
`shipped` int(11) DEFAULT NULL,
|
|
||||||
PRIMARY KEY (`WarehousingShippingID`),
|
|
||||||
KEY `shipFrom` (`shipFrom`),
|
|
||||||
KEY `shipped` (`shipped`)
|
|
||||||
)ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;'
|
|
||||||
)->execute();
|
|
||||||
|
|
||||||
$dbPool->get('core')->con->prepare(
|
|
||||||
'ALTER TABLE `' . $dbPool->get('core')->prefix . 'warehousing_shipping`
|
|
||||||
ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'warehousing_shipping_ibfk_1` FOREIGN KEY (`shipFrom`) REFERENCES `' . $dbPool->get('core')->prefix . 'organization_address` (`organization_address_id`),
|
|
||||||
ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'warehousing_shipping_ibfk_2` FOREIGN KEY (`shipped`) REFERENCES `' . $dbPool->get('core')->prefix . 'account` (`account_id`);'
|
|
||||||
)->execute();
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
return [];
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
$moduleRoutes = [];
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
$moduleRoutes = [];
|
|
||||||
|
|
@ -1,61 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Orange Management
|
|
||||||
*
|
|
||||||
* PHP Version 7.1
|
|
||||||
*
|
|
||||||
* @category TBD
|
|
||||||
* @package TBD
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @copyright Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @version 1.0.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
*/
|
|
||||||
namespace Modules\WarehouseManagement\Admin;
|
|
||||||
|
|
||||||
|
|
||||||
use phpOMS\DataStorage\Database\DatabasePool;
|
|
||||||
use phpOMS\DataStorage\Database\Schema\Builder;
|
|
||||||
use phpOMS\Module\UninstallAbstract;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Navigation class.
|
|
||||||
*
|
|
||||||
* @category Modules
|
|
||||||
* @package Modules\Admin
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
class Uninstall extends UninstallAbstract
|
|
||||||
{
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public static function uninstall(DatabasePool $dbPool, InfoManager $info)
|
|
||||||
{
|
|
||||||
parent::uninstall($dbPool, $info);
|
|
||||||
|
|
||||||
$query = new Builder($dbPool->get());
|
|
||||||
|
|
||||||
$query->prefix($dbPool->get('core')->getPrefix())->drop(
|
|
||||||
'warehousing_shipping',
|
|
||||||
'warehousing_article_transfer_single',
|
|
||||||
'warehousing_article_transfer',
|
|
||||||
'warehousing_arrival_transfer',
|
|
||||||
'warehousing_article_stock',
|
|
||||||
'warehousing_arrival',
|
|
||||||
'warehousing_article_disposal',
|
|
||||||
'warehousing_article',
|
|
||||||
'warehousing_stock_location',
|
|
||||||
'warehousing_stock'
|
|
||||||
);
|
|
||||||
|
|
||||||
$dbPool->get()->con->prepare($query->toSql())->execute();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,46 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Orange Management
|
|
||||||
*
|
|
||||||
* PHP Version 7.1
|
|
||||||
*
|
|
||||||
* @category TBD
|
|
||||||
* @package TBD
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @copyright Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @version 1.0.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
*/
|
|
||||||
namespace Modules\WarehouseManagement\Admin;
|
|
||||||
|
|
||||||
|
|
||||||
use phpOMS\DataStorage\Database\DatabasePool;
|
|
||||||
use phpOMS\Module\UpdateAbstract;
|
|
||||||
use phpOMS\System\File\Directory;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Navigation class.
|
|
||||||
*
|
|
||||||
* @category Modules
|
|
||||||
* @package Modules\Admin
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
class Update extends UpdateAbstract
|
|
||||||
{
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public static function update(DatabasePool $dbPool, array $info)
|
|
||||||
{
|
|
||||||
Directory::deletePath(__DIR__ . '/Update');
|
|
||||||
mkdir('Update');
|
|
||||||
parent::update($dbPool, $info);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,80 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Orange Management
|
|
||||||
*
|
|
||||||
* PHP Version 7.1
|
|
||||||
*
|
|
||||||
* @category TBD
|
|
||||||
* @package TBD
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @copyright Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @version 1.0.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
*/
|
|
||||||
namespace Modules\WarehouseManagement;
|
|
||||||
|
|
||||||
use Modules\Navigation\Models\Navigation;
|
|
||||||
use Modules\Navigation\Views\NavigationView;
|
|
||||||
use phpOMS\Contract\RenderableInterface;
|
|
||||||
use phpOMS\Message\RequestAbstract;
|
|
||||||
use phpOMS\Message\ResponseAbstract;
|
|
||||||
use phpOMS\Module\ModuleAbstract;
|
|
||||||
use phpOMS\Module\WebInterface;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* WarehouseManagement class.
|
|
||||||
*
|
|
||||||
* @category Modules
|
|
||||||
* @package Modules\WarehouseManagement
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
class Controller extends ModuleAbstract implements WebInterface
|
|
||||||
{
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Module path.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
/* public */ const MODULE_PATH = __DIR__;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Module version.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
/* public */ const MODULE_VERSION = '1.0.0';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Module name.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
/* public */ const MODULE_NAME = 'WarehouseManagement';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Providing.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
protected static $providing = [];
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Dependencies.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
protected static $dependencies = [
|
|
||||||
];
|
|
||||||
}
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 48 KiB |
|
|
@ -1,402 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Orange Management
|
|
||||||
*
|
|
||||||
* PHP Version 7.1
|
|
||||||
*
|
|
||||||
* @category TBD
|
|
||||||
* @package TBD
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @copyright Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @version 1.0.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
*/
|
|
||||||
namespace Modules\Warehousing\Models;
|
|
||||||
|
|
||||||
use phpOMS\Pattern\Multition;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Warehouse class.
|
|
||||||
*
|
|
||||||
* @category Warehousing
|
|
||||||
* @package Framework
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
class Arrival implements Multition
|
|
||||||
{
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ID.
|
|
||||||
*
|
|
||||||
* @var int
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private $id = '';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Order.
|
|
||||||
*
|
|
||||||
* @var int
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private $order = '';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* From.
|
|
||||||
*
|
|
||||||
* @var \phpOMS\Datatypes\Address
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private $from = null;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Warehouse.
|
|
||||||
*
|
|
||||||
* @var \Modules\Warehousing\Models\Warehouse
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private $warehouse = null;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Date of arrival.
|
|
||||||
*
|
|
||||||
* @var \Datetime
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private $date = null;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Person who accepted the delivery.
|
|
||||||
*
|
|
||||||
* @var int
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private $acceptor = null;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Warehouse.
|
|
||||||
*
|
|
||||||
* @var \Modules\Warehousing\Models\ArrivalStatus
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private $status = null;
|
|
||||||
|
|
||||||
/* TODO: count, packaging, product count etc.... for every single position + where do you put it */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Arrival.
|
|
||||||
*
|
|
||||||
* @var \Modules\Warehousing\Models\Arrival[]
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private static $instances = [];
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor.
|
|
||||||
*
|
|
||||||
* @param int $id Arrival ID
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
private function __construct($id)
|
|
||||||
{
|
|
||||||
$this->id = $id;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function init($id)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function __clone()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Initializing object.
|
|
||||||
*
|
|
||||||
* @param int $id Arrival ID
|
|
||||||
*
|
|
||||||
* @return \Modules\Warehousing\Models\Arrival
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function getInstance($id)
|
|
||||||
{
|
|
||||||
if (!isset(self::$instances[$id])) {
|
|
||||||
self::$instances[$id] = new self($id);
|
|
||||||
}
|
|
||||||
|
|
||||||
return self::$instances[$id];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get ID.
|
|
||||||
*
|
|
||||||
* @return int
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function getId()
|
|
||||||
{
|
|
||||||
return $this->id;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get date of when the consignment arrived.
|
|
||||||
*
|
|
||||||
* @return \Datetime Date of arrival
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function getDate()
|
|
||||||
{
|
|
||||||
return $this->date;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set date of when the consignment arrived.
|
|
||||||
*
|
|
||||||
* @param \Datetime $date Date of arrival
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function setDate($date)
|
|
||||||
{
|
|
||||||
$this->date = $date;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get order.
|
|
||||||
*
|
|
||||||
* @return int
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function getOrder()
|
|
||||||
{
|
|
||||||
return $this->order;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set order.
|
|
||||||
*
|
|
||||||
* @param int $order Order Id
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function setOrder($order)
|
|
||||||
{
|
|
||||||
$this->order = $order;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get From.
|
|
||||||
*
|
|
||||||
* @return \phpOMS\Datatypes\Address
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function getFrom()
|
|
||||||
{
|
|
||||||
return $this->from;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set From.
|
|
||||||
*
|
|
||||||
* @param \phpOMS\Datatypes\Address $from Consignor
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function setFrom($from)
|
|
||||||
{
|
|
||||||
$this->from = $from;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get status.
|
|
||||||
*
|
|
||||||
* @return \Modules\Warehousing\Models\ArrivalStatus
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function getStatus()
|
|
||||||
{
|
|
||||||
return $this->status;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set status.
|
|
||||||
*
|
|
||||||
* @param \Modules\Warehousing\Models\ArrivalStatus
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function setStatus($status)
|
|
||||||
{
|
|
||||||
$this->status = $status;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get warehouse.
|
|
||||||
*
|
|
||||||
* @return \Modules\Warehousing\Models\Warehouse
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function getWarehouse()
|
|
||||||
{
|
|
||||||
return $this->warehouse;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get acceptor.
|
|
||||||
*
|
|
||||||
* @return int
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function getAcceptor()
|
|
||||||
{
|
|
||||||
return $this->acceptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set acceptor.
|
|
||||||
*
|
|
||||||
* @param int $acceptor Person who accepted the consignment
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function setAcceptor($acceptor)
|
|
||||||
{
|
|
||||||
$this->acceptor = $acceptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function delete()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function create()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function update()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function serialize()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function unserialize($data)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function exportJson($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function importJson($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function exportCsv($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function importCsv($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function exportExcel($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function importExcel($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function exportPdf($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function importPdf($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,42 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Orange Management
|
|
||||||
*
|
|
||||||
* PHP Version 7.1
|
|
||||||
*
|
|
||||||
* @category TBD
|
|
||||||
* @package TBD
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @copyright Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @version 1.0.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
*/
|
|
||||||
namespace Modules\Warehousing\Models;
|
|
||||||
|
|
||||||
use phpOMS\Datatypes\Enum;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Arrival status enum.
|
|
||||||
*
|
|
||||||
* @category Warehousing
|
|
||||||
* @package Modules
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
abstract class ArrivalStatus extends Enum
|
|
||||||
{
|
|
||||||
/* public */ const NONE = 0;
|
|
||||||
|
|
||||||
/* public */ const PENDING = 1;
|
|
||||||
|
|
||||||
/* public */ const CHECKING = 2;
|
|
||||||
|
|
||||||
/* public */ const SORTING = 3;
|
|
||||||
|
|
||||||
/* public */ const FINISHED = 4;
|
|
||||||
}
|
|
||||||
|
|
@ -1,487 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Orange Management
|
|
||||||
*
|
|
||||||
* PHP Version 7.1
|
|
||||||
*
|
|
||||||
* @category TBD
|
|
||||||
* @package TBD
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @copyright Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @version 1.0.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
*/ /* TODO: maybe make this a framework object? and let warehousing, sales, purchase extend this */
|
|
||||||
namespace Modules\Warehousing\Models;
|
|
||||||
|
|
||||||
use phpOMS\Pattern\Multition;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Article class.
|
|
||||||
*
|
|
||||||
* @category Warehousing
|
|
||||||
* @package Framework
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
class Article implements Multition
|
|
||||||
{
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Article ID.
|
|
||||||
*
|
|
||||||
* @var int
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private $id = null;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Name.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private $name = '';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Description.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private $description = '';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Matchcode.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private $matchcode = '';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sector.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private $sector = null;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Group.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private $group = null;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Suppliers.
|
|
||||||
*
|
|
||||||
* supplier price leadtime
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private $suppliers = null;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Localization strings.
|
|
||||||
*
|
|
||||||
* [en] Name - Description
|
|
||||||
*
|
|
||||||
* @var array
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private $invoice_i18n = [];
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Prizes.
|
|
||||||
*
|
|
||||||
* [id] name country state prize discount% discountA bonus-in-kind groupA groupB amount event
|
|
||||||
*
|
|
||||||
* @var array
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private $prizes = [];
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Active supplier.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private $pprice = null;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Created.
|
|
||||||
*
|
|
||||||
* @var \Datetime
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private $created = null;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creator.
|
|
||||||
*
|
|
||||||
* @var \phpOMS\Models\User
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private $creator = null;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Article.
|
|
||||||
*
|
|
||||||
* @var \Modules\Warehousing\Models\Article[]
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private static $instances = [];
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor.
|
|
||||||
*
|
|
||||||
* @param int $id Article ID
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function __construct($id)
|
|
||||||
{
|
|
||||||
$this->id = $id;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function init($id)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function __clone()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Initializing object.
|
|
||||||
*
|
|
||||||
* @param int $id Article ID
|
|
||||||
*
|
|
||||||
* @return \Modules\Warehousing\Models\Article
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function getInstance($id)
|
|
||||||
{
|
|
||||||
if (!isset(self::$instances[$id])) {
|
|
||||||
self::$instances[$id] = new self($id);
|
|
||||||
}
|
|
||||||
|
|
||||||
return self::$instances[$id];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get ID.
|
|
||||||
*
|
|
||||||
* @return int
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function getId()
|
|
||||||
{
|
|
||||||
return $this->id;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get name.
|
|
||||||
*
|
|
||||||
* @return string
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function getName()
|
|
||||||
{
|
|
||||||
return $this->name;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set name.
|
|
||||||
*
|
|
||||||
* @param string $name Name of the article
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function setName($name)
|
|
||||||
{
|
|
||||||
$this->name = $name;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get matchcode.
|
|
||||||
*
|
|
||||||
* @return string
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function getMatchcode()
|
|
||||||
{
|
|
||||||
return $this->matchcode;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set matchcode.
|
|
||||||
*
|
|
||||||
* @param string $matchcode Matchcode of the article
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function setMatchcode($matchcode)
|
|
||||||
{
|
|
||||||
$this->matchcode = $matchcode;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get description.
|
|
||||||
*
|
|
||||||
* @return string
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function getDescription()
|
|
||||||
{
|
|
||||||
return $this->description;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set description.
|
|
||||||
*
|
|
||||||
* @param string $desc Description of the article
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function setDescription($desc)
|
|
||||||
{
|
|
||||||
$this->description = $desc;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get created.
|
|
||||||
*
|
|
||||||
* @return \Datetime
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function getCreated()
|
|
||||||
{
|
|
||||||
return $this->created;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set created.
|
|
||||||
*
|
|
||||||
* @param \Datetime $created Date of when the article got created
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function setCreated($created)
|
|
||||||
{
|
|
||||||
$this->created = $created;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get creator.
|
|
||||||
*
|
|
||||||
* @return \phpOMS\Models\User
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function getCreator()
|
|
||||||
{
|
|
||||||
return $this->creator;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set creator.
|
|
||||||
*
|
|
||||||
* @param \phpOMS\Models\User $creator Creator ID
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function setCreator($creator)
|
|
||||||
{
|
|
||||||
$this->creator = $creator;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Add price to pricelist.
|
|
||||||
*
|
|
||||||
* @param array $price Price
|
|
||||||
* @param bool $db Update DB and cache?
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function addPrice($price, $db = true)
|
|
||||||
{
|
|
||||||
$id = 0; /* insert and get id */
|
|
||||||
$this->prices[$id] = $price;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Remove price from pricelist.
|
|
||||||
*
|
|
||||||
* @param int $id Price ID
|
|
||||||
* @param bool $db Update DB and cache?
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function removePrice($id, $db = true)
|
|
||||||
{
|
|
||||||
if (isset($this->prices[$id])) {
|
|
||||||
unset($this->prices[$id]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Add price to pricelist.
|
|
||||||
*
|
|
||||||
* @param int $id Price ID
|
|
||||||
* @param array $price Price
|
|
||||||
* @param bool $db Update DB and cache?
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function editPrice($id, $price, $db = true)
|
|
||||||
{
|
|
||||||
if (isset($this->prices[$id])) {
|
|
||||||
$this->prices[$id] = $price;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function delete()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function create()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function update()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function serialize()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function unserialize($data)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function exportJson($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function importJson($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function exportCsv($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function importCsv($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function exportExcel($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function importExcel($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function exportPdf($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function importPdf($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,87 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Orange Management
|
|
||||||
*
|
|
||||||
* PHP Version 7.1
|
|
||||||
*
|
|
||||||
* @category TBD
|
|
||||||
* @package TBD
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @copyright Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @version 1.0.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
*/
|
|
||||||
namespace Modules\Warehousing\Models;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Counting list class.
|
|
||||||
*
|
|
||||||
* @category Warehousing
|
|
||||||
* @package Framework
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
class CountingList
|
|
||||||
{
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function exportJson($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function importJson($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function exportCsv($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function importCsv($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function exportExcel($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function importExcel($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function exportPdf($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function importPdf($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,42 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Orange Management
|
|
||||||
*
|
|
||||||
* PHP Version 7.1
|
|
||||||
*
|
|
||||||
* @category TBD
|
|
||||||
* @package TBD
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @copyright Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @version 1.0.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
*/
|
|
||||||
namespace Modules\Warehousing\Models;
|
|
||||||
|
|
||||||
use phpOMS\Datatypes\Enum;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Packaging status enum.
|
|
||||||
*
|
|
||||||
* @category Warehousing
|
|
||||||
* @package Modules
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
abstract class PackagingStatus extends Enum
|
|
||||||
{
|
|
||||||
/* public */ const PENDING = 0;
|
|
||||||
|
|
||||||
/* public */ const PACKING = 1;
|
|
||||||
|
|
||||||
/* public */ const PACKED = 2;
|
|
||||||
|
|
||||||
/* public */ const SUSPENDED = 3;
|
|
||||||
|
|
||||||
/* public */ const CANCELED = 4;
|
|
||||||
}
|
|
||||||
|
|
@ -1,400 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Orange Management
|
|
||||||
*
|
|
||||||
* PHP Version 7.1
|
|
||||||
*
|
|
||||||
* @category TBD
|
|
||||||
* @package TBD
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @copyright Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @version 1.0.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
*/
|
|
||||||
namespace Modules\Warehousing\Models;
|
|
||||||
|
|
||||||
use phpOMS\Pattern\Multition;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Warehouse class.
|
|
||||||
*
|
|
||||||
* @category Warehousing
|
|
||||||
* @package Framework
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
class Shipping implements Multition
|
|
||||||
{
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ID.
|
|
||||||
*
|
|
||||||
* @var int
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private $id = 0;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Order.
|
|
||||||
*
|
|
||||||
* @var int
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private $order = '';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* From.
|
|
||||||
*
|
|
||||||
* @var \phpOMS\Datatypes\Address
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private $to = null;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Warehouse.
|
|
||||||
*
|
|
||||||
* @var int
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private $warehouse = '';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Date of arrival.
|
|
||||||
*
|
|
||||||
* @var \Datetime
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private $delivered = null;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Person who sent the delivery.
|
|
||||||
*
|
|
||||||
* @var int
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private $sender = null;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Warehouse.
|
|
||||||
*
|
|
||||||
* @var \Modules\Warehousing\Models\ArrivalStatus
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private $status = null;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Shipping.
|
|
||||||
*
|
|
||||||
* @var \Modules\Warehousing\Models\Article[]
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private static $instances = [];
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor.
|
|
||||||
*
|
|
||||||
* @param int $id Article ID
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function __construct($id)
|
|
||||||
{
|
|
||||||
$this->id = $id;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Initializing object.
|
|
||||||
*
|
|
||||||
* @param int $id Article ID
|
|
||||||
*
|
|
||||||
* @return \Modules\Warehousing\Models\Article
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public static function getInstance($id)
|
|
||||||
{
|
|
||||||
if (!isset(self::$instances[$id])) {
|
|
||||||
self::$instances[$id] = new self($id);
|
|
||||||
}
|
|
||||||
|
|
||||||
return self::$instances[$id];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function init($id)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function __clone()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get ID.
|
|
||||||
*
|
|
||||||
* @return int
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function getId()
|
|
||||||
{
|
|
||||||
return $this->id;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get order.
|
|
||||||
*
|
|
||||||
* @return int
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function getOrder()
|
|
||||||
{
|
|
||||||
return $this->order;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set order.
|
|
||||||
*
|
|
||||||
* @param int $order Order ID
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function setOrder($order)
|
|
||||||
{
|
|
||||||
$this->order = $order;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get delivered.
|
|
||||||
*
|
|
||||||
* @return \Datetime
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function getDelivered()
|
|
||||||
{
|
|
||||||
return $this->delivered;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set delivered.
|
|
||||||
*
|
|
||||||
* @param \Datetime $delivered Date of delivery
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function setDelivered($delivered)
|
|
||||||
{
|
|
||||||
$this->delivered = $delivered;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get To.
|
|
||||||
*
|
|
||||||
* @return \phpOMS\Datatypes\Address
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function getTo()
|
|
||||||
{
|
|
||||||
return $this->to;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set To.
|
|
||||||
*
|
|
||||||
* @param \phpOMS\Datatypes\Address $to Receiver
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function setTo($to)
|
|
||||||
{
|
|
||||||
$this->to = $to;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get status.
|
|
||||||
*
|
|
||||||
* @return \Modules\Warehousing\Models\ArrivalStatus
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function getStatus()
|
|
||||||
{
|
|
||||||
return $this->status;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set status.
|
|
||||||
*
|
|
||||||
* @param \Modules\Warehousing\Models\ArrivalStatus
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function setStatus($status)
|
|
||||||
{
|
|
||||||
$this->status = $status;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get warehouse.
|
|
||||||
*
|
|
||||||
* @return \Modules\Warehousing\Models\Warehouse
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function getWarehouse()
|
|
||||||
{
|
|
||||||
return $this->warehouse;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get acceptor.
|
|
||||||
*
|
|
||||||
* @return int
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function getSender()
|
|
||||||
{
|
|
||||||
return $this->sender;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set sender.
|
|
||||||
*
|
|
||||||
* @param int $sender Person who accepted the consignment
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function setSender($sender)
|
|
||||||
{
|
|
||||||
$this->sender = $sender;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function delete()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function create()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function update()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function serialize()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function unserialize($data)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function exportJson($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function importJson($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function exportCsv($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function importCsv($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function exportExcel($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function importExcel($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function exportPdf($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function importPdf($path)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,243 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Orange Management
|
|
||||||
*
|
|
||||||
* PHP Version 7.1
|
|
||||||
*
|
|
||||||
* @category TBD
|
|
||||||
* @package TBD
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @copyright Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @version 1.0.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
*/
|
|
||||||
namespace Modules\Warehousing\Models;
|
|
||||||
|
|
||||||
use phpOMS\Pattern\Multition;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Warehouse class.
|
|
||||||
*
|
|
||||||
* @category Warehousing
|
|
||||||
* @package Framework
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
class Warehouse implements Multition
|
|
||||||
{
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Name.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private $name = '';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Description.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private $description = '';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Location of the warehouse.
|
|
||||||
*
|
|
||||||
* @var \phpOMS\Datatypes\Location
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private $location = null;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Warehouse.
|
|
||||||
*
|
|
||||||
* @var \Modules\Warehousing\Models\Warehouse[]
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
private static $instances = [];
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor.
|
|
||||||
*
|
|
||||||
* @param int $id Warehouse ID
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function __construct($id)
|
|
||||||
{
|
|
||||||
$this->id = $id;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Initializing object.
|
|
||||||
*
|
|
||||||
* @param int $id Warehouse ID
|
|
||||||
*
|
|
||||||
* @return \Modules\Warehousing\Models\Warehouse
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public static function getInstance($id)
|
|
||||||
{
|
|
||||||
if (!isset(self::$instances[$id])) {
|
|
||||||
self::$instances[$id] = new self($id);
|
|
||||||
}
|
|
||||||
|
|
||||||
return self::$instances[$id];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function init($id)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function __clone()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get ID.
|
|
||||||
*
|
|
||||||
* @return int
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function getId()
|
|
||||||
{
|
|
||||||
return $this->id;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get name.
|
|
||||||
*
|
|
||||||
* @return string
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function getName()
|
|
||||||
{
|
|
||||||
return $this->name;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set name.
|
|
||||||
*
|
|
||||||
* @param string $name Name of the article
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function setName($name)
|
|
||||||
{
|
|
||||||
$this->name = $name;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get name.
|
|
||||||
*
|
|
||||||
* @return string
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function getDescription()
|
|
||||||
{
|
|
||||||
return $this->description;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set name.
|
|
||||||
*
|
|
||||||
* @param string $description Description of the warehouse
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function setDescription($description)
|
|
||||||
{
|
|
||||||
$this->description = $description;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get location.
|
|
||||||
*
|
|
||||||
* @return \phpOMS\Datatypes\Location
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function getLocation()
|
|
||||||
{
|
|
||||||
return $this->location;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set location.
|
|
||||||
*
|
|
||||||
* @param \phpOMS\Datatypes\Location $location Location of the warehouse
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function setLocation($location)
|
|
||||||
{
|
|
||||||
$this->location = $location;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function delete()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function create()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function update()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function serialize()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function unserialize($data)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Orange Management
|
|
||||||
*
|
|
||||||
* PHP Version 7.1
|
|
||||||
*
|
|
||||||
* @category TBD
|
|
||||||
* @package TBD
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @copyright Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @version 1.0.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
*/
|
|
||||||
return ['Navigation' => [
|
|
||||||
'Arrival' => 'Arrival',
|
|
||||||
'Articles' => 'Articles',
|
|
||||||
'Shipping' => 'Shipping',
|
|
||||||
'Stock' => 'Stock',
|
|
||||||
'Warehousing' => 'Warehousing',
|
|
||||||
]];
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Orange Management
|
|
||||||
*
|
|
||||||
* PHP Version 7.1
|
|
||||||
*
|
|
||||||
* @category TBD
|
|
||||||
* @package TBD
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @copyright Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @version 1.0.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
*/
|
|
||||||
$MODLANG[1] = [
|
|
||||||
];
|
|
||||||
|
|
@ -1,45 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Orange Management
|
|
||||||
*
|
|
||||||
* PHP Version 7.1
|
|
||||||
*
|
|
||||||
* @category TBD
|
|
||||||
* @package TBD
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @copyright Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @version 1.0.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
*/
|
|
||||||
return ['WarehouseManagement' => [
|
|
||||||
'All' => 'All',
|
|
||||||
'Amount' => 'Amount',
|
|
||||||
'Arrivals' => 'Arrivals',
|
|
||||||
'Articles' => 'Articles',
|
|
||||||
'Article' => 'Article',
|
|
||||||
'City' => 'City',
|
|
||||||
'Consignee' => 'Consignee',
|
|
||||||
'Consignor' => 'Consignor',
|
|
||||||
'Country' => 'Country',
|
|
||||||
'Date' => 'Date',
|
|
||||||
'Description' => 'Description',
|
|
||||||
'Interval' => 'Interval',
|
|
||||||
'Location' => 'Location',
|
|
||||||
'Matchcode' => 'Matchcode',
|
|
||||||
'Month' => 'Month',
|
|
||||||
'Name' => 'Name',
|
|
||||||
'Order' => 'Order',
|
|
||||||
'Quantity' => 'Quantity',
|
|
||||||
'Reference' => 'Reference',
|
|
||||||
'Shipping' => 'Shipping',
|
|
||||||
'Statistics' => 'Statistics',
|
|
||||||
'Stock' => 'Stock',
|
|
||||||
'Street' => 'Street',
|
|
||||||
'Today' => 'Today',
|
|
||||||
'Type' => 'Type',
|
|
||||||
'Week' => 'Week',
|
|
||||||
'Year' => 'Year',
|
|
||||||
'Zip' => 'Zip',
|
|
||||||
]];
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Orange Management
|
|
||||||
*
|
|
||||||
* PHP Version 7.1
|
|
||||||
*
|
|
||||||
* @category TBD
|
|
||||||
* @package TBD
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @copyright Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @version 1.0.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
*/
|
|
||||||
return ['Navigation' => [
|
|
||||||
'Arrival' => 'Arrival',
|
|
||||||
'Articles' => 'Articles',
|
|
||||||
'Shipping' => 'Shipping',
|
|
||||||
'Stock' => 'Stock',
|
|
||||||
'Warehousing' => 'Warehousing',
|
|
||||||
]];
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Orange Management
|
|
||||||
*
|
|
||||||
* PHP Version 7.1
|
|
||||||
*
|
|
||||||
* @category TBD
|
|
||||||
* @package TBD
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @copyright Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @version 1.0.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
*/
|
|
||||||
$MODLANG[1] = [
|
|
||||||
];
|
|
||||||
|
|
@ -1,45 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Orange Management
|
|
||||||
*
|
|
||||||
* PHP Version 7.1
|
|
||||||
*
|
|
||||||
* @category TBD
|
|
||||||
* @package TBD
|
|
||||||
* @author OMS Development Team <dev@oms.com>
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
* @copyright Dennis Eichhorn
|
|
||||||
* @license OMS License 1.0
|
|
||||||
* @version 1.0.0
|
|
||||||
* @link http://orange-management.com
|
|
||||||
*/
|
|
||||||
return ['WarehouseManagement' => [
|
|
||||||
'All' => 'All',
|
|
||||||
'Amount' => 'Amount',
|
|
||||||
'Arrivals' => 'Arrivals',
|
|
||||||
'Articles' => 'Articles',
|
|
||||||
'Article' => 'Article',
|
|
||||||
'City' => 'City',
|
|
||||||
'Consignee' => 'Consignee',
|
|
||||||
'Consignor' => 'Consignor',
|
|
||||||
'Country' => 'Country',
|
|
||||||
'Date' => 'Date',
|
|
||||||
'Description' => 'Description',
|
|
||||||
'Interval' => 'Interval',
|
|
||||||
'Location' => 'Location',
|
|
||||||
'Matchcode' => 'Matchcode',
|
|
||||||
'Month' => 'Month',
|
|
||||||
'Name' => 'Name',
|
|
||||||
'Order' => 'Order',
|
|
||||||
'Quantity' => 'Quantity',
|
|
||||||
'Reference' => 'Reference',
|
|
||||||
'Shipping' => 'Shipping',
|
|
||||||
'Statistics' => 'Statistics',
|
|
||||||
'Stock' => 'Stock',
|
|
||||||
'Street' => 'Street',
|
|
||||||
'Today' => 'Today',
|
|
||||||
'Type' => 'Type',
|
|
||||||
'Week' => 'Week',
|
|
||||||
'Year' => 'Year',
|
|
||||||
'Zip' => 'Zip',
|
|
||||||
]];
|
|
||||||
44
info.json
44
info.json
|
|
@ -1,44 +0,0 @@
|
||||||
{
|
|
||||||
"name": {
|
|
||||||
"id": 1001300000,
|
|
||||||
"internal": "WarehouseManagement",
|
|
||||||
"external": "OMS Warehousing"
|
|
||||||
},
|
|
||||||
"version": "1.0.0",
|
|
||||||
"requirements": {
|
|
||||||
"phpOMS": "1.0.0",
|
|
||||||
"phpOMS-db": "1.0.0"
|
|
||||||
},
|
|
||||||
"creator": {
|
|
||||||
"name": "Orange Management",
|
|
||||||
"website": "www.spl1nes.com"
|
|
||||||
},
|
|
||||||
"description": "Warehousing module.",
|
|
||||||
"directory": "WarehouseManagement",
|
|
||||||
"dependencies": {
|
|
||||||
"Admin" : "1.0.0"
|
|
||||||
},
|
|
||||||
"providing": {
|
|
||||||
"Navigation": "*"
|
|
||||||
},
|
|
||||||
"load": [
|
|
||||||
{
|
|
||||||
"pid": [
|
|
||||||
"2bea808a85e14f973f3076105a97cd46b4551819"
|
|
||||||
],
|
|
||||||
"type": 4,
|
|
||||||
"for": 0,
|
|
||||||
"from": "WarehouseManagement",
|
|
||||||
"file": "WarehouseManagement"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pid": [
|
|
||||||
"754a08ddf8bcb1cf22f310f09206dd783d42f7dd"
|
|
||||||
],
|
|
||||||
"type": 5,
|
|
||||||
"from": "WarehouseManagement",
|
|
||||||
"for": "Navigation",
|
|
||||||
"file": "Navigation"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user