From c9a202dfb2ba99e66ee34544085754b3a25acefb Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 12 Feb 2017 21:43:10 +0100 Subject: [PATCH] Bulkl path fix reverse --- Admin/Activate.php | 44 ++ Admin/Deactivate.php | 44 ++ Admin/Install/Navigation.install.json | 250 +++++++++ Admin/Install/Navigation.php | 40 ++ Admin/Installer.php | 57 ++ Admin/Routes/Web/Backend.php | 42 ++ Admin/Routes/console.php | 3 + Admin/Routes/socket.php | 3 + Admin/Uninstall.php | 52 ++ Admin/Update.php | 46 ++ Controller.php | 197 +++++++ README.md | 7 + Theme/Backend/Lang/Navigation.en.lang.php | 20 + Theme/Backend/Lang/en.lang.php | 106 ++++ Theme/Backend/item-create.tpl.php | 627 ++++++++++++++++++++++ Theme/Backend/purchase-item-list.tpl.php | 49 ++ Theme/Backend/sales-item-list.tpl.php | 49 ++ Theme/Backend/stock-list.tpl.php | 57 ++ info.json | 46 ++ 19 files changed, 1739 insertions(+) create mode 100644 Admin/Activate.php create mode 100644 Admin/Deactivate.php create mode 100644 Admin/Install/Navigation.install.json create mode 100644 Admin/Install/Navigation.php create mode 100644 Admin/Installer.php create mode 100644 Admin/Routes/Web/Backend.php create mode 100644 Admin/Routes/console.php create mode 100644 Admin/Routes/socket.php create mode 100644 Admin/Uninstall.php create mode 100644 Admin/Update.php create mode 100644 Controller.php create mode 100644 README.md create mode 100644 Theme/Backend/Lang/Navigation.en.lang.php create mode 100644 Theme/Backend/Lang/en.lang.php create mode 100644 Theme/Backend/item-create.tpl.php create mode 100644 Theme/Backend/purchase-item-list.tpl.php create mode 100644 Theme/Backend/sales-item-list.tpl.php create mode 100644 Theme/Backend/stock-list.tpl.php create mode 100644 info.json diff --git a/Admin/Activate.php b/Admin/Activate.php new file mode 100644 index 0000000..7bfeac8 --- /dev/null +++ b/Admin/Activate.php @@ -0,0 +1,44 @@ + + * @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 new file mode 100644 index 0000000..f08bc6b --- /dev/null +++ b/Admin/Deactivate.php @@ -0,0 +1,44 @@ + + * @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 new file mode 100644 index 0000000..d5d4137 --- /dev/null +++ b/Admin/Install/Navigation.install.json @@ -0,0 +1,250 @@ +[ + { + "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 new file mode 100644 index 0000000..084fcbc --- /dev/null +++ b/Admin/Install/Navigation.php @@ -0,0 +1,40 @@ + + * @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 new file mode 100644 index 0000000..3473c56 --- /dev/null +++ b/Admin/Installer.php @@ -0,0 +1,57 @@ + + * @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 new file mode 100644 index 0000000..2c63803 --- /dev/null +++ b/Admin/Routes/Web/Backend.php @@ -0,0 +1,42 @@ + [ + [ + '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 new file mode 100644 index 0000000..1ecbfac --- /dev/null +++ b/Admin/Routes/console.php @@ -0,0 +1,3 @@ + + * @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 new file mode 100644 index 0000000..411f082 --- /dev/null +++ b/Admin/Update.php @@ -0,0 +1,46 @@ + + * @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 new file mode 100644 index 0000000..cebfec8 --- /dev/null +++ b/Controller.php @@ -0,0 +1,197 @@ + + * @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 new file mode 100644 index 0000000..f7a9873 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# 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 new file mode 100644 index 0000000..4c4005e --- /dev/null +++ b/Theme/Backend/Lang/Navigation.en.lang.php @@ -0,0 +1,20 @@ + + * @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 new file mode 100644 index 0000000..499e496 --- /dev/null +++ b/Theme/Backend/Lang/en.lang.php @@ -0,0 +1,106 @@ + + * @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 new file mode 100644 index 0000000..ab8f8f1 --- /dev/null +++ b/Theme/Backend/item-create.tpl.php @@ -0,0 +1,627 @@ + + * @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 new file mode 100644 index 0000000..b293306 --- /dev/null +++ b/Theme/Backend/purchase-item-list.tpl.php @@ -0,0 +1,49 @@ + + * @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 new file mode 100644 index 0000000..b293306 --- /dev/null +++ b/Theme/Backend/sales-item-list.tpl.php @@ -0,0 +1,49 @@ + + * @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 new file mode 100644 index 0000000..fdf23d1 --- /dev/null +++ b/Theme/Backend/stock-list.tpl.php @@ -0,0 +1,57 @@ + + * @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 new file mode 100644 index 0000000..c852d3b --- /dev/null +++ b/info.json @@ -0,0 +1,46 @@ +{ + "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" + } + ] +}