From 248ad52aad4fff5dbecc6feb950329d57cae36a7 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 12 Sep 2019 19:47:42 +0200 Subject: [PATCH] draft item management --- Admin/Install/Navigation.php | 20 +- Admin/Installer.php | 18 +- Admin/Routes/Web/Backend.php | 11 + Admin/Status.php | 18 +- Admin/Uninstaller.php | 18 +- Admin/Updater.php | 18 +- Controller/BackendController.php | 66 +- Controller/Controller.php | 30 +- Models/Item.php | 90 ++- Models/ItemMapper.php | 22 +- Models/PermissionState.php | 18 +- Theme/Backend/Lang/Navigation.en.lang.php | 10 +- Theme/Backend/Lang/en.lang.php | 19 +- Theme/Backend/item-create.tpl.php | 10 +- Theme/Backend/purchase-item-list.tpl.php | 10 +- Theme/Backend/sales-item-list.tpl.php | 10 +- Theme/Backend/sales-item-profile.tpl.php | 728 ++++++++++++++++++++++ Theme/Backend/stock-list.tpl.php | 10 +- 18 files changed, 953 insertions(+), 173 deletions(-) create mode 100644 Theme/Backend/sales-item-profile.tpl.php diff --git a/Admin/Install/Navigation.php b/Admin/Install/Navigation.php index 832b348..c179419 100644 --- a/Admin/Install/Navigation.php +++ b/Admin/Install/Navigation.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package Modules\ItemManagement\Admin\Install - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package Modules\ItemManagement\Admin\Install + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ declare(strict_types=1); @@ -19,10 +19,10 @@ use phpOMS\DataStorage\Database\DatabasePool; /** * Navigation class. * - * @package Modules\ItemManagement\Admin\Install - * @license OMS License 1.0 - * @link https://orange-management.org - * @since 1.0.0 + * @package Modules\ItemManagement\Admin\Install + * @license OMS License 1.0 + * @link https://orange-management.org + * @since 1.0.0 */ class Navigation { @@ -34,7 +34,7 @@ class Navigation * * @return void * - * @since 1.0.0 + * @since 1.0.0 */ public static function install(string $path, DatabasePool $dbPool) : void { diff --git a/Admin/Installer.php b/Admin/Installer.php index 348cd68..8fae6de 100644 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package Modules\ItemManagement\Admin - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package Modules\ItemManagement\Admin + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ declare(strict_types=1); @@ -19,10 +19,10 @@ use phpOMS\Module\InstallerAbstract; /** * Installer class. * - * @package Modules\ItemManagement\Admin - * @license OMS License 1.0 - * @link https://orange-management.org - * @since 1.0.0 + * @package Modules\ItemManagement\Admin + * @license OMS License 1.0 + * @link https://orange-management.org + * @since 1.0.0 */ class Installer extends InstallerAbstract { diff --git a/Admin/Routes/Web/Backend.php b/Admin/Routes/Web/Backend.php index 8f19d91..cc97966 100644 --- a/Admin/Routes/Web/Backend.php +++ b/Admin/Routes/Web/Backend.php @@ -72,4 +72,15 @@ return [ ], ], ], + '^.*/sales/item/single.*$' => [ + [ + 'dest' => '\Modules\ItemManagement\Controller\BackendController:viewItemManagementSalesItem', + 'verb' => RouteVerb::GET, + 'permission' => [ + 'module' => BackendController::MODULE_NAME, + 'type' => PermissionType::READ, + 'state' => PermissionState::SALES_ITEM, + ], + ], + ], ]; diff --git a/Admin/Status.php b/Admin/Status.php index 7f3b330..4f959e6 100644 --- a/Admin/Status.php +++ b/Admin/Status.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package Modules\ItemManagement\Admin - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package Modules\ItemManagement\Admin + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ declare(strict_types=1); @@ -19,10 +19,10 @@ use phpOMS\Module\StatusAbstract; /** * Navigation class. * - * @package Modules\ItemManagement\Admin - * @license OMS License 1.0 - * @link https://orange-management.org - * @since 1.0.0 + * @package Modules\ItemManagement\Admin + * @license OMS License 1.0 + * @link https://orange-management.org + * @since 1.0.0 */ class Status extends StatusAbstract { diff --git a/Admin/Uninstaller.php b/Admin/Uninstaller.php index d34f051..333b53d 100644 --- a/Admin/Uninstaller.php +++ b/Admin/Uninstaller.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package Modules\ItemManagement\Admin - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package Modules\ItemManagement\Admin + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ declare(strict_types=1); @@ -19,10 +19,10 @@ use phpOMS\Module\UninstallerAbstract; /** * Uninstaller class. * - * @package Modules\ItemManagement\Admin - * @license OMS License 1.0 - * @link https://orange-management.org - * @since 1.0.0 + * @package Modules\ItemManagement\Admin + * @license OMS License 1.0 + * @link https://orange-management.org + * @since 1.0.0 */ class Uninstaller extends UninstallerAbstract { diff --git a/Admin/Updater.php b/Admin/Updater.php index a2d21b5..d43a3cc 100644 --- a/Admin/Updater.php +++ b/Admin/Updater.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package Modules\ItemManagement\Admin - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package Modules\ItemManagement\Admin + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ declare(strict_types=1); @@ -19,10 +19,10 @@ use phpOMS\Module\UpdaterAbstract; /** * Updater class. * - * @package Modules\ItemManagement\Admin - * @license OMS License 1.0 - * @link https://orange-management.org - * @since 1.0.0 + * @package Modules\ItemManagement\Admin + * @license OMS License 1.0 + * @link https://orange-management.org + * @since 1.0.0 */ class Updater extends UpdaterAbstract { diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 8e130f4..ef516db 100644 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package Modules\ItemManagement - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package Modules\ItemManagement + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ declare(strict_types=1); @@ -24,21 +24,23 @@ use phpOMS\Views\View; /** * ItemManagement controller class. * - * @package Modules\ItemManagement - * @license OMS License 1.0 - * @link https://orange-management.org - * @since 1.0.0 + * @package Modules\ItemManagement + * @license OMS License 1.0 + * @link https://orange-management.org + * @since 1.0.0 */ final class BackendController extends Controller { /** + * Routing end-point for application behaviour. + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data * * @return RenderableInterface * - * @since 1.0.0 + * @since 1.0.0 * @codeCoverageIgnore */ public function viewItemManagementSalesList(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface @@ -54,13 +56,15 @@ final class BackendController extends Controller } /** + * Routing end-point for application behaviour. + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data * * @return RenderableInterface * - * @since 1.0.0 + * @since 1.0.0 * @codeCoverageIgnore */ public function viewItemManagementPurchaseList(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface @@ -73,13 +77,15 @@ final class BackendController extends Controller } /** + * Routing end-point for application behaviour. + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data * * @return RenderableInterface * - * @since 1.0.0 + * @since 1.0.0 * @codeCoverageIgnore */ public function viewItemManagementWarehousingList(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface @@ -92,13 +98,15 @@ final class BackendController extends Controller } /** + * Routing end-point for application behaviour. + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data * * @return RenderableInterface * - * @since 1.0.0 + * @since 1.0.0 * @codeCoverageIgnore */ public function viewItemManagementSalesCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface @@ -111,13 +119,15 @@ final class BackendController extends Controller } /** + * Routing end-point for application behaviour. + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data * * @return RenderableInterface * - * @since 1.0.0 + * @since 1.0.0 * @codeCoverageIgnore */ public function viewItemManagementPurchaseCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface @@ -130,13 +140,15 @@ final class BackendController extends Controller } /** + * Routing end-point for application behaviour. + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data * * @return RenderableInterface * - * @since 1.0.0 + * @since 1.0.0 * @codeCoverageIgnore */ public function viewItemManagementWarehousingCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface @@ -147,4 +159,28 @@ final class BackendController extends Controller return $view; } + + /** + * Routing end-point for application behaviour. + * + * @param RequestAbstract $request Request + * @param ResponseAbstract $response Response + * @param mixed $data Generic data + * + * @return RenderableInterface + * + * @since 1.0.0 + * @codeCoverageIgnore + */ + public function viewItemManagementSalesItem(RequestAbstract $request, ResponseAbstract $response, $data = null): RenderableInterface + { + $view = new View($this->app, $request, $response); + $view->setTemplate('/Modules/ItemManagement/Theme/Backend/sales-item-profile'); + $view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1004805001, $request, $response)); + + $item = ItemMapper::get((int) $request->getData('id')); + $view->addData('item', $item); + + return $view; + } } diff --git a/Controller/Controller.php b/Controller/Controller.php index 784a96b..ae2d4f9 100644 --- a/Controller/Controller.php +++ b/Controller/Controller.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package Modules\ItemManagement - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package Modules\ItemManagement + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ declare(strict_types=1); @@ -20,10 +20,10 @@ use phpOMS\Module\WebInterface; /** * ItemManagement controller class. * - * @package Modules\ItemManagement - * @license OMS License 1.0 - * @link https://orange-management.org - * @since 1.0.0 + * @package Modules\ItemManagement + * @license OMS License 1.0 + * @link https://orange-management.org + * @since 1.0.0 */ class Controller extends ModuleAbstract implements WebInterface { @@ -31,7 +31,7 @@ class Controller extends ModuleAbstract implements WebInterface /** * Module path. * - * @var string + * @var string * @since 1.0.0 */ public const MODULE_PATH = __DIR__ . '/../'; @@ -39,7 +39,7 @@ class Controller extends ModuleAbstract implements WebInterface /** * Module version. * - * @var string + * @var string * @since 1.0.0 */ public const MODULE_VERSION = '1.0.0'; @@ -47,7 +47,7 @@ class Controller extends ModuleAbstract implements WebInterface /** * Module name. * - * @var string + * @var string * @since 1.0.0 */ public const MODULE_NAME = 'ItemManagement'; @@ -55,7 +55,7 @@ class Controller extends ModuleAbstract implements WebInterface /** * Module id. * - * @var int + * @var int * @since 1.0.0 */ public const MODULE_ID = 1004800000; @@ -63,7 +63,7 @@ class Controller extends ModuleAbstract implements WebInterface /** * Providing. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected static array $providing = []; @@ -71,7 +71,7 @@ class Controller extends ModuleAbstract implements WebInterface /** * Dependencies. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected static array $dependencies = []; diff --git a/Models/Item.php b/Models/Item.php index b50f11e..05f9eac 100644 --- a/Models/Item.php +++ b/Models/Item.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package Modules\ItemManagement\Models - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package Modules\ItemManagement\Models + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ declare(strict_types=1); @@ -19,10 +19,10 @@ use Modules\Media\Models\Media; /** * Account class. * - * @package Modules\ItemManagement\Models - * @license OMS License 1.0 - * @link https://orange-management.org - * @since 1.0.0 + * @package Modules\ItemManagement\Models + * @license OMS License 1.0 + * @link https://orange-management.org + * @since 1.0.0 */ class Item { @@ -40,6 +40,8 @@ class Item private $successor = 0; + private $type = 0; + private $media = []; private $l11n = null; @@ -54,6 +56,16 @@ class Item private $createdAt = null; + private string $name1 = ''; + + private string $name2 = ''; + + private string $name3 = ''; + + private string $name4 = ''; + + private string $name5 = ''; + private $info = ''; public function __construct() @@ -81,73 +93,53 @@ class Item $this->number = $number; } - public function getArticleGroup() : int + public function setName1(string $name) : void { - return $this->articleGroup; + $this->name1 = $name; } - public function setArticleGroup(int $segment) : void + public function getName1() : string { - $this->articleGroup = $segment; + return $this->name1; } - public function getSalesGroup() : int + public function setName2(string $name) : void { - return $this->salesGroup; + $this->name2 = $name; } - public function setSalesGroup(int $segment) : void + public function getName2() : string { - $this->salesGroup = $segment; + return $this->name2; } - public function getProductGroup() : int + public function setName3(string $name) : void { - return $this->productGroup; + $this->name3 = $name; } - public function setProductGroup(int $segment) : void + public function getName3() : string { - $this->productGroup = $segment; + return $this->name3; } - public function getSegment() : int + public function setName4(string $name): void { - return $this->segment; + $this->name4 = $name; } - public function setSegment(int $segment) : void + public function getName4(): string { - $this->segment = $segment; + return $this->name4; } - public function getSuccessor() : int + public function setName5(string $name): void { - return $this->successor; + $this->name5 = $name; } - public function setSuccessor(int $successor) : void + public function getName5(): string { - $this->successor = $successor; - } - - public function getMedia() : array - { - return $this->media; - } - - public function addMedia(Media $media) : void - { - $this->media[] = $media; - } - - public function getInfo() : string - { - return $this->info; - } - - public function setInfo(string $info) : void - { - $this->info = $info; + return $this->name5; } } diff --git a/Models/ItemMapper.php b/Models/ItemMapper.php index a81730c..3e73aca 100644 --- a/Models/ItemMapper.php +++ b/Models/ItemMapper.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package TBD - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package TBD + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ declare(strict_types=1); @@ -22,7 +22,7 @@ final class ItemMapper extends DataMapperAbstract /** * Columns. * - * @var array> + * @var array> * @since 1.0.0 */ protected static array $columns = [ @@ -32,10 +32,14 @@ final class ItemMapper extends DataMapperAbstract 'itemmgmt_item_info' => ['name' => 'itemmgmt_item_info', 'type' => 'string', 'internal' => 'info'], ]; + protected static array $conditionals = [ + + ]; + /** * Primary table. * - * @var string + * @var string * @since 1.0.0 */ protected static string $table = 'itemmgmt_item'; @@ -43,7 +47,7 @@ final class ItemMapper extends DataMapperAbstract /** * Primary field name. * - * @var string + * @var string * @since 1.0.0 */ protected static string $primaryField = 'itemmgmt_item_id'; @@ -51,7 +55,7 @@ final class ItemMapper extends DataMapperAbstract /** * Has many relation. * - * @var array> + * @var array> * @since 1.0.0 */ protected static array $hasMany = [ diff --git a/Models/PermissionState.php b/Models/PermissionState.php index d554a15..82b6e06 100644 --- a/Models/PermissionState.php +++ b/Models/PermissionState.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package Modules\ItemManagement - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package Modules\ItemManagement + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ declare(strict_types=1); @@ -19,10 +19,10 @@ use phpOMS\Stdlib\Base\Enum; /** * Permision state enum. * - * @package Modules\ItemManagement - * @license OMS License 1.0 - * @link https://orange-management.org - * @since 1.0.0 + * @package Modules\ItemManagement + * @license OMS License 1.0 + * @link https://orange-management.org + * @since 1.0.0 */ abstract class PermissionState extends Enum { diff --git a/Theme/Backend/Lang/Navigation.en.lang.php b/Theme/Backend/Lang/Navigation.en.lang.php index a2908e4..e4b1991 100644 --- a/Theme/Backend/Lang/Navigation.en.lang.php +++ b/Theme/Backend/Lang/Navigation.en.lang.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package TBD - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package TBD + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ return ['Navigation' => [ 'Analyze' => 'Analyze', diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php index ac475d3..ae4e907 100644 --- a/Theme/Backend/Lang/en.lang.php +++ b/Theme/Backend/Lang/en.lang.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package TBD - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package TBD + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ return ['ItemManagement' => [ 'Accounting' => 'Accounting', @@ -16,6 +16,7 @@ return ['ItemManagement' => [ 'All' => 'All', 'Article' => 'Article', 'Articlegroup' => 'Articlegroup', + 'Attributes' => 'Attributes', 'Attribute' => 'Attribute', 'Available' => 'Available', 'Bonus' => 'Bonus', @@ -26,6 +27,8 @@ return ['ItemManagement' => [ 'CostIndicator' => 'Cost Indicator', 'CostObject' => 'CostObject', 'Country' => 'Country', + 'Customer' => 'Customer ', + 'CustomerGroup' => 'Customer Group', 'CustomsID' => 'Customs ID', 'Date' => 'Date', 'Description' => 'Description', @@ -35,6 +38,7 @@ return ['ItemManagement' => [ 'EarningIndicator' => 'Earning Indicator', 'End' => 'End', 'Files' => 'Files', + 'General' => 'General', 'GrossWeight' => 'Gross Weight', 'Group' => 'Group', 'Height' => 'Height', @@ -45,6 +49,7 @@ return ['ItemManagement' => [ 'Language' => 'Language', 'Leadtime' => 'Lead time', 'Length' => 'Length', + 'Localization' => 'Localization', 'Location' => 'Location', 'Log' => 'Log', 'Logs' => 'Logs', @@ -58,6 +63,8 @@ return ['ItemManagement' => [ 'Name1' => 'Name1', 'Name2' => 'Name2', 'Name3' => 'Name3', + 'Name4' => 'Name4', + 'Name5' => 'Name5', 'NetWeight' => 'Net Weight', 'None' => 'None', 'Ordered' => 'Ordered', @@ -71,6 +78,7 @@ return ['ItemManagement' => [ 'Property' => 'Property', 'Purchase' => 'Purchase', 'Purchasing' => 'Purchasing', + 'QA' => 'QA', 'QM' => 'QM', 'Quantity' => 'Quantity', 'QuantityUnit' => 'Unit of quantity', @@ -88,6 +96,7 @@ return ['ItemManagement' => [ 'Successor' => 'Successor', 'Supplier' => 'Supplier', 'Tax' => 'Tax', + 'Text' => 'Text', 'TimeUnit' => 'Unit of time', 'Tracking' => 'Tracking', 'TradingUnit' => 'Trading Unit', diff --git a/Theme/Backend/item-create.tpl.php b/Theme/Backend/item-create.tpl.php index d667b49..487d70e 100644 --- a/Theme/Backend/item-create.tpl.php +++ b/Theme/Backend/item-create.tpl.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package TBD - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package TBD + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ /** * @var \phpOMS\Views\View $this diff --git a/Theme/Backend/purchase-item-list.tpl.php b/Theme/Backend/purchase-item-list.tpl.php index b61f92a..7264691 100644 --- a/Theme/Backend/purchase-item-list.tpl.php +++ b/Theme/Backend/purchase-item-list.tpl.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package TBD - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package TBD + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ $footerView = new \phpOMS\Views\PaginationView($this->app, $this->request, $this->response); diff --git a/Theme/Backend/sales-item-list.tpl.php b/Theme/Backend/sales-item-list.tpl.php index e0f7618..1b56b29 100644 --- a/Theme/Backend/sales-item-list.tpl.php +++ b/Theme/Backend/sales-item-list.tpl.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package TBD - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package TBD + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ $footerView = new \phpOMS\Views\PaginationView($this->app, $this->request, $this->response); diff --git a/Theme/Backend/sales-item-profile.tpl.php b/Theme/Backend/sales-item-profile.tpl.php new file mode 100644 index 0000000..c40dd24 --- /dev/null +++ b/Theme/Backend/sales-item-profile.tpl.php @@ -0,0 +1,728 @@ +getData('item'); + +echo $this->getData('nav')->render(); +?> + +
+
+ +
+
+ +
+
+
+
+
+

getHtml('General'); ?>

+
+
+
+ + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+

getHtml('Sales'); ?>

+
+
+
+ + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+

getHtml('ID'); ?>

+
+
+
+ + + + + + + +
+
+ +
+
+ +
+
+
+
+
+
+ +
+ + + + + + $value) : ++$c; + $url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?> + + +
getHtml('Groups') ?>
+ getHtml('ID', '0', '0'); ?> + getHtml('Name') ?> +
+ printHtml($value->getId()); ?> + printHtml($value->getName()); ?> + + +
getHtml('Empty', '0', '0'); ?> + +
+
+
+
+ +
+
+
+
+
+

getHtml('Description'); ?>

+
+
+
+ + + + + + + + + +
+
+ +
+
+ +
+
+
+
+
+
+
+
+ +
+ + + + + + $value) : ++$c; + $url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?> + + +
getHtml('Groups') ?>
+ getHtml('ID', '0', '0'); ?> + getHtml('Name') ?> +
+ printHtml($value->getId()); ?> + printHtml($value->getName()); ?> + + +
getHtml('Empty', '0', '0'); ?> + +
+
+
+
+ +
+
+
+
+
+

getHtml('Attribute'); ?>

+
+
+
+ + + + + + + + + + + +
+
+ +
+
+ +
+
+ +
+
+
+
+
+
+
+
+ +
+ + + + + + $value) : ++$c; + $url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?> + + +
getHtml('Groups') ?>
+ getHtml('ID', '0', '0'); ?> + getHtml('Name') ?> +
+ printHtml($value->getId()); ?> + printHtml($value->getName()); ?> + + +
getHtml('Empty', '0', '0'); ?> + +
+
+
+
+ +
+
+
+
+
+

getHtml('Customer'); ?>

+
+
+
+ + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+ +
+ + + + + + $value) : ++$c; + $url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?> + + +
getHtml('Prices') ?>
+ getHtml('ID', '0', '0'); ?> + getHtml('Name') ?> +
+ printHtml($value->getId()); ?> + printHtml($value->getName()); ?> + + +
getHtml('Empty', '0', '0'); ?> + +
+
+
+
+ +
+
+
+
+
+

getHtml('Purchase'); ?>

+
+
+
+ + + + + + + + + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+

getHtml('Supplier'); ?>

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+ + + + + + $value) : ++$c; + $url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?> + + +
getHtml('Prices') ?>
+ getHtml('ID', '0', '0'); ?> + getHtml('Name') ?> +
+ printHtml($value->getId()); ?> + printHtml($value->getName()); ?> + + +
getHtml('Empty', '0', '0'); ?> + +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+
+

getHtml('General'); ?>

+
+
+
+ + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+

getHtml('General'); ?>

+
+
+
+ + + + + + + + + + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+ + + + + + + + +
getHtml('Logs'); ?>
IP + getHtml('ID', '0', '0'); ?> + getHtml('Name') ?> + getHtml('Log') ?> + getHtml('Date') ?> +
+
printHtml($this->request->getOrigin()); ?> + printHtml($this->request->getHeader()->getAccount()); ?> + printHtml($this->request->getHeader()->getAccount()); ?> + Creating item + printHtml((new \DateTime('now'))->format('Y-m-d H:i:s')); ?> +
+
+
+
+
+
\ No newline at end of file diff --git a/Theme/Backend/stock-list.tpl.php b/Theme/Backend/stock-list.tpl.php index 36c62c2..14f8e89 100644 --- a/Theme/Backend/stock-list.tpl.php +++ b/Theme/Backend/stock-list.tpl.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package TBD - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package TBD + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ /** * @var \phpOMS\Views\View $this