mirror of
https://github.com/Karaka-Management/oms-SalesAnalysis.git
synced 2026-02-15 18:38:41 +00:00
Templating
This commit is contained in:
parent
57dc16efc9
commit
719ee857e8
44
Admin/Activate.php
Normal file
44
Admin/Activate.php
Normal file
|
|
@ -0,0 +1,44 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.0
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright 2013 Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
namespace Modules\SalesAnalysis\Admin;
|
||||||
|
|
||||||
|
|
||||||
|
use phpOMS\DataStorage\Database\Pool;
|
||||||
|
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(Pool $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.0
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright 2013 Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
namespace Modules\SalesAnalysis\Admin;
|
||||||
|
|
||||||
|
|
||||||
|
use phpOMS\DataStorage\Database\Pool;
|
||||||
|
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(Pool $dbPool, InfoManager $info)
|
||||||
|
{
|
||||||
|
parent::deactivate($dbPool, $info);
|
||||||
|
}
|
||||||
|
}
|
||||||
138
Admin/Install/Navigation.install.json
Normal file
138
Admin/Install/Navigation.install.json
Normal file
|
|
@ -0,0 +1,138 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"id": 1005401001,
|
||||||
|
"pid": "754a08ddf8bcb1cf22f310f09206dd783d42f7dd",
|
||||||
|
"type": 2,
|
||||||
|
"subtype": 1,
|
||||||
|
"name": "Analysis",
|
||||||
|
"uri": "/{/lang}/backend/sales/analysis/overview/dashboard",
|
||||||
|
"target": "self",
|
||||||
|
"icon": null,
|
||||||
|
"order": 15,
|
||||||
|
"from": "Analysis",
|
||||||
|
"permission": null,
|
||||||
|
"parent": 1001601001,
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"id": 1005401002,
|
||||||
|
"pid": "44cbe06dd734865b28c110fbbf91d78ccf8124ae",
|
||||||
|
"type": 3,
|
||||||
|
"subtype": 1,
|
||||||
|
"name": "Overview",
|
||||||
|
"uri": "/{/lang}/backend/sales/analysis/overview/dashboard",
|
||||||
|
"target": "self",
|
||||||
|
"icon": "fa fa-bar-chart",
|
||||||
|
"order": 1,
|
||||||
|
"from": "Analysis",
|
||||||
|
"permission": null,
|
||||||
|
"parent": 1005401001,
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1005401003,
|
||||||
|
"pid": "44cbe06dd734865b28c110fbbf91d78ccf8124ae",
|
||||||
|
"type": 3,
|
||||||
|
"subtype": 1,
|
||||||
|
"name": "Products",
|
||||||
|
"uri": "/{/lang}/backend/sales/analysis/product/dashboard",
|
||||||
|
"target": "self",
|
||||||
|
"icon": "fa fa-tag",
|
||||||
|
"order": 1,
|
||||||
|
"from": "Analysis",
|
||||||
|
"permission": null,
|
||||||
|
"parent": 1005401001,
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1005401004,
|
||||||
|
"pid": "44cbe06dd734865b28c110fbbf91d78ccf8124ae",
|
||||||
|
"type": 3,
|
||||||
|
"subtype": 1,
|
||||||
|
"name": "Customers",
|
||||||
|
"uri": "/{/lang}/backend/sales/analysis/customer/dashboard",
|
||||||
|
"target": "self",
|
||||||
|
"icon": "fa fa-users",
|
||||||
|
"order": 1,
|
||||||
|
"from": "Analysis",
|
||||||
|
"permission": null,
|
||||||
|
"parent": 1005401001,
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1005401005,
|
||||||
|
"pid": "44cbe06dd734865b28c110fbbf91d78ccf8124ae",
|
||||||
|
"type": 3,
|
||||||
|
"subtype": 1,
|
||||||
|
"name": "Regions",
|
||||||
|
"uri": "/{/lang}/backend/sales/analysis/region/dashboard",
|
||||||
|
"target": "self",
|
||||||
|
"icon": "fa fa-globe",
|
||||||
|
"order": 1,
|
||||||
|
"from": "Analysis",
|
||||||
|
"permission": null,
|
||||||
|
"parent": 1005401001,
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1005401006,
|
||||||
|
"pid": "44cbe06dd734865b28c110fbbf91d78ccf8124ae",
|
||||||
|
"type": 3,
|
||||||
|
"subtype": 1,
|
||||||
|
"name": "Marketing",
|
||||||
|
"uri": "/{/lang}/backend/sales/analysis/marketing/dashboard",
|
||||||
|
"target": "self",
|
||||||
|
"icon": "fa fa-paint-brush",
|
||||||
|
"order": 1,
|
||||||
|
"from": "Analysis",
|
||||||
|
"permission": null,
|
||||||
|
"parent": 1005401001,
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1005401007,
|
||||||
|
"pid": "44cbe06dd734865b28c110fbbf91d78ccf8124ae",
|
||||||
|
"type": 3,
|
||||||
|
"subtype": 1,
|
||||||
|
"name": "Employees",
|
||||||
|
"uri": "/{/lang}/backend/sales/analysis/employees/dashboard",
|
||||||
|
"target": "self",
|
||||||
|
"icon": "fa fa-building-o",
|
||||||
|
"order": 1,
|
||||||
|
"from": "Analysis",
|
||||||
|
"permission": null,
|
||||||
|
"parent": 1005401001,
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1005401008,
|
||||||
|
"pid": "44cbe06dd734865b28c110fbbf91d78ccf8124ae",
|
||||||
|
"type": 3,
|
||||||
|
"subtype": 1,
|
||||||
|
"name": "Invoices",
|
||||||
|
"uri": "/{/lang}/backend/sales/analysis/invoices/dashboard",
|
||||||
|
"target": "self",
|
||||||
|
"icon": "fa fa-envelope",
|
||||||
|
"order": 1,
|
||||||
|
"from": "Analysis",
|
||||||
|
"permission": null,
|
||||||
|
"parent": 1005401001,
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1005401009,
|
||||||
|
"pid": "44cbe06dd734865b28c110fbbf91d78ccf8124ae",
|
||||||
|
"type": 3,
|
||||||
|
"subtype": 1,
|
||||||
|
"name": "Database",
|
||||||
|
"uri": "/{/lang}/backend/sales/analysis/invoices/dashboard",
|
||||||
|
"target": "self",
|
||||||
|
"icon": "fa fa-database",
|
||||||
|
"order": 1,
|
||||||
|
"from": "Analysis",
|
||||||
|
"permission": null,
|
||||||
|
"parent": 1005401001,
|
||||||
|
"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.0
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright 2013 Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
namespace Modules\SalesAnalysis\Admin\Install;
|
||||||
|
use phpOMS\DataStorage\Database\Pool;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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(Pool $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);
|
||||||
|
}
|
||||||
|
}
|
||||||
50
Admin/Installer.php
Normal file
50
Admin/Installer.php
Normal file
|
|
@ -0,0 +1,50 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.0
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright 2013 Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
namespace Modules\SalesAnalysis\Admin;
|
||||||
|
|
||||||
|
use phpOMS\DataStorage\Database\DatabaseType;
|
||||||
|
use phpOMS\DataStorage\Database\Pool;
|
||||||
|
use phpOMS\Module\InfoManager;
|
||||||
|
use phpOMS\Module\InstallerAbstract;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sales install class.
|
||||||
|
*
|
||||||
|
* @category Modules
|
||||||
|
* @package Modules\Sales
|
||||||
|
* @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(Pool $dbPool, InfoManager $info)
|
||||||
|
{
|
||||||
|
parent::install($dbPool, $info);
|
||||||
|
|
||||||
|
switch ($dbPool->get('core')->getType()) {
|
||||||
|
case DatabaseType::MYSQL:
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
3
Admin/Routes/console.php
Normal file
3
Admin/Routes/console.php
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$moduleRoutes = [];
|
||||||
19
Admin/Routes/http.php
Normal file
19
Admin/Routes/http.php
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
use phpOMS\Router\RouteVerb;
|
||||||
|
|
||||||
|
return [
|
||||||
|
'^.*/backend/sales/analysis/dashboard.*$' => [
|
||||||
|
[
|
||||||
|
'dest' => '\Modules\SalesAnalysis\Controller:viewBackendDashboard',
|
||||||
|
'verb' => RouteVerb::GET,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
|
||||||
|
'^.*/backend/sales/analysis/overview/dashboard.*$' => [
|
||||||
|
[
|
||||||
|
'dest' => '\Modules\SalesAnalysis\Controller:viewBackendOverviewDashboard',
|
||||||
|
'verb' => RouteVerb::GET,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
];
|
||||||
3
Admin/Routes/socket.php
Normal file
3
Admin/Routes/socket.php
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$moduleRoutes = [];
|
||||||
43
Admin/Uninstall.php
Normal file
43
Admin/Uninstall.php
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.0
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright 2013 Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
namespace Modules\SalesAnalysis\Admin;
|
||||||
|
|
||||||
|
|
||||||
|
use phpOMS\DataStorage\Database\Pool;
|
||||||
|
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(Pool $dbPool, InfoManager $info)
|
||||||
|
{
|
||||||
|
parent::uninstall($dbPool, $info);
|
||||||
|
}
|
||||||
|
}
|
||||||
46
Admin/Update.php
Normal file
46
Admin/Update.php
Normal file
|
|
@ -0,0 +1,46 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.0
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright 2013 Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
namespace Modules\SalesAnalysis\Admin;
|
||||||
|
|
||||||
|
|
||||||
|
use phpOMS\DataStorage\Database\Pool;
|
||||||
|
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(Pool $dbPool, array $info)
|
||||||
|
{
|
||||||
|
Directory::deletePath(__DIR__ . '/Update');
|
||||||
|
mkdir('Update');
|
||||||
|
parent::update($dbPool, $info);
|
||||||
|
}
|
||||||
|
}
|
||||||
120
Controller.php
Normal file
120
Controller.php
Normal file
|
|
@ -0,0 +1,120 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.0
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright 2013 Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
namespace Modules\SalesAnalysis;
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sales class.
|
||||||
|
*
|
||||||
|
* @category Modules
|
||||||
|
* @package Modules\Sales
|
||||||
|
* @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
|
||||||
|
*/
|
||||||
|
const MODULE_PATH = __DIR__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Module version.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
const MODULE_VERSION = '1.0.0';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Module name.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
const MODULE_NAME = 'SalesAnalysis';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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 \Serializable
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function viewBackendDashboard(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable
|
||||||
|
{
|
||||||
|
$view = new View($this->app, $request, $response);
|
||||||
|
$view->setTemplate('/Modules/SalesAnalysis/Theme/Backend/analysis-dashboard');
|
||||||
|
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationSplash(1005401001, $request, $response));
|
||||||
|
|
||||||
|
return $view;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param RequestAbstract $request Request
|
||||||
|
* @param ResponseAbstract $response Response
|
||||||
|
* @param mixed $data Generic data
|
||||||
|
*
|
||||||
|
* @return \Serializable
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function viewBackendOverviewDashboard(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable
|
||||||
|
{
|
||||||
|
$view = new View($this->app, $request, $response);
|
||||||
|
$view->setTemplate('/Modules/SalesAnalysis/Theme/Backend/analysis-overview-dashboard');
|
||||||
|
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1005401001, $request, $response));
|
||||||
|
|
||||||
|
return $view;
|
||||||
|
}
|
||||||
|
}
|
||||||
0
Models/Article.php
Normal file
0
Models/Article.php
Normal file
0
Models/Client.php
Normal file
0
Models/Client.php
Normal file
521
Models/Invoice.php
Normal file
521
Models/Invoice.php
Normal file
|
|
@ -0,0 +1,521 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.0
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright 2013 Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
namespace Modules\Sales\Models;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sales invoice class.
|
||||||
|
*
|
||||||
|
* @category Modules
|
||||||
|
* @package Modules\Sales
|
||||||
|
* @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 Invoice
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database instance.
|
||||||
|
*
|
||||||
|
* @var \phpOMS\DataStorage\Database\Database
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
private $dbPool = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* private $id = null;.
|
||||||
|
*
|
||||||
|
* private $referer = null;
|
||||||
|
*
|
||||||
|
* private $reference = null;
|
||||||
|
*
|
||||||
|
* private $orderer = null;
|
||||||
|
*
|
||||||
|
* private $ordered = null;
|
||||||
|
*
|
||||||
|
* private $creator = null;
|
||||||
|
*
|
||||||
|
* private $created = null;
|
||||||
|
*
|
||||||
|
* private $client = null;
|
||||||
|
*
|
||||||
|
* private $deliveryAddress = null;
|
||||||
|
*
|
||||||
|
* private $billingAddress = null;
|
||||||
|
*
|
||||||
|
* private $payment = null;
|
||||||
|
*
|
||||||
|
* private $delivery = null;
|
||||||
|
*
|
||||||
|
* private $freightage = null;
|
||||||
|
*
|
||||||
|
* private $invoiceItemList = [];
|
||||||
|
*
|
||||||
|
* private $info = '';
|
||||||
|
*
|
||||||
|
* private $status = null;
|
||||||
|
*
|
||||||
|
* private $price = null;
|
||||||
|
*
|
||||||
|
* private $currency = null;
|
||||||
|
*
|
||||||
|
* /**
|
||||||
|
* Constructor
|
||||||
|
*
|
||||||
|
* @param \phpOMS\DataStorage\Database\Pool $dbPool Database pool instance
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function __construct($dbPool)
|
||||||
|
{
|
||||||
|
$this->dbPool = $dbPool;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return null
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
return $this->id;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param null $id
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function setId($id)
|
||||||
|
{
|
||||||
|
$this->id = $id;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return null
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function getReference()
|
||||||
|
{
|
||||||
|
return $this->reference;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param null $reference
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function setReference($reference)
|
||||||
|
{
|
||||||
|
$this->reference = $reference;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return null
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function getOrderer()
|
||||||
|
{
|
||||||
|
return $this->orderer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param null $orderer
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function setOrderer($orderer)
|
||||||
|
{
|
||||||
|
$this->orderer = $orderer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return null
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function getOrdered()
|
||||||
|
{
|
||||||
|
return $this->ordered;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param null $ordered
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function setOrdered($ordered)
|
||||||
|
{
|
||||||
|
$this->ordered = $ordered;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return null
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function getCreator()
|
||||||
|
{
|
||||||
|
return $this->creator;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param null $creator
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function setCreator($creator)
|
||||||
|
{
|
||||||
|
$this->creator = $creator;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return null
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
return $this->created;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param null $created
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function setCreated($created)
|
||||||
|
{
|
||||||
|
$this->created = $created;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return null
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function getClient()
|
||||||
|
{
|
||||||
|
return $this->client;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param null $client
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function setClient($client)
|
||||||
|
{
|
||||||
|
$this->client = $client;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return null
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function getDeliveryAddress()
|
||||||
|
{
|
||||||
|
return $this->deliveryAddress;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param null $deliveryAddress
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function setDeliveryAddress($deliveryAddress)
|
||||||
|
{
|
||||||
|
$this->deliveryAddress = $deliveryAddress;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return null
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function getBillingAddress()
|
||||||
|
{
|
||||||
|
return $this->billingAddress;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param null $billingAddress
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function setBillingAddress($billingAddress)
|
||||||
|
{
|
||||||
|
$this->billingAddress = $billingAddress;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return null
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function getPayment()
|
||||||
|
{
|
||||||
|
return $this->payment;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param null $payment
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function setPayment($payment)
|
||||||
|
{
|
||||||
|
$this->payment = $payment;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return null
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function getDelivery()
|
||||||
|
{
|
||||||
|
return $this->delivery;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param null $delivery
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function setDelivery($delivery)
|
||||||
|
{
|
||||||
|
$this->delivery = $delivery;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return null
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function getFreightage()
|
||||||
|
{
|
||||||
|
return $this->freightage;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param null $freightage
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function setFreightage($freightage)
|
||||||
|
{
|
||||||
|
$this->freightage = $freightage;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function getInvoiceItemList()
|
||||||
|
{
|
||||||
|
return $this->invoiceItemList;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param array $invoiceItemList
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function setInvoiceItemList($invoiceItemList)
|
||||||
|
{
|
||||||
|
$this->invoiceItemList = $invoiceItemList;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
|
public function serialize()
|
||||||
|
{
|
||||||
|
// TODO: Implement serialize() method.
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
|
public function unserialize($serialized)
|
||||||
|
{
|
||||||
|
// TODO: Implement unserialize() method.
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
|
public function delete()
|
||||||
|
{
|
||||||
|
// TODO: Implement delete() method.
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
|
public function create()
|
||||||
|
{
|
||||||
|
// TODO: Implement create() method.
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
|
public function update()
|
||||||
|
{
|
||||||
|
// TODO: Implement update() method.
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
|
public function init($id)
|
||||||
|
{
|
||||||
|
// TODO: Implement init() method.
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getPrice()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getDiscount()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getDiscountP()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getProfit()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getGrossProfit()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getPayed()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function getInfo()
|
||||||
|
{
|
||||||
|
return $this->info;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $info
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function setInfo($info)
|
||||||
|
{
|
||||||
|
$this->info = $info;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return null
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function getStatus()
|
||||||
|
{
|
||||||
|
return $this->status;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param null $status
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function setStatus($status)
|
||||||
|
{
|
||||||
|
$this->status = $status;
|
||||||
|
}
|
||||||
|
}
|
||||||
0
Models/InvoiceItem.php
Normal file
0
Models/InvoiceItem.php
Normal file
44
Models/InvoiceStatus.php
Normal file
44
Models/InvoiceStatus.php
Normal file
|
|
@ -0,0 +1,44 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.0
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright 2013 Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
namespace Modules\Sales\Models;
|
||||||
|
|
||||||
|
use phpOMS\Datatypes\Enum;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Invoice types enum.
|
||||||
|
*
|
||||||
|
* @category Modules
|
||||||
|
* @package Sales
|
||||||
|
* @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
|
||||||
|
*/
|
||||||
|
abstract class InvoiceStatus extends Enum
|
||||||
|
{
|
||||||
|
const BLOCKED = 0; /* Invoice needs approval */
|
||||||
|
const DRAFT = 1; /* Invoice is still in draft */
|
||||||
|
const READY = 2; /* Invoice is ready for accounting transfer */
|
||||||
|
const UNPAID = 3; /* Invoice is not paid */
|
||||||
|
const PAID_PARTIALLY = 4; /* Invoice is partially paid */
|
||||||
|
const PAID = 5; /* Invoice is paid */
|
||||||
|
const OFFSETTING = 6; /* This invoice may receive a credit */
|
||||||
|
const OPEN = 7; /* offer & confirmation */
|
||||||
|
const CHANGED = 8; /* offer & confirmation */
|
||||||
|
const CLOSED = 9; /* offer & confirmation */
|
||||||
|
const ACCEPTED = 10; /* offer & confirmation */
|
||||||
|
}
|
||||||
40
Models/InvoiceType.php
Normal file
40
Models/InvoiceType.php
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.0
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright 2013 Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
namespace Modules\Sales\Models;
|
||||||
|
|
||||||
|
use phpOMS\Datatypes\Enum;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Invoice types enum.
|
||||||
|
*
|
||||||
|
* @category Modules
|
||||||
|
* @package Sales
|
||||||
|
* @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
|
||||||
|
*/
|
||||||
|
abstract class InvoiceType extends Enum
|
||||||
|
{
|
||||||
|
const OFFER = 0;
|
||||||
|
|
||||||
|
const CONTRACT_NOTE = 1;
|
||||||
|
|
||||||
|
const DELIVERY_NOTE = 2;
|
||||||
|
|
||||||
|
const BILL = 3;
|
||||||
|
}
|
||||||
19
Models/sales_price_names.php
Normal file
19
Models/sales_price_names.php
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.0
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright 2013 Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
$SalesPriceNames = [
|
||||||
|
0 => 'DefaultInternational',
|
||||||
|
1 => 'DefaultNational',
|
||||||
|
];
|
||||||
25
Theme/Backend/Lang/Navigation.en.lang.php
Normal file
25
Theme/Backend/Lang/Navigation.en.lang.php
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.0
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright 2013 Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
return ['Navigation' => [
|
||||||
|
'Analysis' => 'Analysis',
|
||||||
|
'Customers' => 'Customers',
|
||||||
|
'Database' => 'Database',
|
||||||
|
'Invoices' => 'Invoices',
|
||||||
|
'Marketing' => 'Marketing',
|
||||||
|
'Overview' => 'Overview',
|
||||||
|
'Products' => 'Products',
|
||||||
|
'Regions' => 'Regions',
|
||||||
|
]];
|
||||||
17
Theme/Backend/Lang/api.en.lang.php
Normal file
17
Theme/Backend/Lang/api.en.lang.php
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.0
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright 2013 Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
$MODLANG[1] = [
|
||||||
|
];
|
||||||
62
Theme/Backend/Lang/en.lang.php
Normal file
62
Theme/Backend/Lang/en.lang.php
Normal file
|
|
@ -0,0 +1,62 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.0
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright 2013 Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
return ['SalesAnalysis' => [
|
||||||
|
'Africa' => 'Africa',
|
||||||
|
'America' => 'America',
|
||||||
|
'Analysis' => 'Analysis',
|
||||||
|
'Asia' => 'Asia',
|
||||||
|
'Change' => 'Change',
|
||||||
|
'ChangeAcc' => 'Change Acc.',
|
||||||
|
'Charts' => 'Charts',
|
||||||
|
'Comparison' => 'Comparison',
|
||||||
|
'Continents' => 'Continents',
|
||||||
|
'CurrentMonth' => 'Current Month',
|
||||||
|
'CurrentYear' => 'Current Year',
|
||||||
|
'CurrentYearAcc' => 'Current Year Acc.',
|
||||||
|
'Customers' => 'Customers',
|
||||||
|
'Data' => 'Data',
|
||||||
|
'Database' => 'Database',
|
||||||
|
'Day' => 'Day',
|
||||||
|
'Developed' => 'Developed',
|
||||||
|
'Developed/Undeveloped' => 'Developed/Undeveloped',
|
||||||
|
'Development' => 'Development',
|
||||||
|
'Domestic/Export' => 'Domestic/Export',
|
||||||
|
'Domestic' => 'Domestic',
|
||||||
|
'Employees' => 'Employees',
|
||||||
|
'Europe' => 'Europe',
|
||||||
|
'Export' => 'Export',
|
||||||
|
'Forecast' => 'Forecast',
|
||||||
|
'Frequency' => 'Frequency',
|
||||||
|
'Interval' => 'Interval',
|
||||||
|
'Invoices' => 'Invoices',
|
||||||
|
'LastMonth' => 'Last Month',
|
||||||
|
'LastYear' => 'Last Year',
|
||||||
|
'LastYearAcc' => 'Last Year Acc.',
|
||||||
|
'Marketing' => 'Marketing',
|
||||||
|
'Misc' => 'Misc',
|
||||||
|
'Month' => 'Month',
|
||||||
|
'Overview' => 'Overview',
|
||||||
|
'Products' => 'Products',
|
||||||
|
'Regions' => 'Regions',
|
||||||
|
'To' => 'To',
|
||||||
|
'Today' => 'Today',
|
||||||
|
'Top10' => 'Top 10',
|
||||||
|
'Total' => 'Total',
|
||||||
|
'Type' => 'Type',
|
||||||
|
'Undeveloped' => 'Undeveloped',
|
||||||
|
'Year' => 'Year',
|
||||||
|
'Yesterday' => 'Yesterday',
|
||||||
|
]];
|
||||||
191
Theme/Backend/analysis-overview-dashboard.tpl.php
Normal file
191
Theme/Backend/analysis-overview-dashboard.tpl.php
Normal file
|
|
@ -0,0 +1,191 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.0
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright 2013 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="box w-100">
|
||||||
|
<div class="tabular-2">
|
||||||
|
<ul class="tab-links">
|
||||||
|
<li><label for="c-tab2-1"><?= $this->l11n->getText('SalesAnalysis', 'Overview'); ?></label>
|
||||||
|
<li><label for="c-tab2-2"><?= $this->l11n->getText('SalesAnalysis', 'Month'); ?></label>
|
||||||
|
<li><label for="c-tab2-3"><?= $this->l11n->getText('SalesAnalysis', 'Year'); ?></label>
|
||||||
|
<li><label for="c-tab2-4"><?= $this->l11n->getText('SalesAnalysis', 'Top10'); ?></label>
|
||||||
|
<li><label for="c-tab2-5"><?= $this->l11n->getText('SalesAnalysis', 'Charts'); ?></label>
|
||||||
|
</ul>
|
||||||
|
<div class="tab-content">
|
||||||
|
<input type="radio" id="c-tab2-1" name="tabular-2" checked>
|
||||||
|
<div class="tab">
|
||||||
|
<section class="box wf-100 floatLeft">
|
||||||
|
<table class="table">
|
||||||
|
<caption><?= $this->l11n->getText('SalesAnalysis', 'Overview') ?></caption>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'Type'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'LastMonth'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'CurrentMonth'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'Change'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'LastYear'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'CurrentYear'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'Change'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'LastYearAcc'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'CurrentYearAcc'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'Change'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'LastYear'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'Forecast'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'Change'); ?>
|
||||||
|
<tbody>
|
||||||
|
<tr><th><?= $this->l11n->getText('SalesAnalysis', 'Domestic'); ?><td><td><td><td><td><td><td><td><td><td><td><td>
|
||||||
|
<tr><th><?= $this->l11n->getText('SalesAnalysis', 'Export'); ?><td><td><td><td><td><td><td><td><td><td><td><td>
|
||||||
|
<tr><th><?= $this->l11n->getText('SalesAnalysis', 'Developed'); ?><td><td><td><td><td><td><td><td><td><td><td><td>
|
||||||
|
<tr><th><?= $this->l11n->getText('SalesAnalysis', 'Undeveloped'); ?><td><td><td><td><td><td><td><td><td><td><td><td>
|
||||||
|
<tr><th><?= $this->l11n->getText('SalesAnalysis', 'Europe'); ?><td><td><td><td><td><td><td><td><td><td><td><td>
|
||||||
|
<tr><th><?= $this->l11n->getText('SalesAnalysis', 'America'); ?><td><td><td><td><td><td><td><td><td><td><td><td>
|
||||||
|
<tr><th><?= $this->l11n->getText('SalesAnalysis', 'Asia'); ?><td><td><td><td><td><td><td><td><td><td><td><td>
|
||||||
|
<tr><th><?= $this->l11n->getText('SalesAnalysis', 'Africa'); ?><td><td><td><td><td><td><td><td><td><td><td><td>
|
||||||
|
<tr><th><?= $this->l11n->getText('SalesAnalysis', 'Total'); ?><td><td><td><td><td><td><td><td><td><td><td><td>
|
||||||
|
</table>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="box wf-100 floatLeft">
|
||||||
|
<table class="table">
|
||||||
|
<caption><?= $this->l11n->getText('SalesAnalysis', 'Misc') ?></caption>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'Type'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'LastYear'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'CurrentYear'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'LastMonth'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'CurrentMonth'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'Yesterday'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'Today'); ?>
|
||||||
|
<tbody>
|
||||||
|
<tr><th><?= $this->l11n->getText('SalesAnalysis', 'Customers'); ?><td><td><td><td><td><td>
|
||||||
|
<tr><th><?= $this->l11n->getText('SalesAnalysis', 'Invoices'); ?><td><td><td><td><td><td>
|
||||||
|
</table>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<input type="radio" id="c-tab2-2" name="tabular-2">
|
||||||
|
<div class="tab tab-2">
|
||||||
|
<section class="box wf-100 floatLeft">
|
||||||
|
<table class="table">
|
||||||
|
<caption><?= $this->l11n->getText('SalesAnalysis', 'Month') ?></caption>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'Day'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'Day'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'LastMonth'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'CurrentMonth'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'Change'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'ChangeAcc'); ?>
|
||||||
|
<tbody>
|
||||||
|
<tr><td><td><td><td><td><td>
|
||||||
|
</table>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<input type="radio" id="c-tab2-3" name="tabular-2">
|
||||||
|
<div class="tab tab-3">
|
||||||
|
<section class="box wf-100 floatLeft">
|
||||||
|
<table class="table">
|
||||||
|
<caption><?= $this->l11n->getText('SalesAnalysis', 'Year') ?></caption>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'Year'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'January'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'February'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'March'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'April'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'May'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'June'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'July'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'August'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'September'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'October'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'November'); ?>
|
||||||
|
<td><?= $this->l11n->getText('SalesAnalysis', 'December'); ?>
|
||||||
|
<tbody>
|
||||||
|
<tr><th>2013<td><td><td><td><td><td><td><td><td><td><td><td>
|
||||||
|
<tr><th>2014<td><td><td><td><td><td><td><td><td><td><td><td>
|
||||||
|
<tr><th>2015<td><td><td><td><td><td><td><td><td><td><td><td>
|
||||||
|
<tr><th>CY 2016<td><td><td><td><td><td><td><td><td><td><td><td>
|
||||||
|
<tr><th>2017<td><td><td><td><td><td><td><td><td><td><td><td>
|
||||||
|
<tr><th>2018<td><td><td><td><td><td><td><td><td><td><td><td>
|
||||||
|
<tr><th>2019<td><td><td><td><td><td><td><td><td><td><td><td>
|
||||||
|
<tr><th>2020<td><td><td><td><td><td><td><td><td><td><td><td>
|
||||||
|
<tr><th>2021<td><td><td><td><td><td><td><td><td><td><td><td>
|
||||||
|
</table>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<input type="radio" id="c-tab2-4" name="tabular-2">
|
||||||
|
<div class="tab tab-4">
|
||||||
|
<section class="box w-33 floatLeft">
|
||||||
|
<header>
|
||||||
|
<h1><?= $this->l11n->getText('SalesAnalysis', 'Customers'); ?></h1>
|
||||||
|
</header>
|
||||||
|
<div class="inner">
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section class="box w-33 floatLeft">
|
||||||
|
<header>
|
||||||
|
<h1><?= $this->l11n->getText('SalesAnalysis', 'Products'); ?></h1>
|
||||||
|
</header>
|
||||||
|
<div class="inner">
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section class="box w-33 floatLeft">
|
||||||
|
<header>
|
||||||
|
<h1><?= $this->l11n->getText('SalesAnalysis', 'Employees'); ?></h1>
|
||||||
|
</header>
|
||||||
|
<div class="inner">
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<input type="radio" id="c-tab2-5" name="tabular-2">
|
||||||
|
<div class="tab tab-5">
|
||||||
|
<section class="box w-33 floatLeft">
|
||||||
|
<header>
|
||||||
|
<h1><?= $this->l11n->getText('SalesAnalysis', 'Domestic/Export'); ?></h1>
|
||||||
|
</header>
|
||||||
|
<div class="inner">
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section class="box w-33 floatLeft">
|
||||||
|
<header>
|
||||||
|
<h1><?= $this->l11n->getText('SalesAnalysis', 'Developed/Undeveloped'); ?></h1>
|
||||||
|
</header>
|
||||||
|
<div class="inner">
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section class="box w-33 floatLeft">
|
||||||
|
<header>
|
||||||
|
<h1><?= $this->l11n->getText('SalesAnalysis', 'Continents'); ?></h1>
|
||||||
|
</header>
|
||||||
|
<div class="inner">
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section class="box w-100 floatLeft">
|
||||||
|
<header>
|
||||||
|
<h1><?= $this->l11n->getText('SalesAnalysis', 'Development'); ?></h1>
|
||||||
|
</header>
|
||||||
|
<div class="inner">
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
0
Theme/Backend/analysis-overview-data.tpl.php
Normal file
0
Theme/Backend/analysis-overview-data.tpl.php
Normal file
0
Theme/Backend/analysis-products-dashboard.tpl.php
Normal file
0
Theme/Backend/analysis-products-dashboard.tpl.php
Normal file
0
Theme/Backend/analysis-products-data.tpl.php
Normal file
0
Theme/Backend/analysis-products-data.tpl.php
Normal file
BIN
img/module_teaser_small.png
Normal file
BIN
img/module_teaser_small.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 48 KiB |
53
info.json
Normal file
53
info.json
Normal file
|
|
@ -0,0 +1,53 @@
|
||||||
|
{
|
||||||
|
"name": {
|
||||||
|
"id": 1005400000,
|
||||||
|
"internal": "SalesAnalysis",
|
||||||
|
"external": "OMS Sales Analysis"
|
||||||
|
},
|
||||||
|
"version": "1.0.0",
|
||||||
|
"requirements": {
|
||||||
|
"phpOMS": "1.0.0",
|
||||||
|
"phpOMS-db": "1.0.0"
|
||||||
|
},
|
||||||
|
"creator": {
|
||||||
|
"name": "Orange Management",
|
||||||
|
"website": "www.spl1nes.com"
|
||||||
|
},
|
||||||
|
"description": "Sales module.",
|
||||||
|
"directory": "SalesAnalysis",
|
||||||
|
"dependencies": {
|
||||||
|
"Admin" : "1.0.0"
|
||||||
|
},
|
||||||
|
"providing": {
|
||||||
|
"Navigation": "*"
|
||||||
|
},
|
||||||
|
"load": [
|
||||||
|
{
|
||||||
|
"pid": [
|
||||||
|
"44cbe06dd734865b28c110fbbf91d78ccf8124ae"
|
||||||
|
],
|
||||||
|
"type": 4,
|
||||||
|
"for": 0,
|
||||||
|
"from": "SalesAnalysis",
|
||||||
|
"file": "SalesAnalysis"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"pid": [
|
||||||
|
"754a08ddf8bcb1cf22f310f09206dd783d42f7dd"
|
||||||
|
],
|
||||||
|
"type": 5,
|
||||||
|
"from": "SalesAnalysis",
|
||||||
|
"for": "Navigation",
|
||||||
|
"file": "Navigation"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"pid": [
|
||||||
|
"44cbe06dd734865b28c110fbbf91d78ccf8124ae"
|
||||||
|
],
|
||||||
|
"type": 5,
|
||||||
|
"for": "Content",
|
||||||
|
"file": "",
|
||||||
|
"from": "SalesAnalysis"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user