diff --git a/Admin/Activate.php b/Admin/Activate.php deleted file mode 100644 index 7bfeac8..0000000 --- a/Admin/Activate.php +++ /dev/null @@ -1,44 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ -namespace Modules\ItemManagement\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 - * @author Dennis Eichhorn - * @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); - } -} diff --git a/Admin/Deactivate.php b/Admin/Deactivate.php deleted file mode 100644 index f08bc6b..0000000 --- a/Admin/Deactivate.php +++ /dev/null @@ -1,44 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ -namespace Modules\ItemManagement\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 - * @author Dennis Eichhorn - * @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); - } -} diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json deleted file mode 100644 index d5d4137..0000000 --- a/Admin/Install/Navigation.install.json +++ /dev/null @@ -1,250 +0,0 @@ -[ - { - "id": 1004805001, - "pid": "754a08ddf8bcb1cf22f310f09206dd783d42f7dd", - "type": 2, - "subtype": 1, - "name": "Articles", - "uri": "/{/lang}/backend/sales/item/list?{?}", - "target": "self", - "icon": null, - "order": 10, - "from": "ItemManagement", - "permission": null, - "parent": 1001601001, - "children": [ - { - "id": 1004805101, - "pid": "e3d6f58661c6f42309e273740944547c93ff76a0", - "type": 3, - "subtype": 1, - "name": "List", - "uri": "/{/lang}/backend/sales/item/list?{?}", - "target": "self", - "icon": null, - "order": 1, - "from": "ItemManagement", - "permission": null, - "parent": 1004805001, - "children": [ - { - "id": 1004805301, - "pid": "4a41925386568368ad4dd823b3945199e8e2628e", - "type": 3, - "subtype": 1, - "name": "Article", - "uri": "/{/lang}/backend/sales/item/single?{?}", - "target": "self", - "icon": null, - "order": 1, - "from": "ItemManagement", - "permission": null, - "parent": 1004805101, - "children": [] - } - ] - }, - { - "id": 1004805201, - "pid": "e3d6f58661c6f42309e273740944547c93ff76a0", - "type": 3, - "subtype": 1, - "name": "Create", - "uri": "/{/lang}/backend/sales/item/create?{?}", - "target": "self", - "icon": null, - "order": 5, - "from": "ItemManagement", - "permission": null, - "parent": 1004805001, - "children": [] - } - ] - }, - { - "id": 1004806001, - "pid": "754a08ddf8bcb1cf22f310f09206dd783d42f7dd", - "type": 2, - "subtype": 1, - "name": "Articles", - "uri": "/{/lang}/backend/purchase/item/list?{?}", - "target": "self", - "icon": null, - "order": 10, - "from": "ItemManagement", - "permission": null, - "parent": 1002101001, - "children": [ - { - "id": 1004806101, - "pid": "e9b2adda603aaee5f852c05fabe394bd56cf0426", - "type": 3, - "subtype": 1, - "name": "List", - "uri": "/{/lang}/backend/purchase/item/list?{?}", - "target": "self", - "icon": null, - "order": 1, - "from": "ItemManagement", - "permission": null, - "parent": 1004806001, - "children": [ - { - "id": 1004806301, - "pid": "4a41925386568368ad4dd823b3945199e8e2628e", - "type": 3, - "subtype": 1, - "name": "Article", - "uri": "/{/lang}/backend/purchase/item/single?{?}", - "target": "self", - "icon": null, - "order": 1, - "from": "ItemManagement", - "permission": null, - "parent": 1004806101, - "children": [] - } - ] - }, - { - "id": 1004806201, - "pid": "e9b2adda603aaee5f852c05fabe394bd56cf0426", - "type": 3, - "subtype": 1, - "name": "Create", - "uri": "/{/lang}/backend/purchase/item/create?{?}", - "target": "self", - "icon": null, - "order": 5, - "from": "ItemManagement", - "permission": null, - "parent": 1004806001, - "children": [] - } - ] - }, - { - "id": 1004807001, - "pid": "754a08ddf8bcb1cf22f310f09206dd783d42f7dd", - "type": 2, - "subtype": 1, - "name": "Stock", - "uri": "/{/lang}/backend/warehousing/stock/list?{?}", - "target": "self", - "icon": null, - "order": 10, - "from": "ItemManagement", - "permission": null, - "parent": 1001301001, - "children": [ - { - "id": 1004807101, - "pid": "69737ca3a3dfa6a55a1a0402474ac634c371ea9f", - "type": 3, - "subtype": 1, - "name": "List", - "uri": "/{/lang}/backend/warehousing/stock/list?{?}", - "target": "self", - "icon": null, - "order": 1, - "from": "ItemManagement", - "permission": null, - "parent": 1004807001, - "children": [ - { - "id": 1004807301, - "pid": "4a41925386568368ad4dd823b3945199e8e2628e", - "type": 3, - "subtype": 1, - "name": "Article", - "uri": "/{/lang}/backend/warehousing/stock/single?{?}", - "target": "self", - "icon": null, - "order": 1, - "from": "ItemManagement", - "permission": null, - "parent": 1004807101, - "children": [] - } - ] - }, - { - "id": 1004807201, - "pid": "69737ca3a3dfa6a55a1a0402474ac634c371ea9f", - "type": 3, - "subtype": 1, - "name": "Create", - "uri": "/{/lang}/backend/warehousing/stock/create?{?}", - "target": "self", - "icon": null, - "order": 5, - "from": "ItemManagement", - "permission": null, - "parent": 1004807001, - "children": [] - } - ] - }, - { - "id": 1004808001, - "pid": "754a08ddf8bcb1cf22f310f09206dd783d42f7dd", - "type": 2, - "subtype": 1, - "name": "Articles", - "uri": "/{/lang}/backend/production/item/list?{?}", - "target": "self", - "icon": null, - "order": 5, - "from": "ItemManagement", - "permission": null, - "parent": 1004301001, - "children": [ - { - "id": 1004808101, - "pid": "ac2ed3d0212c51b3ba19a5c862eca728c3cb9d18", - "type": 3, - "subtype": 1, - "name": "List", - "uri": "/{/lang}/backend/production/item/list?{?}", - "target": "self", - "icon": null, - "order": 1, - "from": "ItemManagement", - "permission": null, - "parent": 1004808001, - "children": [ - { - "id": 1004808301, - "pid": "ac2ed3d0212c51b3ba19a5c862eca728c3cb9d18", - "type": 3, - "subtype": 1, - "name": "Article", - "uri": "/{/lang}/backend/production/item/single?{?}", - "target": "self", - "icon": null, - "order": 1, - "from": "ItemManagement", - "permission": null, - "parent": 1004808101, - "children": [] - } - ] - }, - { - "id": 1004808201, - "pid": "ac2ed3d0212c51b3ba19a5c862eca728c3cb9d18", - "type": 3, - "subtype": 1, - "name": "Create", - "uri": "/{/lang}/backend/production/item/create?{?}", - "target": "self", - "icon": null, - "order": 5, - "from": "ItemManagement", - "permission": null, - "parent": 1004807001, - "children": [] - } - ] - } -] diff --git a/Admin/Install/Navigation.php b/Admin/Install/Navigation.php deleted file mode 100644 index 084fcbc..0000000 --- a/Admin/Install/Navigation.php +++ /dev/null @@ -1,40 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ -namespace Modules\ItemManagement\Admin\Install; -use phpOMS\DataStorage\Database\DatabasePool; - -/** - * Navigation class. - * - * @category Modules - * @package Modules\Admin - * @author OMS Development Team - * @author Dennis Eichhorn - * @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); - } -} diff --git a/Admin/Installer.php b/Admin/Installer.php deleted file mode 100644 index 3473c56..0000000 --- a/Admin/Installer.php +++ /dev/null @@ -1,57 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ -namespace Modules\ItemManagement\Admin; - -use phpOMS\DataStorage\Database\DatabaseType; -use phpOMS\DataStorage\Database\DatabasePool; -use phpOMS\Module\InfoManager; -use phpOMS\Module\InstallerAbstract; - -/** - * Item Reference install class. - * - * @category Modules - * @package Modules\ItemReference - * @author OMS Development Team - * @author Dennis Eichhorn - * @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 . 'itemreference` ( - `itemreference_id` int(11) NOT NULL AUTO_INCREMENT, - `itemreference_name` varchar(30) DEFAULT NULL, - `itemreference_desc` varchar(256) DEFAULT NULL, - PRIMARY KEY (`itemreference_id`) - )ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;' - )->execute(); - break; - } - } -} diff --git a/Admin/Routes/Web/Backend.php b/Admin/Routes/Web/Backend.php deleted file mode 100644 index 2c63803..0000000 --- a/Admin/Routes/Web/Backend.php +++ /dev/null @@ -1,42 +0,0 @@ - [ - [ - 'dest' => '\Modules\ItemManagement\Controller:viewItemManagementSalesList', - 'verb' => RouteVerb::GET, - ], - ], - '^.*/backend/purchase/item/list.*$' => [ - [ - 'dest' => '\Modules\ItemManagement\Controller:viewItemManagementPurchaseList', - 'verb' => RouteVerb::GET, - ], - ], - '^.*/backend/warehousing/stock/list.*$' => [ - [ - 'dest' => '\Modules\ItemManagement\Controller:viewItemManagementWarehousingList', - 'verb' => RouteVerb::GET, - ], - ], - '^.*/backend/sales/item/create.*$' => [ - [ - 'dest' => '\Modules\ItemManagement\Controller:viewItemManagementSalesCreate', - 'verb' => RouteVerb::GET, - ], - ], - '^.*/backend/purchase/item/create.*$' => [ - [ - 'dest' => '\Modules\ItemManagement\Controller:viewItemManagementPurchaseCreate', - 'verb' => RouteVerb::GET, - ], - ], - '.*/backend/warehousing/stock/create.*$' => [ - [ - 'dest' => '\Modules\ItemManagement\Controller:viewItemManagementWarehousingCreate', - 'verb' => RouteVerb::GET, - ], - ], -]; diff --git a/Admin/Routes/console.php b/Admin/Routes/console.php deleted file mode 100644 index 1ecbfac..0000000 --- a/Admin/Routes/console.php +++ /dev/null @@ -1,3 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ -namespace Modules\ItemManagement\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 - * @author Dennis Eichhorn - * @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( - 'itemreference' - ); - - $dbPool->get()->con->prepare($query->toSql())->execute(); - } -} diff --git a/Admin/Update.php b/Admin/Update.php deleted file mode 100644 index 411f082..0000000 --- a/Admin/Update.php +++ /dev/null @@ -1,46 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ -namespace Modules\ItemManagement\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 - * @author Dennis Eichhorn - * @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); - } -} diff --git a/Controller.php b/Controller.php deleted file mode 100644 index cebfec8..0000000 --- a/Controller.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ -namespace Modules\ItemManagement; - -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; -use phpOMS\Views\View; -use phpOMS\Views\ViewLayout; - -/** - * ItemManagement controller class. - * - * @category Modules - * @package Modules\ItemManagement - * @author OMS Development Team - * @author Dennis Eichhorn - * @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 = 'ItemManagement'; - - /** - * Providing. - * - * @var string - * @since 1.0.0 - */ - protected static $providing = []; - - /** - * Dependencies. - * - * @var string - * @since 1.0.0 - */ - protected static $dependencies = [ - ]; - - /** - * @param RequestAbstract $request Request - * @param ResponseAbstract $response Response - * @param mixed $data Generic data - * - * @return RenderableInterface - * - * @since 1.0.0 - * @author Dennis Eichhorn - */ - public function viewItemManagementSalesList(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable - { - $view = new View($this->app, $request, $response); - $view->setTemplate('/Modules/ItemManagement/Theme/Backend/sales-item-list'); - $view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1004805001, $request, $response)); - - return $view; - } - - /** - * @param RequestAbstract $request Request - * @param ResponseAbstract $response Response - * @param mixed $data Generic data - * - * @return RenderableInterface - * - * @since 1.0.0 - * @author Dennis Eichhorn - */ - public function viewItemManagementPurchaseList(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable - { - $view = new View($this->app, $request, $response); - $view->setTemplate('/Modules/ItemManagement/Theme/Backend/purchase-item-list'); - $view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1004806001, $request, $response)); - - return $view; - } - - /** - * @param RequestAbstract $request Request - * @param ResponseAbstract $response Response - * @param mixed $data Generic data - * - * @return RenderableInterface - * - * @since 1.0.0 - * @author Dennis Eichhorn - */ - public function viewItemManagementWarehousingList(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable - { - $view = new View($this->app, $request, $response); - $view->setTemplate('/Modules/ItemManagement/Theme/Backend/stock-list'); - $view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1004807001, $request, $response)); - - return $view; - } - - /** - * @param RequestAbstract $request Request - * @param ResponseAbstract $response Response - * @param mixed $data Generic data - * - * @return RenderableInterface - * - * @since 1.0.0 - * @author Dennis Eichhorn - */ - public function viewItemManagementSalesCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable - { - $view = new View($this->app, $request, $response); - $view->setTemplate('/Modules/ItemManagement/Theme/Backend/item-create'); - $view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1004805001, $request, $response)); - - return $view; - } - - /** - * @param RequestAbstract $request Request - * @param ResponseAbstract $response Response - * @param mixed $data Generic data - * - * @return RenderableInterface - * - * @since 1.0.0 - * @author Dennis Eichhorn - */ - public function viewItemManagementPurchaseCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable - { - $view = new View($this->app, $request, $response); - $view->setTemplate('/Modules/ItemManagement/Theme/Backend/item-create'); - $view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1004806001, $request, $response)); - - return $view; - } - - /** - * @param RequestAbstract $request Request - * @param ResponseAbstract $response Response - * @param mixed $data Generic data - * - * @return RenderableInterface - * - * @since 1.0.0 - * @author Dennis Eichhorn - */ - public function viewItemManagementWarehousingCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable - { - $view = new View($this->app, $request, $response); - $view->setTemplate('/Modules/ItemManagement/Theme/Backend/item-create'); - $view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1004807001, $request, $response)); - - return $view; - } - -} diff --git a/README.md b/README.md deleted file mode 100644 index f7a9873..0000000 --- a/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# OMS Item Reference Module - -The OMS Item Reference Module contains the core data of all items that are in some relation to a organizaion or company. - -## Relation - -Modules that make use of this core module are sales, purchasing & production modules. \ No newline at end of file diff --git a/Theme/Backend/Lang/Navigation.en.lang.php b/Theme/Backend/Lang/Navigation.en.lang.php deleted file mode 100644 index 4c4005e..0000000 --- a/Theme/Backend/Lang/Navigation.en.lang.php +++ /dev/null @@ -1,20 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ -return ['Navigation' => [ - 'Analyze' => 'Analyze', - 'List' => 'List', - 'Create' => 'Create', -]]; diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php deleted file mode 100644 index 499e496..0000000 --- a/Theme/Backend/Lang/en.lang.php +++ /dev/null @@ -1,106 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ -return ['ItemManagement' => [ - 'Accounting' => 'Accounting', - 'IsActive' => 'Active?', - 'All' => 'All', - 'Article' => 'Article', - 'Articlegroup' => 'Articlegroup', - 'Attribute' => 'Attribute', - 'Available' => 'Available', - 'Bonus' => 'Bonus', - 'ClientGroup' => 'Client/Group', - 'Commission' => 'Commission', - 'Container' => 'Container', - 'CostCenter' => 'CostCenter', - 'CostIndicator' => 'Cost Indicator', - 'CostObject' => 'CostObject', - 'Country' => 'Country', - 'CustomsID' => 'Customs ID', - 'Date' => 'Date', - 'Description' => 'Description', - 'Discount' => 'Discount', - 'DiscountP' => 'Discount in %', - 'Disposal' => 'Disposal', - 'EarningIndicator' => 'Earning Indicator', - 'End' => 'End', - 'Files' => 'Files', - 'GrossWeight' => 'Gross Weight', - 'Group' => 'Group', - 'Height' => 'Height', - 'ID' => 'ID', - 'Info' => 'Info', - 'Item' => 'Item', - 'Items' => 'Items', - 'Language' => 'Language', - 'Leadtime' => 'Lead time', - 'Length' => 'Length', - 'Location' => 'Location', - 'Log' => 'Log', - 'Logs' => 'Logs', - 'Lot' => 'Lot', - 'Makespan' => 'Makespan', - 'Master' => 'Master', - 'MaximumLevel' => 'Maximum stock level', - 'Media' => 'Media', - 'MinimumLevel' => 'Minimum stock level', - 'Name' => 'Name', - 'Name1' => 'Name1', - 'Name2' => 'Name2', - 'Name3' => 'Name3', - 'NetWeight' => 'Net Weight', - 'None' => 'None', - 'Ordered' => 'Ordered', - 'Packaging' => 'Packaging', - 'Price' => 'Price', - 'Prices' => 'Prices', - 'PriceUnit' => 'Unit of price', - 'Productgroup' => 'Productgroup', - 'Production' => 'Production', - 'Properties' => 'Properties', - 'Property' => 'Property', - 'Purchase' => 'Purchase', - 'Purchasing' => 'Purchasing', - 'QM' => 'QM', - 'Quantity' => 'Quantity', - 'QuantityUnit' => 'Unit of quantity', - 'ReorderLevel' => 'Reorder level', - 'Reserved' => 'Reserved', - 'Sales' => 'Sales', - 'Segment' => 'Segment', - 'ShelfLife' => 'Shelf life', - 'SN' => 'SN', - 'Source' => 'Source', - 'Start' => 'Start', - 'Status' => 'Status', - 'Stock' => 'Stock', - 'StockList' => 'Stock list', - 'Successor' => 'Successor', - 'Supplier' => 'Supplier', - 'Tax' => 'Tax', - 'TimeUnit' => 'Unit of time', - 'Tracking' => 'Tracking', - 'TradingUnit' => 'Trading Unit', - 'Translation' => 'Translation', - 'Type' => 'Type', - 'Unit' => 'Unit', - 'Value' => 'Value', - 'Variation' => 'Variation', - 'Variations' => 'Variations', - 'Volume' => 'Volume', - 'Warehouse' => 'Warehouse', - 'Width' => 'Width', -]]; diff --git a/Theme/Backend/item-create.tpl.php b/Theme/Backend/item-create.tpl.php deleted file mode 100644 index ab8f8f1..0000000 --- a/Theme/Backend/item-create.tpl.php +++ /dev/null @@ -1,627 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ -/** - * @var \phpOMS\Views\View $this - */ -echo $this->getData('nav')->render(); ?> - -
-
- -
-
- -
-
-

