mirror of
https://github.com/Karaka-Management/oms-ItemManagement.git
synced 2026-02-02 13:48:40 +00:00
draft item management
This commit is contained in:
parent
6ba6140ff8
commit
248ad52aad
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 = [];
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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<string, array<string, bool|string>>
|
||||
* @var array<string, array<string, bool|string>>
|
||||
* @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<string, array<string, null|string>>
|
||||
* @var array<string, array<string, null|string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static array $hasMany = [
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
728
Theme/Backend/sales-item-profile.tpl.php
Normal file
728
Theme/Backend/sales-item-profile.tpl.php
Normal file
|
|
@ -0,0 +1,728 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package TBD
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
|
||||
$item = $this->getData('item');
|
||||
|
||||
echo $this->getData('nav')->render();
|
||||
?>
|
||||
|
||||
<div class="tabview tab-2">
|
||||
<div class="box wf-100 col-xs-12">
|
||||
<ul class="tab-links">
|
||||
<li><label for="c-tab-1"><?= $this->getHtml('Master'); ?></label></li>
|
||||
<li><label for="c-tab-2"><?= $this->getHtml('Localization'); ?></label></li>
|
||||
<li><label for="c-tab-3"><?= $this->getHtml('Attributes'); ?></label></li>
|
||||
<li><label for="c-tab-4"><?= $this->getHtml('Sales'); ?></label></li>
|
||||
<li><label for="c-tab-5"><?= $this->getHtml('Purchasing'); ?></label></li>
|
||||
<li><label for="c-tab-6"><?= $this->getHtml('Production'); ?></label></li>
|
||||
<li><label for="c-tab-7"><?= $this->getHtml('QA'); ?></label></li>
|
||||
<li><label for="c-tab-8"><?= $this->getHtml('Packaging'); ?></label></li>
|
||||
<li><label for="c-tab-9"><?= $this->getHtml('Accounting'); ?></label></li>
|
||||
<li><label for="c-tab-10"><?= $this->getHtml('Stock'); ?></label></li>
|
||||
<li><label for="c-tab-11"><?= $this->getHtml('Disposal'); ?></label></li>
|
||||
<li><label for="c-tab-12"><?= $this->getHtml('Media'); ?></label></li>
|
||||
<li><label for="c-tab-13"><?= $this->getHtml('Logs'); ?></label></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="tab-content">
|
||||
<input type="radio" id="c-tab-1" name="tabular-2" checked>
|
||||
<div class="tab">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<section class="box wf-100">
|
||||
<header>
|
||||
<h1><?= $this->getHtml('General'); ?></h1>
|
||||
</header>
|
||||
<div class="inner">
|
||||
<form id="item-edit" action="<?= \phpOMS\Uri\UriFactory::build('{/api}itemmgmt/item'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><label for="iId"><?= $this->getHtml('ID', '0', '0'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iId" name="id" type="text" value="<?= $this->printHtml($item->getNumber()); ?>" disabled>
|
||||
<tr>
|
||||
<td><label for="iName1"><?= $this->getHtml('Name1'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iName1" name="name1" type="text" value="<?= $this->printHtml($item->getName1()); ?>" disabled>
|
||||
<tr>
|
||||
<td><label for="iName2"><?= $this->getHtml('Name2'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iName2" name="name2" type="text" value="<?= $this->printHtml($item->getName2()); ?>" disabled>
|
||||
<tr>
|
||||
<td><label for="iName3"><?= $this->getHtml('Name3'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iName3" name="name3" type="text" value="<?= $this->printHtml($item->getName3()); ?>" disabled>
|
||||
<tr>
|
||||
<td><label for="iName4"><?= $this->getHtml('Name4'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iName4" name="name4" type="text" value="<?= $this->printHtml($item->getName4()); ?>" disabled>
|
||||
<tr>
|
||||
<td><label for="iName5"><?= $this->getHtml('Name5'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iName5" name="name5" type="text" value="<?= $this->printHtml($item->getName5()); ?>" disabled>
|
||||
<tr>
|
||||
<td><label for="iSSuccessor"><?= $this->getHtml('Successor'); ?></label>
|
||||
<tr>
|
||||
<td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input id="iSource" name="source" type="text" placeholder=""></span>
|
||||
<tr>
|
||||
<td><input type="submit" value="<?= $this->getHtml('Create', '0', '0'); ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<section class="box wf-100">
|
||||
<header>
|
||||
<h1><?= $this->getHtml('Sales'); ?></h1>
|
||||
</header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><label for="iPType"><?= $this->getHtml('Status'); ?></label>
|
||||
<tr>
|
||||
<td><select id="iPType" name="ptye">
|
||||
<option>
|
||||
</select>
|
||||
<tr>
|
||||
<td><label for="iPPriceUnit"><?= $this->getHtml('PriceUnit'); ?></label>
|
||||
<tr>
|
||||
<td><select id="iPPriceUnit" name="ppriceunit">
|
||||
<option value="0">
|
||||
</select>
|
||||
<tr>
|
||||
<td><label for="iPQuantityUnit"><?= $this->getHtml('QuantityUnit'); ?></label>
|
||||
<tr>
|
||||
<td><select id="iPQuantityUnit" name="pquantityunit">
|
||||
<option value="0">
|
||||
</select>
|
||||
<tr>
|
||||
<td><label for="iPTradingUnit"><?= $this->getHtml('TradingUnit'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iPTradingUnit" name="tradingunit" type="number" min="0" step="any" placeholder="">
|
||||
<tr>
|
||||
<td><label for="iPTracking"><?= $this->getHtml('Tracking'); ?></label>
|
||||
<tr>
|
||||
<td><select id="iPTracking" name="tracking">
|
||||
<option><?= $this->getHtml('None'); ?>
|
||||
<option><?= $this->getHtml('Lot'); ?>
|
||||
<option><?= $this->getHtml('SN'); ?>
|
||||
<option><?= $this->getHtml('Purchase'); ?>
|
||||
</select>
|
||||
<tr>
|
||||
<td><label for="iPVariation"><?= $this->getHtml('Commission'); ?></label>
|
||||
<tr>
|
||||
<td><select id="iPVariation" name="pvariation">
|
||||
<option value="0">
|
||||
</select>
|
||||
<tr>
|
||||
<td><label for="iPCustomsId"><?= $this->getHtml('CustomsID'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iPCustomsId" name="customsid" type="text" placeholder="">
|
||||
<tr>
|
||||
<td><label for="iSInfo"><?= $this->getHtml('Info'); ?></label>
|
||||
<tr>
|
||||
<td><textarea id="iSInfo" name="sinfo"></textarea>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<section class="box wf-100">
|
||||
<header>
|
||||
<h1><?= $this->getHtml('ID'); ?></h1>
|
||||
</header>
|
||||
<div class="inner">
|
||||
<form id="item-edit" action="<?= \phpOMS\Uri\UriFactory::build('{/api}itemmgmt/item'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><label for="iTypes"><?= $this->getHtml('Type'); ?></label>
|
||||
<tr>
|
||||
<td><!-- todo: eg. GTIN, customs id etc.. -->
|
||||
<select id="iTypes" name="settings_1000000020">
|
||||
<?php foreach ($languages as $code => $language) : ?>
|
||||
<option value="<?= $this->printHtml($code); ?>" <?= $this->printHtml(\strtolower($code) === \strtolower($settings[1000000020]) ? ' selected' : ''); ?>><?= $this->printHtml($language); ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<tr>
|
||||
<td><label for="iLanguages"><?= $this->getHtml('ID'); ?></label>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text">
|
||||
<tr>
|
||||
<td><input type="submit" value="<?= $this->getHtml('Add', '0', '0'); ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<table id="groupTable" class="box table default">
|
||||
<caption><?= $this->getHtml('Groups') ?><i class="fa fa-download floatRight download btn"></i></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>
|
||||
<td><?= $this->getHtml('ID', '0', '0'); ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||
<td class="wf-100"><?= $this->getHtml('Name') ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||
<tbody>
|
||||
<?php $c = 0;
|
||||
$l11ns = [];
|
||||
foreach ($l11ns as $key => $value) : ++$c;
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="#"><i class="fa fa-times"></i></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>
|
||||
<?php endforeach; ?>
|
||||
<?php if ($c === 0) : ?>
|
||||
<tr>
|
||||
<td colspan="5" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-2" name="tabular-2" checked>
|
||||
<div class="tab">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<section class="box wf-100">
|
||||
<header>
|
||||
<h1><?= $this->getHtml('Description'); ?></h1>
|
||||
</header>
|
||||
<div class="inner">
|
||||
<form id="item-edit" action="<?= \phpOMS\Uri\UriFactory::build('{/api}itemmgmt/item'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><label for="iLanguages"><?= $this->getHtml('Language'); ?></label>
|
||||
<tr>
|
||||
<td>
|
||||
<select id="iLanguages" name="settings_1000000020">
|
||||
<?php foreach ($languages as $code => $language) : ?>
|
||||
<option value="<?= $this->printHtml($code); ?>" <?= $this->printHtml(\strtolower($code) === \strtolower($settings[1000000020]) ? ' selected' : ''); ?>><?= $this->printHtml($language); ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<tr>
|
||||
<td><label for="iLanguages"><?= $this->getHtml('Type'); ?></label>
|
||||
<tr>
|
||||
<td>
|
||||
<select id="iLanguages" name="settings_1000000020">
|
||||
<?php foreach ($languages as $code => $language) : ?>
|
||||
<option value="<?= $this->printHtml($code); ?>" <?= $this->printHtml(\strtolower($code) === \strtolower($settings[1000000020]) ? ' selected' : ''); ?>><?= $this->printHtml($language); ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<tr>
|
||||
<td><label for="iText1"><?= $this->getHtml('Text'); ?></label>
|
||||
<tr>
|
||||
<td><textarea id="iText1" name="text1"></textarea>
|
||||
<tr>
|
||||
<td><input type="submit" value="<?= $this->getHtml('Add', '0', '0'); ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<table id="groupTable" class="box table default">
|
||||
<caption><?= $this->getHtml('Groups') ?><i class="fa fa-download floatRight download btn"></i></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>
|
||||
<td><?= $this->getHtml('ID', '0', '0'); ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||
<td class="wf-100"><?= $this->getHtml('Name') ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||
<tbody>
|
||||
<?php $c = 0;
|
||||
$l11ns = [];
|
||||
foreach ($l11ns as $key => $value) : ++$c;
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="#"><i class="fa fa-times"></i></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>
|
||||
<?php endforeach; ?>
|
||||
<?php if ($c === 0) : ?>
|
||||
<tr>
|
||||
<td colspan="5" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-3" name="tabular-2" checked>
|
||||
<div class="tab">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<section class="box wf-100">
|
||||
<header>
|
||||
<h1><?= $this->getHtml('Attribute'); ?></h1>
|
||||
</header>
|
||||
<div class="inner">
|
||||
<form id="item-edit" action="<?= \phpOMS\Uri\UriFactory::build('{/api}itemmgmt/item'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><label for="iLanguages"><?= $this->getHtml('Language'); ?></label>
|
||||
<tr>
|
||||
<td>
|
||||
<select id="iLanguages" name="settings_1000000020">
|
||||
<?php foreach ($languages as $code => $language) : ?>
|
||||
<option value="<?= $this->printHtml($code); ?>" <?= $this->printHtml(\strtolower($code) === \strtolower($settings[1000000020]) ? ' selected' : ''); ?>><?= $this->printHtml($language); ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<tr>
|
||||
<td><label for="iLanguages"><?= $this->getHtml('Type'); ?></label>
|
||||
<tr>
|
||||
<td>
|
||||
<select id="iLanguages" name="settings_1000000020">
|
||||
<?php foreach ($languages as $code => $language) : ?>
|
||||
<option value="<?= $this->printHtml($code); ?>" <?= $this->printHtml(\strtolower($code) === \strtolower($settings[1000000020]) ? ' selected' : ''); ?>><?= $this->printHtml($language); ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<tr>
|
||||
<td><label for="iLanguages"><?= $this->getHtml('Unit'); ?></label>
|
||||
<tr>
|
||||
<td>
|
||||
<select id="iLanguages" name="settings_1000000020">
|
||||
<?php foreach ($languages as $code => $language) : ?>
|
||||
<option value="<?= $this->printHtml($code); ?>" <?= $this->printHtml(\strtolower($code) === \strtolower($settings[1000000020]) ? ' selected' : ''); ?>><?= $this->printHtml($language); ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<tr>
|
||||
<td><label for="iText1"><?= $this->getHtml('Value'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iName5" name="name5" type="text" value="<?= $this->printHtml($item->getName5()); ?>">
|
||||
<tr>
|
||||
<td><input type="submit" value="<?= $this->getHtml('Add', '0', '0'); ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<table id="groupTable" class="box table default">
|
||||
<caption><?= $this->getHtml('Groups') ?><i class="fa fa-download floatRight download btn"></i></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>
|
||||
<td><?= $this->getHtml('ID', '0', '0'); ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||
<td class="wf-100"><?= $this->getHtml('Name') ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||
<tbody>
|
||||
<?php $c = 0;
|
||||
$l11ns = [];
|
||||
foreach ($l11ns as $key => $value) : ++$c;
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="#"><i class="fa fa-times"></i></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>
|
||||
<?php endforeach; ?>
|
||||
<?php if ($c === 0) : ?>
|
||||
<tr>
|
||||
<td colspan="5" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-4" name="tabular-2" checked>
|
||||
<div class="tab">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<section class="box wf-100">
|
||||
<header>
|
||||
<h1><?= $this->getHtml('Customer'); ?></h1>
|
||||
</header>
|
||||
<div class="inner">
|
||||
<form id="item-edit" action="<?= \phpOMS\Uri\UriFactory::build('{/api}itemmgmt/item'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><label for="iCustomerGroup"><?= $this->getHtml('CustomerGroup'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iCustomerGroup" name="customergroup" type="text" value="<?= $this->printHtml(''); ?>">
|
||||
<tr>
|
||||
<td><label for="iGeneralPriceStart"><?= $this->getHtml('Start'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iGeneralPriceStart" name="generalpricestart" type="datetime-local" value="<?= $this->printHtml(''); ?>">
|
||||
<tr>
|
||||
<td><label for="iGeneralPriceEnd"><?= $this->getHtml('End'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iGeneralPriceEnd" name="generalpriceend" type="datetime-local" value="<?= $this->printHtml(''); ?>">
|
||||
<tr>
|
||||
<td><label for="iPQuantity"><?= $this->getHtml('Quantity'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iPQuantity" name="quantity" type="text" placeholder="">
|
||||
<tr>
|
||||
<td><label for="iGeneralPrice"><?= $this->getHtml('Price'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iGeneralPrice" name="generalprice" type="number" step="0.0001" value="<?= $this->printHtml('0.00'); ?>">
|
||||
<!-- todo: maybe add promotion key/password here for online shop to provide special prices for certain customer groups -->
|
||||
<tr>
|
||||
<td><label for="iDiscount"><?= $this->getHtml('Discount'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iDiscount" name="discount" type="number" step="any" min="0" placeholder="">
|
||||
<tr>
|
||||
<td><label for="iDiscount"><?= $this->getHtml('DiscountP'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iDiscountP" name="discountp" type="number" step="any" min="0" placeholder="">
|
||||
<tr>
|
||||
<td><label for="iBonus"><?= $this->getHtml('Bonus'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iBonus" name="bonus" type="number" step="any" min="0" placeholder="">
|
||||
<tr>
|
||||
<td><input type="submit" value="<?= $this->getHtml('Add', '0', '0'); ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<table id="groupTable" class="box table default">
|
||||
<caption><?= $this->getHtml('Prices') ?><i class="fa fa-download floatRight download btn"></i></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>
|
||||
<td><?= $this->getHtml('ID', '0', '0'); ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||
<td class="wf-100"><?= $this->getHtml('Name') ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||
<tbody>
|
||||
<?php $c = 0;
|
||||
$l11ns = [];
|
||||
foreach ($l11ns as $key => $value) : ++$c;
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="#"><i class="fa fa-times"></i></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>
|
||||
<?php endforeach; ?>
|
||||
<?php if ($c === 0) : ?>
|
||||
<tr>
|
||||
<td colspan="5" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-5" name="tabular-2" checked>
|
||||
<div class="tab">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-6 col-lg-4">
|
||||
<section class="box wf-100">
|
||||
<header>
|
||||
<h1><?= $this->getHtml('Purchase'); ?></h1>
|
||||
</header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><label for="iPVariation"><?= $this->getHtml('Stock'); ?></label>
|
||||
<tr>
|
||||
<td><select id="iPVariation" name="pvariation">
|
||||
<option value="0">
|
||||
</select>
|
||||
<tr>
|
||||
<td><label for="iPName"><?= $this->getHtml('ReorderLevel'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iPName" name="pname" type="text" placeholder="">
|
||||
<tr>
|
||||
<td><label for="iPName"><?= $this->getHtml('MinimumLevel'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iPName" name="pname" type="text" placeholder="">
|
||||
<tr>
|
||||
<td><label for="iPName"><?= $this->getHtml('MaximumLevel'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iPName" name="pname" type="text" placeholder="">
|
||||
<tr>
|
||||
<td><label for="iPName"><?= $this->getHtml('Leadtime'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iPName" name="pname" type="number" min="0" step="1" placeholder="">
|
||||
<tr>
|
||||
<td><input type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12 col-md-6 col-lg-4">
|
||||
<section class="box wf-100">
|
||||
<header>
|
||||
<h1><?= $this->getHtml('Supplier'); ?></h1>
|
||||
</header>
|
||||
<div class="inner">
|
||||
<form id="item-edit" action="<?= \phpOMS\Uri\UriFactory::build('{/api}itemmgmt/item'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><label for="iSupplierGroup"><?= $this->getHtml('ID'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iSupplierGroup" name="Suppliergroup" type="text" value="<?= $this->printHtml(''); ?>">
|
||||
<tr>
|
||||
<td><label for="iGeneralPriceStart"><?= $this->getHtml('Start'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iGeneralPriceStart" name="generalpricestart" type="datetime-local" value="<?= $this->printHtml(''); ?>">
|
||||
<tr>
|
||||
<td><label for="iGeneralPriceEnd"><?= $this->getHtml('End'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iGeneralPriceEnd" name="generalpriceend" type="datetime-local" value="<?= $this->printHtml(''); ?>">
|
||||
<tr>
|
||||
<td><label for="iPQuantity"><?= $this->getHtml('Quantity'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iPQuantity" name="quantity" type="text" placeholder="">
|
||||
<tr>
|
||||
<td><label for="iGeneralPrice"><?= $this->getHtml('Price'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iGeneralPrice" name="generalprice" type="number" step="0.0001" value="<?= $this->printHtml('0.00'); ?>">
|
||||
<!-- todo: maybe add promotion key/password here for online shop to provide special prices for certain customer groups -->
|
||||
<tr>
|
||||
<td><label for="iDiscount"><?= $this->getHtml('Discount'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iDiscount" name="discount" type="number" step="any" min="0" placeholder="">
|
||||
<tr>
|
||||
<td><label for="iDiscount"><?= $this->getHtml('DiscountP'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iDiscountP" name="discountp" type="number" step="any" min="0" placeholder="">
|
||||
<tr>
|
||||
<td><label for="iBonus"><?= $this->getHtml('Bonus'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iBonus" name="bonus" type="number" step="any" min="0" placeholder="">
|
||||
<tr>
|
||||
<td><label for="iPPriceUnit"><?= $this->getHtml('PriceUnit'); ?></label>
|
||||
<tr>
|
||||
<td><select id="iPPriceUnit" name="ppriceunit">
|
||||
<option value="0">
|
||||
</select>
|
||||
<tr>
|
||||
<td><label for="iPQuantityUnit"><?= $this->getHtml('QuantityUnit'); ?></label>
|
||||
<tr>
|
||||
<td><select id="iPQuantityUnit" name="pquantityunit">
|
||||
<option value="0">
|
||||
</select>
|
||||
<tr>
|
||||
<td><input type="submit" value="<?= $this->getHtml('Add', '0', '0'); ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12 col-md-6 col-lg-4">
|
||||
<table id="groupTable" class="box table default">
|
||||
<caption><?= $this->getHtml('Prices') ?><i class="fa fa-download floatRight download btn"></i></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>
|
||||
<td><?= $this->getHtml('ID', '0', '0'); ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||
<td class="wf-100"><?= $this->getHtml('Name') ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||
<tbody>
|
||||
<?php $c = 0;
|
||||
$l11ns = [];
|
||||
foreach ($l11ns as $key => $value) : ++$c;
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="#"><i class="fa fa-times"></i></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>
|
||||
<?php endforeach; ?>
|
||||
<?php if ($c === 0) : ?>
|
||||
<tr>
|
||||
<td colspan="5" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-6" name="tabular-2" checked>
|
||||
<div class="tab">
|
||||
<div class="row">
|
||||
</div>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-7" name="tabular-2" checked>
|
||||
<div class="tab">
|
||||
<div class="row">
|
||||
</div>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-8" name="tabular-2" checked>
|
||||
<div class="tab">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<section class="box wf-100">
|
||||
<header>
|
||||
<h1><?= $this->getHtml('General'); ?></h1>
|
||||
</header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><label for="iPVariation"><?= $this->getHtml('Container'); ?></label>
|
||||
<tr>
|
||||
<td><select id="iPVariation" name="pvariation">
|
||||
<option value="0">
|
||||
</select>
|
||||
<tr>
|
||||
<td><label for="iDiscount"><?= $this->getHtml('Quantity'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iDiscount" name="discount" type="number" step="any" min="0" placeholder="">
|
||||
<tr>
|
||||
<td><label for="iDiscount"><?= $this->getHtml('GrossWeight'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iDiscount" name="discount" type="number" step="any" min="0" placeholder="">
|
||||
<tr>
|
||||
<td><label for="iDiscount"><?= $this->getHtml('NetWeight'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iDiscount" name="discount" type="number" step="any" min="0" placeholder="">
|
||||
<tr>
|
||||
<td><label for="iDiscount"><?= $this->getHtml('Width'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iDiscount" name="discount" type="number" step="any" min="0" placeholder="">
|
||||
<tr>
|
||||
<td><label for="iDiscount"><?= $this->getHtml('Height'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iDiscount" name="discount" type="number" step="any" min="0" placeholder="">
|
||||
<tr>
|
||||
<td><label for="iDiscount"><?= $this->getHtml('Length'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iDiscount" name="discount" type="number" step="any" min="0" placeholder="">
|
||||
<tr>
|
||||
<td><label for="iDiscount"><?= $this->getHtml('Volume'); ?></label>
|
||||
<tr>
|
||||
<td><input id="iDiscount" name="discount" type="number" step="any" min="0" placeholder="">
|
||||
<tr>
|
||||
<td><input type="submit" value="<?= $this->getHtml('Add', '0', '0'); ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-9" name="tabular-2" checked>
|
||||
<div class="tab">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<section class="box wf-100">
|
||||
<header>
|
||||
<h1><?= $this->getHtml('General'); ?></h1>
|
||||
</header>
|
||||
<div class="inner">
|
||||
<form id="item-edit" action="<?= \phpOMS\Uri\UriFactory::build('{/api}itemmgmt/item'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><label for="iEarningIndicator"><?= $this->getHtml('EarningIndicator'); ?></label>
|
||||
<tr>
|
||||
<td>
|
||||
<select id="iEarningIndicator" name="settings_1000000020">
|
||||
<?php foreach ($languages as $code => $language) : ?>
|
||||
<option value="<?= $this->printHtml($code); ?>" <?= $this->printHtml(\strtolower($code) === \strtolower($settings[1000000020]) ? ' selected' : ''); ?>><?= $this->printHtml($language); ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<tr>
|
||||
<td><label for="iCostIndicator"><?= $this->getHtml('CostIndicator'); ?></label>
|
||||
<tr>
|
||||
<td>
|
||||
<select id="iCostIndicator" name="settings_1000000020">
|
||||
<?php foreach ($languages as $code => $language) : ?>
|
||||
<option value="<?= $this->printHtml($code); ?>" <?= $this->printHtml(\strtolower($code) === \strtolower($settings[1000000020]) ? ' selected' : ''); ?>><?= $this->printHtml($language); ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<tr>
|
||||
<td><label for="iCostCenter"><?= $this->getHtml('CostCenter'); ?></label>
|
||||
<tr>
|
||||
<td>
|
||||
<select id="iCostCenter" name="settings_1000000020">
|
||||
<?php foreach ($languages as $code => $language) : ?>
|
||||
<option value="<?= $this->printHtml($code); ?>" <?= $this->printHtml(\strtolower($code) === \strtolower($settings[1000000020]) ? ' selected' : ''); ?>><?= $this->printHtml($language); ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<tr>
|
||||
<td><label for="iCostObject"><?= $this->getHtml('CostObject'); ?></label>
|
||||
<tr>
|
||||
<td>
|
||||
<select id="iCostObject" name="settings_1000000020">
|
||||
<?php foreach ($languages as $code => $language) : ?>
|
||||
<option value="<?= $this->printHtml($code); ?>" <?= $this->printHtml(\strtolower($code) === \strtolower($settings[1000000020]) ? ' selected' : ''); ?>><?= $this->printHtml($language); ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="radio" id="c-tab-10" name="tabular-2" checked>
|
||||
<div class="tab">
|
||||
<div class="row">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="radio" id="c-tab-11" name="tabular-2" checked>
|
||||
<div class="tab">
|
||||
<div class="row">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="radio" id="c-tab-12" name="tabular-2" checked>
|
||||
<div class="tab">
|
||||
<div class="row">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="radio" id="c-tab-13" name="tabular-2" checked>
|
||||
<div class="tab">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<table class="default">
|
||||
<caption><?= $this->getHtml('Logs'); ?><i class="fa fa-download floatRight download btn"></i></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>IP
|
||||
<td><?= $this->getHtml('ID', '0', '0'); ?>
|
||||
<td><?= $this->getHtml('Name') ?>
|
||||
<td class="wf-100"><?= $this->getHtml('Log') ?>
|
||||
<td><?= $this->getHtml('Date') ?>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><?= $this->printHtml($this->request->getOrigin()); ?>
|
||||
<td><?= $this->printHtml($this->request->getHeader()->getAccount()); ?>
|
||||
<td><?= $this->printHtml($this->request->getHeader()->getAccount()); ?>
|
||||
<td>Creating item
|
||||
<td><?= $this->printHtml((new \DateTime('now'))->format('Y-m-d H:i:s')); ?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user