mirror of
https://github.com/Karaka-Management/oms-ItemManagement.git
synced 2026-01-11 11:48:41 +00:00
Bulkl path fix reverse
This commit is contained in:
parent
b127b542b6
commit
c9a202dfb2
44
Admin/Activate.php
Normal file
44
Admin/Activate.php
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
namespace Modules\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 <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @license OMS License 1.0
|
||||
* @link http://orange-management.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Activate extends ActivateAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static function activate(DatabasePool $dbPool, InfoManager $info)
|
||||
{
|
||||
parent::activate($dbPool, $info);
|
||||
}
|
||||
}
|
||||
44
Admin/Deactivate.php
Normal file
44
Admin/Deactivate.php
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
namespace Modules\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 <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @license OMS License 1.0
|
||||
* @link http://orange-management.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Deactivate extends DeactivateAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static function deactivate(DatabasePool $dbPool, InfoManager $info)
|
||||
{
|
||||
parent::deactivate($dbPool, $info);
|
||||
}
|
||||
}
|
||||
250
Admin/Install/Navigation.install.json
Normal file
250
Admin/Install/Navigation.install.json
Normal file
|
|
@ -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": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
40
Admin/Install/Navigation.php
Normal file
40
Admin/Install/Navigation.php
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
namespace Modules\ItemManagement\Admin\Install;
|
||||
use phpOMS\DataStorage\Database\DatabasePool;
|
||||
|
||||
/**
|
||||
* Navigation class.
|
||||
*
|
||||
* @category Modules
|
||||
* @package Modules\Admin
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @license OMS License 1.0
|
||||
* @link http://orange-management.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Navigation
|
||||
{
|
||||
public static function install(string $path, DatabasePool $dbPool)
|
||||
{
|
||||
$navData = json_decode(file_get_contents(__DIR__ . '/Navigation.install.json'), true);
|
||||
|
||||
$class = '\\Modules\\Navigation\\Admin\\Installer';
|
||||
/** @var $class \Modules\Navigation\Admin\Installer */
|
||||
$class::installExternal($dbPool, $navData);
|
||||
}
|
||||
}
|
||||
57
Admin/Installer.php
Normal file
57
Admin/Installer.php
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
namespace Modules\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 <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @license OMS License 1.0
|
||||
* @link http://orange-management.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Installer extends InstallerAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static function install(string $path, DatabasePool $dbPool, InfoManager $info)
|
||||
{
|
||||
parent::install($path, $dbPool, $info);
|
||||
|
||||
switch ($dbPool->get('core')->getType()) {
|
||||
case DatabaseType::MYSQL:
|
||||
$dbPool->get('core')->con->prepare(
|
||||
'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . '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;
|
||||
}
|
||||
}
|
||||
}
|
||||
42
Admin/Routes/Web/Backend.php
Normal file
42
Admin/Routes/Web/Backend.php
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
use phpOMS\Router\RouteVerb;
|
||||
|
||||
return [
|
||||
'^.*/backend/sales/item/list.*$' => [
|
||||
[
|
||||
'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,
|
||||
],
|
||||
],
|
||||
];
|
||||
3
Admin/Routes/console.php
Normal file
3
Admin/Routes/console.php
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<?php
|
||||
|
||||
$moduleRoutes = [];
|
||||
3
Admin/Routes/socket.php
Normal file
3
Admin/Routes/socket.php
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<?php
|
||||
|
||||
$moduleRoutes = [];
|
||||
52
Admin/Uninstall.php
Normal file
52
Admin/Uninstall.php
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
namespace Modules\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 <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @license OMS License 1.0
|
||||
* @link http://orange-management.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Uninstall extends UninstallAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static function uninstall(DatabasePool $dbPool, InfoManager $info)
|
||||
{
|
||||
parent::uninstall($dbPool, $info);
|
||||
|
||||
$query = new Builder($dbPool->get());
|
||||
|
||||
$query->prefix($dbPool->get('core')->getPrefix())->drop(
|
||||
'itemreference'
|
||||
);
|
||||
|
||||
$dbPool->get()->con->prepare($query->toSql())->execute();
|
||||
}
|
||||
}
|
||||
46
Admin/Update.php
Normal file
46
Admin/Update.php
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
namespace Modules\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 <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @license OMS License 1.0
|
||||
* @link http://orange-management.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Update extends UpdateAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static function update(DatabasePool $dbPool, array $info)
|
||||
{
|
||||
Directory::deletePath(__DIR__ . '/Update');
|
||||
mkdir('Update');
|
||||
parent::update($dbPool, $info);
|
||||
}
|
||||
}
|
||||
197
Controller.php
Normal file
197
Controller.php
Normal file
|
|
@ -0,0 +1,197 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
namespace Modules\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 <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @license OMS License 1.0
|
||||
* @link http://orange-management.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Controller extends ModuleAbstract implements WebInterface
|
||||
{
|
||||
|
||||
/**
|
||||
* Module path.
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
/* public */ const MODULE_PATH = __DIR__;
|
||||
|
||||
/**
|
||||
* Module version.
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
/* public */ const MODULE_VERSION = '1.0.0';
|
||||
|
||||
/**
|
||||
* Module name.
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
/* public */ const MODULE_NAME = '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 <d.eichhorn@oms.com>
|
||||
*/
|
||||
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 <d.eichhorn@oms.com>
|
||||
*/
|
||||
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 <d.eichhorn@oms.com>
|
||||
*/
|
||||
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 <d.eichhorn@oms.com>
|
||||
*/
|
||||
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 <d.eichhorn@oms.com>
|
||||
*/
|
||||
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 <d.eichhorn@oms.com>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
7
README.md
Normal file
7
README.md
Normal file
|
|
@ -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.
|
||||
20
Theme/Backend/Lang/Navigation.en.lang.php
Normal file
20
Theme/Backend/Lang/Navigation.en.lang.php
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
return ['Navigation' => [
|
||||
'Analyze' => 'Analyze',
|
||||
'List' => 'List',
|
||||
'Create' => 'Create',
|
||||
]];
|
||||
106
Theme/Backend/Lang/en.lang.php
Normal file
106
Theme/Backend/Lang/en.lang.php
Normal file
|
|
@ -0,0 +1,106 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
return ['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',
|
||||
]];
|
||||
627
Theme/Backend/item-create.tpl.php
Normal file
627
Theme/Backend/item-create.tpl.php
Normal file
|
|
@ -0,0 +1,627 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
/**
|
||||
* @var \phpOMS\Views\View $this
|
||||
*/
|
||||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
<div class="tabular-2">
|
||||
<div class="box">
|
||||
<ul class="tab-links">
|
||||
<li><label for="c-tab-1"><?= $this->getText('Master') ?></label>
|
||||
<li><label for="c-tab-2"><?= $this->getText('Properties') ?></label>
|
||||
<li><label for="c-tab-4"><?= $this->getText('Sales') ?></label>
|
||||
<li><label for="c-tab-5"><?= $this->getText('Purchase') ?></label>
|
||||
<li><label for="c-tab-6"><?= $this->getText('Accounting') ?></label>
|
||||
<li><label for="c-tab-7"><?= $this->getText('Production') ?></label>
|
||||
<li><label for="c-tab-8"><?= $this->getText('StockList') ?></label>
|
||||
<li><label for="c-tab-9"><?= $this->getText('QM') ?></label>
|
||||
<li><label for="c-tab-10"><?= $this->getText('Packaging') ?></label>
|
||||
<li><label for="c-tab-11"><?= $this->getText('Media') ?></label>
|
||||
<li><label for="c-tab-12"><?= $this->getText('Stock') ?></label>
|
||||
<li><label for="c-tab-13"><?= $this->getText('Disposal') ?></label>
|
||||
<li><label for="c-tab-14"><?= $this->getText('Files') ?></label>
|
||||
<li><label for="c-tab-15"><?= $this->getText('Logs') ?></label>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="tab-content">
|
||||
<input type="radio" id="c-tab-1" name="tabular-2" checked>
|
||||
<div class="tab">
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getText('Item') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/...'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iSource"><?= $this->getText('ID') ?></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="" required></span>
|
||||
<tr><td><label for="iSegment"><?= $this->getText('Segment') ?></label>
|
||||
<tr><td><input id="iSegment" name="segment" type="text" placeholder="" required>
|
||||
<tr><td><label for="iProductgroup"><?= $this->getText('Productgroup') ?></label>
|
||||
<tr><td><input id="iProductgroup" name="productgroup" type="text" placeholder="" required>
|
||||
<tr><td><label for="iGroup"><?= $this->getText('Group') ?></label>
|
||||
<tr><td><input id="iGroup" name="group" type="text" placeholder="" required>
|
||||
<tr><td><label for="iArticlegroup"><?= $this->getText('Articlegroup') ?></label>
|
||||
<tr><td><input id="iArticlegroup" name="articlegroup" type="text" placeholder="" required>
|
||||
<tr><td><label for="iSSuccessor"><?= $this->getText('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->getText('Create', 0, 0); ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getText('Language') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/...'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iLanguage"><?= $this->getText('Language') ?></label>
|
||||
<tr><td><select id="iLanguage" name="language">
|
||||
<option>
|
||||
</select>
|
||||
<tr><td><label for="iName"><?= $this->getText('Name1') ?></label>
|
||||
<tr><td><input id="iName" name="name" type="text" placeholder="">
|
||||
<tr><td><label for="iName"><?= $this->getText('Name2') ?></label>
|
||||
<tr><td><input id="iName" name="name" type="text" placeholder="">
|
||||
<tr><td><label for="iName"><?= $this->getText('Name3') ?></label>
|
||||
<tr><td><input id="iName" name="name" type="text" placeholder="">
|
||||
<tr><td><label for="iDescription"><?= $this->getText('Description') ?></label>
|
||||
<tr><td><textarea id="iDescription" name="description"></textarea>
|
||||
<tr><td><input type="submit" value="<?= $this->getText('Add', 0, 0) ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-2" name="tabular-2">
|
||||
<div class="tab">
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getText('Property') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/...'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iPCustomsId"><?= $this->getText('Name') ?></label>
|
||||
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input id="iPCustomsId" name="customsid" type="text" placeholder=""></span>
|
||||
<tr><td><label for="iPTradingUnit"><?= $this->getText('Unit') ?></label>
|
||||
<tr><td><select id="iPTracking" name="tracking">
|
||||
<option>
|
||||
</select>
|
||||
<tr><td><label for="iPCustomsId"><?= $this->getText('Value') ?></label>
|
||||
<tr><td><input id="iPCustomsId" name="customsid" type="text" placeholder="">
|
||||
<tr><td><input type="submit" value="<?= $this->getText('Add', 0, 0) ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getText('Language') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/...'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iPTradingUnit"><?= $this->getText('Language') ?></label>
|
||||
<tr><td><select id="iPTracking" name="tracking">
|
||||
<option>
|
||||
</select>
|
||||
<tr><td><label for="iPCustomsId"><?= $this->getText('Property') ?></label>
|
||||
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input id="iPCustomsId" name="customsid" type="text" placeholder=""></span>
|
||||
<tr><td><label for="iPCustomsId"><?= $this->getText('Translation') ?></label>
|
||||
<tr><td><input id="iPCustomsId" name="customsid" type="text" placeholder="">
|
||||
<tr><td><input type="submit" value="<?= $this->getText('Add', 0, 0) ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getText('Language') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/...'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iPTradingUnit"><?= $this->getText('Language') ?></label>
|
||||
<tr><td><select id="iPTracking" name="tracking">
|
||||
<option>
|
||||
</select>
|
||||
<tr><td><label for="iPCustomsId"><?= $this->getText('Value') ?></label>
|
||||
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input id="iPCustomsId" name="customsid" type="text" placeholder=""></span>
|
||||
<tr><td><label for="iPCustomsId"><?= $this->getText('Translation') ?></label>
|
||||
<tr><td><input id="iPCustomsId" name="customsid" type="text" placeholder="">
|
||||
<tr><td><input type="submit" value="<?= $this->getText('Add', 0, 0) ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getText('Attribute') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/...'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iPCustomsId"><?= $this->getText('Name') ?></label>
|
||||
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input id="iPCustomsId" name="customsid" type="text" placeholder=""></span>
|
||||
<tr><td><label for="iPTradingUnit"><?= $this->getText('Unit') ?></label>
|
||||
<tr><td><select id="iPTracking" name="tracking">
|
||||
<option>
|
||||
</select>
|
||||
<tr><td><label for="iPCustomsId"><?= $this->getText('Value') ?></label>
|
||||
<tr><td><input id="iPCustomsId" name="customsid" type="text" placeholder="">
|
||||
<tr><td><input type="submit" value="<?= $this->getText('Add', 0, 0) ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getText('Language') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/...'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iPTradingUnit"><?= $this->getText('Language') ?></label>
|
||||
<tr><td><select id="iPTracking" name="tracking">
|
||||
<option>
|
||||
</select>
|
||||
<tr><td><label for="iPCustomsId"><?= $this->getText('Attribute') ?></label>
|
||||
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input id="iPCustomsId" name="customsid" type="text" placeholder=""></span>
|
||||
<tr><td><label for="iPCustomsId"><?= $this->getText('Translation') ?></label>
|
||||
<tr><td><input id="iPCustomsId" name="customsid" type="text" placeholder="">
|
||||
<tr><td><input type="submit" value="<?= $this->getText('Add', 0, 0) ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getText('Language') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/...'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iPTradingUnit"><?= $this->getText('Language') ?></label>
|
||||
<tr><td><select id="iPTracking" name="tracking">
|
||||
<option>
|
||||
</select>
|
||||
<tr><td><label for="iPCustomsId"><?= $this->getText('Value') ?></label>
|
||||
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input id="iPCustomsId" name="customsid" type="text" placeholder=""></span>
|
||||
<tr><td><label for="iPCustomsId"><?= $this->getText('Translation') ?></label>
|
||||
<tr><td><input id="iPCustomsId" name="customsid" type="text" placeholder="">
|
||||
<tr><td><input type="submit" value="<?= $this->getText('Add', 0, 0) ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-4" name="tabular-2">
|
||||
<div class="tab">
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getText('Sales') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/...'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iPType"><?= $this->getText('Status') ?></label>
|
||||
<tr><td><select id="iPType" name="ptye">
|
||||
<option>
|
||||
</select>
|
||||
<tr><td><label for="iPrice">GTIN</label>
|
||||
<tr><td><input id="iPrice" name="price" type="text" placeholder="">
|
||||
<tr><td colspan="2"><label for="iPPriceUnit"><?= $this->getText('PriceUnit') ?></label>
|
||||
<tr><td><select id="iPPriceUnit" name="ppriceunit">
|
||||
<option value="0">
|
||||
</select><td>
|
||||
<tr><td colspan="2"><label for="iPQuantityUnit"><?= $this->getText('QuantityUnit') ?></label>
|
||||
<tr><td><select id="iPQuantityUnit" name="pquantityunit">
|
||||
<option value="0">
|
||||
</select><td>
|
||||
<tr><td><label for="iPTradingUnit"><?= $this->getText('TradingUnit') ?></label>
|
||||
<tr><td><input id="iPTradingUnit" name="tradingunit" type="number" min="0" step="any" placeholder="">
|
||||
<tr><td><label for="iPTracking"><?= $this->getText('Tracking') ?></label>
|
||||
<tr><td><select id="iPTracking" name="tracking">
|
||||
<option><?= $this->getText('None') ?>
|
||||
<option><?= $this->getText('Lot') ?>
|
||||
<option><?= $this->getText('SN') ?>
|
||||
<option><?= $this->getText('Purchase') ?>
|
||||
</select>
|
||||
<tr><td><label for="iPVariation"><?= $this->getText('Commission') ?></label>
|
||||
<tr><td><select id="iPVariation" name="pvariation">
|
||||
<option value="0">
|
||||
</select>
|
||||
<tr><td><label for="iPCustomsId"><?= $this->getText('CustomsID') ?></label>
|
||||
<tr><td><input id="iPCustomsId" name="customsid" type="text" placeholder="">
|
||||
<tr><td><label for="iSInfo"><?= $this->getText('Info') ?></label>
|
||||
<tr><td><textarea id="iSInfo" name="sinfo"></textarea>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getText('Price') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/...'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td colspan="2"><label for="iPName"><?= $this->getText('Name') ?></label>
|
||||
<tr><td><input id="iPName" name="pname" type="text" placeholder=""><td>
|
||||
<tr><td colspan="2"><label for="iPrice"><?= $this->getText('Start') ?></label>
|
||||
<tr><td><input id="iPrice" name="price" type="datetime-local"><td>
|
||||
<tr><td colspan="2"><label for="iPrice"><?= $this->getText('End') ?></label>
|
||||
<tr><td><input id="iPrice" name="price" type="datetime-local"><td>
|
||||
<tr><td colspan="2"><label for="iPType"><?= $this->getText('Country') ?></label>
|
||||
<tr><td><select id="iPType" name="ptye">
|
||||
<option>
|
||||
</select><td>
|
||||
<tr><td colspan="2"><label for="iPQuantity"><?= $this->getText('Quantity') ?></label>
|
||||
<tr><td><input id="iPQuantity" name="quantity" type="text" placeholder=""><td>
|
||||
<tr><td colspan="2"><label for="iPrice"><?= $this->getText('Price') ?></label>
|
||||
<tr><td><input id="iPrice" name="price" type="number" step="any" min="0" placeholder=""><td>
|
||||
<tr><td colspan="2"><label for="iDiscount"><?= $this->getText('Discount') ?></label>
|
||||
<tr><td><input id="iDiscount" name="discount" type="number" step="any" min="0" placeholder=""><td>
|
||||
<tr><td colspan="2"><label for="iDiscount"><?= $this->getText('DiscountP') ?></label>
|
||||
<tr><td><input id="iDiscountP" name="discountp" type="number" step="any" min="0" placeholder=""><td>
|
||||
<tr><td colspan="2"><label for="iBonus"><?= $this->getText('Bonus') ?></label>
|
||||
<tr><td><input id="iBonus" name="bonus" type="number" step="any" min="0" placeholder=""><td>
|
||||
<tr><td colspan="2"><label for="iGroup"><?= $this->getText('ClientGroup') ?></label>
|
||||
<tr><td><input id="iGroup" name="price" type="text" placeholder=""><td><button><?= $this->getText('Add', 0, 0) ?></button>
|
||||
<tr><td colspan="2"><input type="submit" value="<?= $this->getText('Add', 0, 0) ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-5" name="tabular-2">
|
||||
<div class="tab">
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getText('Purchase') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/...'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iSupplierId"><?= $this->getText('Supplier') ?></label>
|
||||
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input id="iSupplierId" name="supplierid" type="text" placeholder="" required></span>
|
||||
<tr><td><label for="iPrice">GTIN</label>
|
||||
<tr><td><input id="iPrice" name="price" type="text" placeholder="">
|
||||
<tr><td><label for="iPPriceUnit"><?= $this->getText('PriceUnit') ?></label>
|
||||
<tr><td><select id="iPPriceUnit" name="ppriceunit">
|
||||
<option value="0">
|
||||
</select><td>
|
||||
<tr><td><label for="iPQuantityUnit"><?= $this->getText('QuantityUnit') ?></label>
|
||||
<tr><td><select id="iPQuantityUnit" name="pquantityunit">
|
||||
<option value="0">
|
||||
</select><td>
|
||||
<tr><td><label for="iPTradingUnit"><?= $this->getText('TradingUnit') ?></label>
|
||||
<tr><td><input id="iPTradingUnit" name="tradingunit" type="number" min="0" step="any" placeholder="">
|
||||
<tr><td><label for="iPTracking"><?= $this->getText('Tracking') ?></label>
|
||||
<tr><td><select id="iPTracking" name="tracking">
|
||||
<option><?= $this->getText('None') ?>
|
||||
<option><?= $this->getText('Lot') ?>
|
||||
<option><?= $this->getText('SN') ?>
|
||||
</select>
|
||||
<tr><td><label for="iPInfo"><?= $this->getText('Info') ?></label>
|
||||
<tr><td><textarea id="iPInfo" name="pinfo"></textarea>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getText('Price') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/...'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iPName"><?= $this->getText('Name') ?></label>
|
||||
<tr><td><input id="iPName" name="pname" type="text" placeholder="">
|
||||
<tr><td><label for="iPQuantity"><?= $this->getText('Quantity') ?></label>
|
||||
<tr><td><input id="iPQuantity" name="quantity" type="text" placeholder="">
|
||||
<tr><td><label for="iPrice"><?= $this->getText('Price') ?></label>
|
||||
<tr><td><input id="iPrice" name="price" type="number" step="any" min="0" placeholder=""><td>
|
||||
<tr><td><label for="iDiscount"><?= $this->getText('Discount') ?></label>
|
||||
<tr><td><input id="iDiscount" name="discount" type="number" step="any" min="0" placeholder="">
|
||||
<tr><td><label for="iDiscount"><?= $this->getText('DiscountP') ?></label>
|
||||
<tr><td><input id="iDiscountP" name="discountp" type="number" step="any" min="0" placeholder="">
|
||||
<tr><td><label for="iBonus"><?= $this->getText('Bonus') ?></label>
|
||||
<tr><td><input id="iBonus" name="bonus" type="number" step="any" min="0" placeholder="">
|
||||
<tr><td><input type="submit" value="<?= $this->getText('Add', 0, 0) ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getText('Stock') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/...'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iPVariation"><?= $this->getText('Stock') ?></label>
|
||||
<tr><td><select id="iPVariation" name="pvariation">
|
||||
<option value="0">
|
||||
</select>
|
||||
<tr><td><label for="iPName"><?= $this->getText('ReorderLevel') ?></label>
|
||||
<tr><td><input id="iPName" name="pname" type="text" placeholder="">
|
||||
<tr><td><label for="iPName"><?= $this->getText('MinimumLevel') ?></label>
|
||||
<tr><td><input id="iPName" name="pname" type="text" placeholder="">
|
||||
<tr><td><label for="iPName"><?= $this->getText('MaximumLevel') ?></label>
|
||||
<tr><td><input id="iPName" name="pname" type="text" placeholder="">
|
||||
<tr><td><label for="iPName"><?= $this->getText('Leadtime') ?></label>
|
||||
<tr><td><input id="iPName" name="pname" type="number" min="0" step="1" placeholder="">
|
||||
<tr><td><input type="submit" value="<?= $this->getText('Save', 0) ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getText('Supplier') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/...'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iPName"><?= $this->getText('Name') ?></label>
|
||||
<tr><td><input id="iPName" name="pname" type="text" placeholder="">
|
||||
<tr><td><label for="iPName"><?= $this->getText('Description') ?></label>
|
||||
<tr><td><textarea></textarea>
|
||||
<tr><td><input type="submit" value="<?= $this->getText('Add', 0, 0) ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-6" name="tabular-2">
|
||||
<div class="tab">
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getText('Accounting') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/...'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td colspan="2"><label for="iACostIndicator"><?= $this->getText('CostIndicator') ?></label>
|
||||
<tr><td><input id="iACostIndicator" name="costindicator" type="text" placeholder="">
|
||||
<tr><td colspan="2"><label for="iAEarningIndicator"><?= $this->getText('EarningIndicator') ?></label>
|
||||
<tr><td><input id="iAEarningIndicator" name="earningindicator" type="text" placeholder="">
|
||||
<tr><td colspan="2"><label for="iACostIndicator"><?= $this->getText('CostCenter') ?></label>
|
||||
<tr><td><input id="iACostIndicator" name="costindicator" type="text" placeholder="">
|
||||
<tr><td colspan="2"><label for="iAEarningIndicator"><?= $this->getText('CostObject') ?></label>
|
||||
<tr><td><input id="iAEarningIndicator" name="earningindicator" type="text" placeholder="">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-7" name="tabular-2">
|
||||
<div class="tab">
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getText('Production') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/...'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iPType"><?= $this->getText('Status') ?></label>
|
||||
<tr><td><select id="iPType" name="ptye">
|
||||
<option>
|
||||
</select>
|
||||
<tr><td><label for="iDiscount"><?= $this->getText('Makespan') ?></label>
|
||||
<tr><td><input id="iDiscount" name="discount" type="number" step="any" min="0" placeholder="">
|
||||
<tr><td><label for="iPType"><?= $this->getText('TimeUnit') ?></label>
|
||||
<tr><td><select id="iPType" name="ptye">
|
||||
<option value="0">ms
|
||||
<option value="1">s
|
||||
<option value="2">m
|
||||
<option value="3">h
|
||||
<option value="4">d
|
||||
</select>
|
||||
<tr><td><label for="iPName"><?= $this->getText('Info') ?></label>
|
||||
<tr><td><textarea></textarea>
|
||||
<tr><td><input type="submit" value="<?= $this->getText('Add', 0, 0) ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-8" name="tabular-2">
|
||||
<div class="tab">
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getText('StockList') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/...'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iSource"><?= $this->getText('ID') ?></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><label for="iDiscount"><?= $this->getText('Quantity') ?></label>
|
||||
<tr><td><input id="iDiscount" name="discount" type="number" step="any" min="0" placeholder="">
|
||||
<tr><td><input type="submit" value="<?= $this->getText('Add', 0, 0) ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-9" name="tabular-2">
|
||||
<div class="tab">
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getText('QM') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/...'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-10" name="tabular-2">
|
||||
<div class="tab">
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getText('Packaging') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/...'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iPVariation"><?= $this->getText('Container') ?></label>
|
||||
<tr><td><select id="iPVariation" name="pvariation">
|
||||
<option value="0">
|
||||
</select>
|
||||
<tr><td><label for="iDiscount"><?= $this->getText('Quantity') ?></label>
|
||||
<tr><td><input id="iDiscount" name="discount" type="number" step="any" min="0" placeholder="">
|
||||
<tr><td><label for="iDiscount"><?= $this->getText('GrossWeight') ?></label>
|
||||
<tr><td><input id="iDiscount" name="discount" type="number" step="any" min="0" placeholder="">
|
||||
<tr><td><label for="iDiscount"><?= $this->getText('NetWeight') ?></label>
|
||||
<tr><td><input id="iDiscount" name="discount" type="number" step="any" min="0" placeholder="">
|
||||
<tr><td><label for="iDiscount"><?= $this->getText('Width') ?></label>
|
||||
<tr><td><input id="iDiscount" name="discount" type="number" step="any" min="0" placeholder="">
|
||||
<tr><td><label for="iDiscount"><?= $this->getText('Height') ?></label>
|
||||
<tr><td><input id="iDiscount" name="discount" type="number" step="any" min="0" placeholder="">
|
||||
<tr><td><label for="iDiscount"><?= $this->getText('Length') ?></label>
|
||||
<tr><td><input id="iDiscount" name="discount" type="number" step="any" min="0" placeholder="">
|
||||
<tr><td><label for="iDiscount"><?= $this->getText('Volume') ?></label>
|
||||
<tr><td><input id="iDiscount" name="discount" type="number" step="any" min="0" placeholder="">
|
||||
<tr><td><input type="submit" value="<?= $this->getText('Add', 0, 0) ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-11" name="tabular-2">
|
||||
<div class="tab">
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getText('Media') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/...'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iDiscount"><?= $this->getText('Media') ?></label>
|
||||
<tr><td><input id="iDiscount" name="discount" type="file" multiple>
|
||||
<tr><td><input type="submit" value="<?= $this->getText('Add', 0, 0) ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-12" name="tabular-2">
|
||||
<div class="tab">
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getText('Stock') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/...'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iPVariation"><?= $this->getText('ShelfLife') ?></label>
|
||||
<tr><td><input id="iDiscount" name="discount" type="number" min="0" step="1">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getText('Stock') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/...'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iPVariation"><?= $this->getText('Stock') ?></label>
|
||||
<tr><td><select id="iPVariation" name="pvariation">
|
||||
<option value="0">
|
||||
</select>
|
||||
<tr><td><label for="iPVariation"><?= $this->getText('Warehouse') ?></label>
|
||||
<tr><td><select id="iPVariation" name="pvariation">
|
||||
<option value="0">
|
||||
</select>
|
||||
<tr><td><label for="iPVariation"><?= $this->getText('Location') ?></label>
|
||||
<tr><td><input id="iDiscount" name="discount" type="text"><!-- can also be empty if dynamically assigned instead of fixed -->
|
||||
<tr><td><input type="submit" value="<?= $this->getText('Add', 0, 0) ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-13" name="tabular-2">
|
||||
<div class="tab">
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getText('Disposal') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/...'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-14" name="tabular-2">
|
||||
<div class="tab">
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getText('Files') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/...'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iDiscount"><?= $this->getText('Files') ?></label>
|
||||
<tr><td><input id="iDiscount" name="discount" type="file" multiple>
|
||||
<tr><td><input type="submit" value="<?= $this->getText('Add', 0, 0) ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-15" name="tabular-2">
|
||||
<div class="tab">
|
||||
<?php
|
||||
$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);
|
||||
?>
|
||||
<div class="box w-100">
|
||||
<table class="table">
|
||||
<caption><?= $this->getText('Logs') ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>IP
|
||||
<td><?= $this->getText('ID', 0, 0); ?>
|
||||
<td><?= $this->getText('Name'); ?>
|
||||
<td class="wf-100"><?= $this->getText('Log'); ?>
|
||||
<td><?= $this->getText('Date'); ?>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="6"><?= $footerView->render(); ?>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><?= $this->request->getOrigin(); ?>
|
||||
<td><?= $this->request->getAccount(); ?>
|
||||
<td><?= $this->request->getAccount(); ?>
|
||||
<td>Creating item
|
||||
<td><?= (new \DateTime('now'))->format('Y-m-d H:i:s') ?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--
|
||||
@todo:
|
||||
maybe put a master variations selection at the beginning so that you need to change it for other variations...
|
||||
this way you will however not be able to see all at once only one at a time
|
||||
make container in packaging department that can be used by packaging for sales and purchase
|
||||
Shelf life (stock???)
|
||||
Packaging dimension+weight+units for different types (pallet, case etc.)
|
||||
Language for all variations based on variables: e.g. ${size} T-shirt in ${color}
|
||||
|
||||
stock vergleichbar mit filiale
|
||||
warehouse lager in einer filiale (sd e.g. werkstatt, impla, safe, etc),
|
||||
-->
|
||||
49
Theme/Backend/purchase-item-list.tpl.php
Normal file
49
Theme/Backend/purchase-item-list.tpl.php
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
|
||||
$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(); ?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="box wf-100">
|
||||
<table class="table">
|
||||
<caption><?= $this->getText('Items') ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td><?= $this->getText('ID', 0, 0); ?>
|
||||
<td class="wf-100"><?= $this->getText('Name'); ?>
|
||||
<td><?= $this->getText('Price'); ?>
|
||||
<td><?= $this->getText('Available'); ?>
|
||||
<td><?= $this->getText('Reserved'); ?>
|
||||
<td><?= $this->getText('Ordered'); ?>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="6"><?= $footerView->render(); ?>
|
||||
<tbody>
|
||||
<?php $count = 0; foreach([] as $key => $value) : $count++; ?>
|
||||
<?php endforeach; ?>
|
||||
<?php if($count === 0) : ?>
|
||||
<tr><td colspan="6" class="empty"><?= $this->getText('Empty', 0, 0); ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
49
Theme/Backend/sales-item-list.tpl.php
Normal file
49
Theme/Backend/sales-item-list.tpl.php
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
|
||||
$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(); ?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="box wf-100">
|
||||
<table class="table">
|
||||
<caption><?= $this->getText('Items') ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td><?= $this->getText('ID', 0, 0); ?>
|
||||
<td class="wf-100"><?= $this->getText('Name'); ?>
|
||||
<td><?= $this->getText('Price'); ?>
|
||||
<td><?= $this->getText('Available'); ?>
|
||||
<td><?= $this->getText('Reserved'); ?>
|
||||
<td><?= $this->getText('Ordered'); ?>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="6"><?= $footerView->render(); ?>
|
||||
<tbody>
|
||||
<?php $count = 0; foreach([] as $key => $value) : $count++; ?>
|
||||
<?php endforeach; ?>
|
||||
<?php if($count === 0) : ?>
|
||||
<tr><td colspan="6" class="empty"><?= $this->getText('Empty', 0, 0); ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
57
Theme/Backend/stock-list.tpl.php
Normal file
57
Theme/Backend/stock-list.tpl.php
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
/**
|
||||
* @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(); ?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="box wf-100">
|
||||
<table class="table">
|
||||
<caption><?= $this->getText('Stock'); ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td><?= $this->getText('ID', 0, 0); ?>
|
||||
<td class="wf-100"><?= $this->getText('Article'); ?>
|
||||
<td><?= $this->getText('Quantity'); ?>
|
||||
<tfoot>
|
||||
<tr><td colspan="8"><?= $footerView->render(); ?>
|
||||
<tbody>
|
||||
<?php $c = 0; foreach ([] as $key => $value) : $c++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/business/department/profile?{?}&id=' . $value->getId()); ?>
|
||||
<tr>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getName(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getParent(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getUnit(); ?></a>
|
||||
<?php endforeach; ?>
|
||||
<?php if($c === 0) : ?>
|
||||
<tr>
|
||||
<td colspan="8" class="empty"><?= $this->getText('Empty', 0, 0); ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
46
info.json
Normal file
46
info.json
Normal file
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user