getText('Item') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-

getText('Language') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-

getText('Property') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-

getText('Language') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-

getText('Language') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
- -
-

getText('Attribute') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-

getText('Language') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-

getText('Language') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
- -
-
-

getText('Sales') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-

getText('Price') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-

getText('Purchase') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-

getText('Price') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-

getText('Stock') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-

getText('Supplier') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
- -
-
-

getText('Accounting') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-

getText('Production') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-

getText('StockList') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
- -
-
-

getText('QM') ?>

-
-
- - -
-
-
-
-
- -
-
-

getText('Packaging') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-

getText('Media') ?>

-
-
- - -
-
-
-
-
-
-
-
- -
-
-

getText('Stock') ?>

-
-
- - -
-
-
-
-
-
- -
-

getText('Stock') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
- -
-
-

getText('Disposal') ?>

-
-
- - -
-
-
-
-
- -
-
-

getText('Files') ?>

-
-
- - -
-
-
-
-
-
-
-
- -
- app, $this->request, $this->response); - $footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig'); - $footerView->setPages(20); - $footerView->setPage(1); - ?> -
- - - - - - - - -
getText('Logs') ?>
IP - getText('ID', 0, 0); ?> - getText('Name'); ?> - getText('Log'); ?> - getText('Date'); ?> -
render(); ?> -
request->getOrigin(); ?> - request->getAccount(); ?> - request->getAccount(); ?> - Creating item - format('Y-m-d H:i:s') ?> -
-
-
-
-
- - diff --git a/Theme/Backend/purchase-item-list.tpl.php b/Theme/Backend/purchase-item-list.tpl.php deleted file mode 100644 index b293306..0000000 --- a/Theme/Backend/purchase-item-list.tpl.php +++ /dev/null @@ -1,49 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ - -$footerView = new \Web\Views\Lists\PaginationView($this->app, $this->request, $this->response); -$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig'); -$footerView->setPages(20); -$footerView->setPage(1); - -echo $this->getData('nav')->render(); ?> - -
-
-
- - - - - - - - $value) : $count++; ?> - - -
getText('Items') ?>
getText('ID', 0, 0); ?> - getText('Name'); ?> - getText('Price'); ?> - getText('Available'); ?> - getText('Reserved'); ?> - getText('Ordered'); ?> -
render(); ?> -
getText('Empty', 0, 0); ?> - -
-
-
-
diff --git a/Theme/Backend/sales-item-list.tpl.php b/Theme/Backend/sales-item-list.tpl.php deleted file mode 100644 index b293306..0000000 --- a/Theme/Backend/sales-item-list.tpl.php +++ /dev/null @@ -1,49 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ - -$footerView = new \Web\Views\Lists\PaginationView($this->app, $this->request, $this->response); -$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig'); -$footerView->setPages(20); -$footerView->setPage(1); - -echo $this->getData('nav')->render(); ?> - -
-
-
- - - - - - - - $value) : $count++; ?> - - -
getText('Items') ?>
getText('ID', 0, 0); ?> - getText('Name'); ?> - getText('Price'); ?> - getText('Available'); ?> - getText('Reserved'); ?> - getText('Ordered'); ?> -
render(); ?> -
getText('Empty', 0, 0); ?> - -
-
-
-
diff --git a/Theme/Backend/stock-list.tpl.php b/Theme/Backend/stock-list.tpl.php deleted file mode 100644 index fdf23d1..0000000 --- a/Theme/Backend/stock-list.tpl.php +++ /dev/null @@ -1,57 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ -/** - * @var \phpOMS\Views\View $this - */ - -$footerView = new \Web\Views\Lists\PaginationView($this->app, $this->request, $this->response); -$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig'); - -$footerView->setPages(1 / 25); -$footerView->setPage(1); -$footerView->setResults(1); - -echo $this->getData('nav')->render(); ?> - -
-
-
- - - - - - - $value) : $c++; - $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/business/department/profile?{?}&id=' . $value->getId()); ?> - - -
getText('Stock'); ?>
getText('ID', 0, 0); ?> - getText('Article'); ?> - getText('Quantity'); ?> -
render(); ?> -
getId(); ?> - getName(); ?> - getParent(); ?> - getUnit(); ?> - - -
getText('Empty', 0, 0); ?> - -
-
-
-
diff --git a/Theme/backend/Lang/Navigation.en.lang.php b/Theme/backend/Lang/Navigation.en.lang.php deleted file mode 100644 index 4c4005e..0000000 --- a/Theme/backend/Lang/Navigation.en.lang.php +++ /dev/null @@ -1,20 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ -return ['Navigation' => [ - 'Analyze' => 'Analyze', - 'List' => 'List', - 'Create' => 'Create', -]]; diff --git a/Theme/backend/Lang/en.lang.php b/Theme/backend/Lang/en.lang.php deleted file mode 100644 index 499e496..0000000 --- a/Theme/backend/Lang/en.lang.php +++ /dev/null @@ -1,106 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ -return ['ItemManagement' => [ - 'Accounting' => 'Accounting', - 'IsActive' => 'Active?', - 'All' => 'All', - 'Article' => 'Article', - 'Articlegroup' => 'Articlegroup', - 'Attribute' => 'Attribute', - 'Available' => 'Available', - 'Bonus' => 'Bonus', - 'ClientGroup' => 'Client/Group', - 'Commission' => 'Commission', - 'Container' => 'Container', - 'CostCenter' => 'CostCenter', - 'CostIndicator' => 'Cost Indicator', - 'CostObject' => 'CostObject', - 'Country' => 'Country', - 'CustomsID' => 'Customs ID', - 'Date' => 'Date', - 'Description' => 'Description', - 'Discount' => 'Discount', - 'DiscountP' => 'Discount in %', - 'Disposal' => 'Disposal', - 'EarningIndicator' => 'Earning Indicator', - 'End' => 'End', - 'Files' => 'Files', - 'GrossWeight' => 'Gross Weight', - 'Group' => 'Group', - 'Height' => 'Height', - 'ID' => 'ID', - 'Info' => 'Info', - 'Item' => 'Item', - 'Items' => 'Items', - 'Language' => 'Language', - 'Leadtime' => 'Lead time', - 'Length' => 'Length', - 'Location' => 'Location', - 'Log' => 'Log', - 'Logs' => 'Logs', - 'Lot' => 'Lot', - 'Makespan' => 'Makespan', - 'Master' => 'Master', - 'MaximumLevel' => 'Maximum stock level', - 'Media' => 'Media', - 'MinimumLevel' => 'Minimum stock level', - 'Name' => 'Name', - 'Name1' => 'Name1', - 'Name2' => 'Name2', - 'Name3' => 'Name3', - 'NetWeight' => 'Net Weight', - 'None' => 'None', - 'Ordered' => 'Ordered', - 'Packaging' => 'Packaging', - 'Price' => 'Price', - 'Prices' => 'Prices', - 'PriceUnit' => 'Unit of price', - 'Productgroup' => 'Productgroup', - 'Production' => 'Production', - 'Properties' => 'Properties', - 'Property' => 'Property', - 'Purchase' => 'Purchase', - 'Purchasing' => 'Purchasing', - 'QM' => 'QM', - 'Quantity' => 'Quantity', - 'QuantityUnit' => 'Unit of quantity', - 'ReorderLevel' => 'Reorder level', - 'Reserved' => 'Reserved', - 'Sales' => 'Sales', - 'Segment' => 'Segment', - 'ShelfLife' => 'Shelf life', - 'SN' => 'SN', - 'Source' => 'Source', - 'Start' => 'Start', - 'Status' => 'Status', - 'Stock' => 'Stock', - 'StockList' => 'Stock list', - 'Successor' => 'Successor', - 'Supplier' => 'Supplier', - 'Tax' => 'Tax', - 'TimeUnit' => 'Unit of time', - 'Tracking' => 'Tracking', - 'TradingUnit' => 'Trading Unit', - 'Translation' => 'Translation', - 'Type' => 'Type', - 'Unit' => 'Unit', - 'Value' => 'Value', - 'Variation' => 'Variation', - 'Variations' => 'Variations', - 'Volume' => 'Volume', - 'Warehouse' => 'Warehouse', - 'Width' => 'Width', -]]; diff --git a/Theme/backend/item-create.tpl.php b/Theme/backend/item-create.tpl.php deleted file mode 100644 index ab8f8f1..0000000 --- a/Theme/backend/item-create.tpl.php +++ /dev/null @@ -1,627 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ -/** - * @var \phpOMS\Views\View $this - */ -echo $this->getData('nav')->render(); ?> - -
-
- -
-
- -
-
-

getText('Item') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-

getText('Language') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-

getText('Property') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-

getText('Language') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-

getText('Language') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
- -
-

getText('Attribute') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-

getText('Language') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-

getText('Language') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
- -
-
-

getText('Sales') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-

getText('Price') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-

getText('Purchase') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-

getText('Price') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-

getText('Stock') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-

getText('Supplier') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
- -
-
-

getText('Accounting') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-

getText('Production') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-

getText('StockList') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
- -
-
-

getText('QM') ?>

-
-
- - -
-
-
-
-
- -
-
-

getText('Packaging') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-

getText('Media') ?>

-
-
- - -
-
-
-
-
-
-
-
- -
-
-

getText('Stock') ?>

-
-
- - -
-
-
-
-
-
- -
-

getText('Stock') ?>

-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
- -
-
-

getText('Disposal') ?>

-
-
- - -
-
-
-
-
- -
-
-

getText('Files') ?>

-
-
- - -
-
-
-
-
-
-
-
- -
- app, $this->request, $this->response); - $footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig'); - $footerView->setPages(20); - $footerView->setPage(1); - ?> -
- - - - - - - - -
getText('Logs') ?>
IP - getText('ID', 0, 0); ?> - getText('Name'); ?> - getText('Log'); ?> - getText('Date'); ?> -
render(); ?> -
request->getOrigin(); ?> - request->getAccount(); ?> - request->getAccount(); ?> - Creating item - format('Y-m-d H:i:s') ?> -
-
-
-
-
- - diff --git a/Theme/backend/purchase-item-list.tpl.php b/Theme/backend/purchase-item-list.tpl.php deleted file mode 100644 index b293306..0000000 --- a/Theme/backend/purchase-item-list.tpl.php +++ /dev/null @@ -1,49 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ - -$footerView = new \Web\Views\Lists\PaginationView($this->app, $this->request, $this->response); -$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig'); -$footerView->setPages(20); -$footerView->setPage(1); - -echo $this->getData('nav')->render(); ?> - -
-
-
- - - - - - - - $value) : $count++; ?> - - -
getText('Items') ?>
getText('ID', 0, 0); ?> - getText('Name'); ?> - getText('Price'); ?> - getText('Available'); ?> - getText('Reserved'); ?> - getText('Ordered'); ?> -
render(); ?> -
getText('Empty', 0, 0); ?> - -
-
-
-
diff --git a/Theme/backend/sales-item-list.tpl.php b/Theme/backend/sales-item-list.tpl.php deleted file mode 100644 index b293306..0000000 --- a/Theme/backend/sales-item-list.tpl.php +++ /dev/null @@ -1,49 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ - -$footerView = new \Web\Views\Lists\PaginationView($this->app, $this->request, $this->response); -$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig'); -$footerView->setPages(20); -$footerView->setPage(1); - -echo $this->getData('nav')->render(); ?> - -
-
-
- - - - - - - - $value) : $count++; ?> - - -
getText('Items') ?>
getText('ID', 0, 0); ?> - getText('Name'); ?> - getText('Price'); ?> - getText('Available'); ?> - getText('Reserved'); ?> - getText('Ordered'); ?> -
render(); ?> -
getText('Empty', 0, 0); ?> - -
-
-
-
diff --git a/Theme/backend/stock-list.tpl.php b/Theme/backend/stock-list.tpl.php deleted file mode 100644 index fdf23d1..0000000 --- a/Theme/backend/stock-list.tpl.php +++ /dev/null @@ -1,57 +0,0 @@ - - * @author Dennis Eichhorn - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link http://orange-management.com - */ -/** - * @var \phpOMS\Views\View $this - */ - -$footerView = new \Web\Views\Lists\PaginationView($this->app, $this->request, $this->response); -$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig'); - -$footerView->setPages(1 / 25); -$footerView->setPage(1); -$footerView->setResults(1); - -echo $this->getData('nav')->render(); ?> - -
-
-
- - - - - - - $value) : $c++; - $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/business/department/profile?{?}&id=' . $value->getId()); ?> - - -
getText('Stock'); ?>
getText('ID', 0, 0); ?> - getText('Article'); ?> - getText('Quantity'); ?> -
render(); ?> -
getId(); ?> - getName(); ?> - getParent(); ?> - getUnit(); ?> - - -
getText('Empty', 0, 0); ?> - -
-
-
-
diff --git a/info.json b/info.json deleted file mode 100644 index c852d3b..0000000 --- a/info.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": { - "id": 1004800000, - "internal": "ItemManagement", - "external": "OMS Item Reference" - }, - "version": "1.0.0", - "requirements": { - "phpOMS": "1.0.0", - "phpOMS-db": "1.0.0" - }, - "creator": { - "name": "Orange Management", - "website": "www.spl1nes.com" - }, - "description": "Event Management module.", - "directory": "ItemManagement", - "dependencies": { - "Admin" : "1.0.0" - }, - "providing": { - "Navigation": "*" - }, - "load": [ - { - "pid": [ - "e3d6f58661c6f42309e273740944547c93ff76a0", - "e9b2adda603aaee5f852c05fabe394bd56cf0426", - "69737ca3a3dfa6a55a1a0402474ac634c371ea9f" - ], - "type": 4, - "for": 0, - "from": "ItemManagement", - "file": "ItemManagement" - }, - { - "pid": [ - "754a08ddf8bcb1cf22f310f09206dd783d42f7dd" - ], - "type": 5, - "from": "ItemManagement", - "for": "Navigation", - "file": "Navigation" - } - ] -}