mirror of
https://github.com/Karaka-Management/oms-LoanManagement.git
synced 2026-02-16 17:28:42 +00:00
Updated file header
This commit is contained in:
parent
208ae3a315
commit
e2c2f16c32
|
|
@ -1,48 +1,33 @@
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"id": 1007101001,
|
"id": 1008301001,
|
||||||
"pid": "/",
|
"pid": "/",
|
||||||
"type": 2,
|
"type": 2,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Investment",
|
"name": "Loan",
|
||||||
"uri": "{/prefix}finance/investment/dashboard?{?}",
|
"uri": "{/base}finance/loan/list?{?}",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 1,
|
"order": 1,
|
||||||
"from": "InvestmentManagement",
|
"from": "LoanManagement",
|
||||||
"permission": { "permission": 2, "type": null, "element": null },
|
"permission": { "permission": 2, "type": null, "element": null },
|
||||||
"parent": 1008101001,
|
"parent": 1008101001,
|
||||||
"children": [
|
"children": [
|
||||||
{
|
{
|
||||||
"id": 1007102001,
|
"id": 1008302001,
|
||||||
"pid": "/finance/investment",
|
"pid": "/finance/loan",
|
||||||
"type": 3,
|
"type": 3,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Dashboard",
|
"name": "List",
|
||||||
"uri": "{/prefix}finance/investment/dashboard?{?}",
|
"uri": "{/base}finance/loan/list?{?}",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 1,
|
"order": 1,
|
||||||
"from": "InvestmentManagement",
|
"from": "LoanManagement",
|
||||||
"permission": { "permission": 2, "type": null, "element": null },
|
"permission": { "permission": 2, "type": null, "element": null },
|
||||||
"parent": 1007101001,
|
"parent": 1008301001,
|
||||||
"children": []
|
"children": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": 1007103001,
|
|
||||||
"pid": "/",
|
|
||||||
"type": 2,
|
|
||||||
"subtype": 1,
|
|
||||||
"name": "PurchaseInquiries",
|
|
||||||
"uri": "{/base}/private/investment?{?}",
|
|
||||||
"target": "self",
|
|
||||||
"icon": null,
|
|
||||||
"order": 10,
|
|
||||||
"from": "InvestmentManagement",
|
|
||||||
"permission": { "permission": 2, "category": null, "element": null },
|
|
||||||
"parent": 1003401001,
|
|
||||||
"children": []
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Orange Management
|
* Karaka
|
||||||
*
|
*
|
||||||
* PHP Version 8.1
|
* PHP Version 8.1
|
||||||
*
|
*
|
||||||
* @package Modules\InvestmentManagement\Admin\Install
|
* @package Modules\LoanManagement\Admin\Install
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 2.0
|
* @license OMS License 2.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
|
|
@ -12,14 +12,14 @@
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Modules\InvestmentManagement\Admin\Install;
|
namespace Modules\LoanManagement\Admin\Install;
|
||||||
|
|
||||||
use phpOMS\Application\ApplicationAbstract;
|
use phpOMS\Application\ApplicationAbstract;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Navigation class.
|
* Navigation class.
|
||||||
*
|
*
|
||||||
* @package Modules\InvestmentManagement\Admin\Install
|
* @package Modules\LoanManagement\Admin\Install
|
||||||
* @license OMS License 2.0
|
* @license OMS License 2.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"investmgmt_investment": {
|
"loanmgmt_loan": {
|
||||||
"name": "investmgmt_investment",
|
"name": "investmgmt_investment",
|
||||||
"fields": {
|
"fields": {
|
||||||
"investmgmt_investment_id": {
|
"investmgmt_investment_id": {
|
||||||
|
|
@ -35,58 +35,5 @@
|
||||||
"foreignKey": "unit_id"
|
"foreignKey": "unit_id"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"investmgmt_investment_option": {
|
|
||||||
"name": "investmgmt_investment_option",
|
|
||||||
"fields": {
|
|
||||||
"investmgmt_investment_option_id": {
|
|
||||||
"name": "investmgmt_investment_option_id",
|
|
||||||
"type": "INT",
|
|
||||||
"null": false,
|
|
||||||
"primary": true,
|
|
||||||
"autoincrement": true
|
|
||||||
},
|
|
||||||
"investmgmt_investment_option_description": {
|
|
||||||
"name": "investmgmt_investment_option_description",
|
|
||||||
"type": "TEXT",
|
|
||||||
"null": false
|
|
||||||
},
|
|
||||||
"investmgmt_investment_option_price": {
|
|
||||||
"name": "investmgmt_investment_option_price",
|
|
||||||
"type": "BIGINT",
|
|
||||||
"null": false
|
|
||||||
},
|
|
||||||
"investmgmt_investment_option_investment": {
|
|
||||||
"name": "investmgmt_investment_option_investment",
|
|
||||||
"type": "INT",
|
|
||||||
"null": false,
|
|
||||||
"foreignTable": "investmgmt_investment",
|
|
||||||
"foreignKey": "investmgmt_investment_id"
|
|
||||||
},
|
|
||||||
"investmgmt_investment_option_supplier": {
|
|
||||||
"name": "investmgmt_investment_option_supplier",
|
|
||||||
"type": "INT",
|
|
||||||
"null": false,
|
|
||||||
"foreignTable": "suppliermgmt_supplier",
|
|
||||||
"foreignKey": "suppliermgmt_supplier_id"
|
|
||||||
},
|
|
||||||
"investmgmt_investment_option_supplier_alt": {
|
|
||||||
"name": "investmgmt_investment_option_supplier_alt",
|
|
||||||
"type": "VARCHAR(255)",
|
|
||||||
"null": false
|
|
||||||
},
|
|
||||||
"investmgmt_investment_option_item": {
|
|
||||||
"name": "investmgmt_investment_option_item",
|
|
||||||
"type": "INT",
|
|
||||||
"null": false,
|
|
||||||
"foreignTable": "itemmgmt_item",
|
|
||||||
"foreignKey": "itemmgmt_item_id"
|
|
||||||
},
|
|
||||||
"investmgmt_investment_option_item_alt": {
|
|
||||||
"name": "investmgmt_investment_option_item_alt",
|
|
||||||
"type": "VARCHAR(255)",
|
|
||||||
"null": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Orange Management
|
* Karaka
|
||||||
*
|
*
|
||||||
* PHP Version 8.1
|
* PHP Version 8.1
|
||||||
*
|
*
|
||||||
* @package Modules\InvestmentManagement\Admin
|
* @package Modules\LoanManagement\Admin
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 2.0
|
* @license OMS License 2.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
|
|
@ -12,14 +12,14 @@
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Modules\InvestmentManagement\Admin;
|
namespace Modules\LoanManagement\Admin;
|
||||||
|
|
||||||
use phpOMS\Module\InstallerAbstract;
|
use phpOMS\Module\InstallerAbstract;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Installer class.
|
* Installer class.
|
||||||
*
|
*
|
||||||
* @package Modules\InvestmentManagement\Admin
|
* @package Modules\LoanManagement\Admin
|
||||||
* @license OMS License 2.0
|
* @license OMS License 2.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,41 @@
|
||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
use Modules\InvestmentManagement\Controller\BackendController;
|
use Modules\LoanManagement\Controller\BackendController;
|
||||||
use Modules\InvestmentManagement\Models\PermissionCategory;
|
use Modules\LoanManagement\Models\PermissionCategory;
|
||||||
use phpOMS\Account\PermissionType;
|
use phpOMS\Account\PermissionType;
|
||||||
use phpOMS\Router\RouteVerb;
|
use phpOMS\Router\RouteVerb;
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'^.*/controlling/investment/dashboard.*$' => [
|
'^.*/controlling/loan/list.*$' => [
|
||||||
[
|
[
|
||||||
'dest' => '\Modules\InvestmentManagement\Controller\BackendController:viewInvestmentDashboard',
|
'dest' => '\Modules\LoanManagement\Controller\BackendController:viewLoanList',
|
||||||
'verb' => RouteVerb::GET,
|
'verb' => RouteVerb::GET,
|
||||||
'permission' => [
|
'permission' => [
|
||||||
'module' => BackendController::MODULE_NAME,
|
'module' => BackendController::MODULE_NAME,
|
||||||
'type' => PermissionType::READ,
|
'type' => PermissionType::READ,
|
||||||
'state' => PermissionCategory::INVESTMENT,
|
'state' => PermissionCategory::LOAN,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'^.*/controlling/loan/single.*$' => [
|
||||||
|
[
|
||||||
|
'dest' => '\Modules\LoanManagement\Controller\BackendController:viewLoanSingle',
|
||||||
|
'verb' => RouteVerb::GET,
|
||||||
|
'permission' => [
|
||||||
|
'module' => BackendController::MODULE_NAME,
|
||||||
|
'type' => PermissionType::READ,
|
||||||
|
'state' => PermissionCategory::LOAN,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'^.*/controlling/loan/create.*$' => [
|
||||||
|
[
|
||||||
|
'dest' => '\Modules\LoanManagement\Controller\BackendController:viewLoanCreate',
|
||||||
|
'verb' => RouteVerb::GET,
|
||||||
|
'permission' => [
|
||||||
|
'module' => BackendController::MODULE_NAME,
|
||||||
|
'type' => PermissionType::READ,
|
||||||
|
'state' => PermissionCategory::LOAN,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Orange Management
|
* Karaka
|
||||||
*
|
*
|
||||||
* PHP Version 8.1
|
* PHP Version 8.1
|
||||||
*
|
*
|
||||||
* @package Modules\InvestmentManagement\Admin
|
* @package Modules\LoanManagement\Admin
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 2.0
|
* @license OMS License 2.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
|
|
@ -12,14 +12,14 @@
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Modules\InvestmentManagement\Admin;
|
namespace Modules\LoanManagement\Admin;
|
||||||
|
|
||||||
use phpOMS\Module\StatusAbstract;
|
use phpOMS\Module\StatusAbstract;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Status class.
|
* Status class.
|
||||||
*
|
*
|
||||||
* @package Modules\InvestmentManagement\Admin
|
* @package Modules\LoanManagement\Admin
|
||||||
* @license OMS License 2.0
|
* @license OMS License 2.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Orange Management
|
* Karaka
|
||||||
*
|
*
|
||||||
* PHP Version 8.1
|
* PHP Version 8.1
|
||||||
*
|
*
|
||||||
* @package Modules\InvestmentManagement\Admin
|
* @package Modules\LoanManagement\Admin
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 2.0
|
* @license OMS License 2.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
|
|
@ -12,14 +12,14 @@
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Modules\InvestmentManagement\Admin;
|
namespace Modules\LoanManagement\Admin;
|
||||||
|
|
||||||
use phpOMS\Module\UninstallerAbstract;
|
use phpOMS\Module\UninstallerAbstract;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Uninstaller class.
|
* Uninstaller class.
|
||||||
*
|
*
|
||||||
* @package Modules\InvestmentManagement\Admin
|
* @package Modules\LoanManagement\Admin
|
||||||
* @license OMS License 2.0
|
* @license OMS License 2.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Orange Management
|
* Karaka
|
||||||
*
|
*
|
||||||
* PHP Version 8.1
|
* PHP Version 8.1
|
||||||
*
|
*
|
||||||
* @package Modules\InvestmentManagement\Admin
|
* @package Modules\LoanManagement\Admin
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 2.0
|
* @license OMS License 2.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
|
|
@ -12,14 +12,14 @@
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Modules\InvestmentManagement\Admin;
|
namespace Modules\LoanManagement\Admin;
|
||||||
|
|
||||||
use phpOMS\Module\UpdaterAbstract;
|
use phpOMS\Module\UpdaterAbstract;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updater class.
|
* Updater class.
|
||||||
*
|
*
|
||||||
* @package Modules\InvestmentManagement\Admin
|
* @package Modules\LoanManagement\Admin
|
||||||
* @license OMS License 2.0
|
* @license OMS License 2.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Orange Management
|
* Karaka
|
||||||
*
|
*
|
||||||
* PHP Version 8.1
|
* PHP Version 8.1
|
||||||
*
|
*
|
||||||
* @package Modules\InvestmentManagement
|
* @package Modules\LoanManagement
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 2.0
|
* @license OMS License 2.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Modules\InvestmentManagement\Controller;
|
namespace Modules\LoanManagement\Controller;
|
||||||
|
|
||||||
use phpOMS\Contract\RenderableInterface;
|
use phpOMS\Contract\RenderableInterface;
|
||||||
use phpOMS\Message\RequestAbstract;
|
use phpOMS\Message\RequestAbstract;
|
||||||
|
|
@ -20,9 +20,9 @@ use phpOMS\Message\ResponseAbstract;
|
||||||
use phpOMS\Views\View;
|
use phpOMS\Views\View;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Investmenting controller class.
|
* Loaning controller class.
|
||||||
*
|
*
|
||||||
* @package Modules\InvestmentManagement
|
* @package Modules\LoanManagement
|
||||||
* @license OMS License 2.0
|
* @license OMS License 2.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -41,10 +41,10 @@ final class BackendController extends Controller
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
* @codeCoverageIgnore
|
* @codeCoverageIgnore
|
||||||
*/
|
*/
|
||||||
public function viewInvestmentDashboard(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
|
public function viewLoanList(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
|
||||||
{
|
{
|
||||||
$view = new View($this->app->l11nManager, $request, $response);
|
$view = new View($this->app->l11nManager, $request, $response);
|
||||||
$view->setTemplate('/Modules/InvestmentManagement/Theme/Backend/investment-dashboard');
|
$view->setTemplate('/Modules/LoanManagement/Theme/Backend/loan-list');
|
||||||
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1004601001, $request, $response);
|
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1004601001, $request, $response);
|
||||||
|
|
||||||
return $view;
|
return $view;
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Orange Management
|
* Karaka
|
||||||
*
|
*
|
||||||
* PHP Version 8.1
|
* PHP Version 8.1
|
||||||
*
|
*
|
||||||
* @package Modules\InvestmentManagement
|
* @package Modules\LoanManagement
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 2.0
|
* @license OMS License 2.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
|
|
@ -12,15 +12,15 @@
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Modules\InvestmentManagement\Controller;
|
namespace Modules\LoanManagement\Controller;
|
||||||
|
|
||||||
use phpOMS\Module\ModuleAbstract;
|
use phpOMS\Module\ModuleAbstract;
|
||||||
use phpOMS\Module\WebInterface;
|
use phpOMS\Module\WebInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Investmenting controller class.
|
* Loan controller class.
|
||||||
*
|
*
|
||||||
* @package Modules\InvestmentManagement
|
* @package Modules\LoanManagement
|
||||||
* @license OMS License 2.0
|
* @license OMS License 2.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
|
|
@ -49,7 +49,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public const MODULE_NAME = 'InvestmentManagement';
|
public const MODULE_NAME = 'LoanManagement';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module id.
|
* Module id.
|
||||||
|
|
@ -57,7 +57,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
* @var int
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public const MODULE_ID = 1007100000;
|
public const MODULE_ID = 1008300000;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Providing.
|
* Providing.
|
||||||
|
|
|
||||||
|
|
@ -1,46 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Karaka
|
|
||||||
*
|
|
||||||
* PHP Version 8.1
|
|
||||||
*
|
|
||||||
* @package Modules\InvestmentManagement\Models
|
|
||||||
* @copyright Dennis Eichhorn
|
|
||||||
* @license OMS License 2.0
|
|
||||||
* @version 1.0.0
|
|
||||||
* @link https://jingga.app
|
|
||||||
*/
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace Modules\InvestmentManagement\Models;
|
|
||||||
|
|
||||||
use Modules\Admin\Models\Account;
|
|
||||||
use phpOMS\Business\Finance\DepreciationType;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Investment model.
|
|
||||||
*
|
|
||||||
* @package Modules\InvestmentManagement\Models
|
|
||||||
* @license OMS License 2.0
|
|
||||||
* @link https://orange-management.org
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
class Investment
|
|
||||||
{
|
|
||||||
public int $id = 0;
|
|
||||||
|
|
||||||
public string $name = '';
|
|
||||||
|
|
||||||
public int $depreciationType = DepreciationType::STAIGHT_LINE;
|
|
||||||
|
|
||||||
public array $objects = [];
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Income
|
|
||||||
*/
|
|
||||||
public array $ammortization = [];
|
|
||||||
|
|
||||||
public Account $createdBy;
|
|
||||||
|
|
||||||
public array $attributeTypes = [];
|
|
||||||
}
|
|
||||||
|
|
@ -1,47 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Karaka
|
|
||||||
*
|
|
||||||
* PHP Version 8.1
|
|
||||||
*
|
|
||||||
* @package Modules\InvestmentManagement\Models
|
|
||||||
* @copyright Dennis Eichhorn
|
|
||||||
* @license OMS License 2.0
|
|
||||||
* @version 1.0.0
|
|
||||||
* @link https://jingga.app
|
|
||||||
*/
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace Modules\InvestmentManagement\Models;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Investment object.
|
|
||||||
*
|
|
||||||
* @package Modules\InvestmentManagement\Models
|
|
||||||
* @license OMS License 2.0
|
|
||||||
* @link https://orange-management.org
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
class InvestmentObject
|
|
||||||
{
|
|
||||||
public int $id = 0;
|
|
||||||
|
|
||||||
public string $productName = '';
|
|
||||||
|
|
||||||
public string $description = '';
|
|
||||||
|
|
||||||
public int $supplier = 0;
|
|
||||||
|
|
||||||
public string $supplierName = '';
|
|
||||||
|
|
||||||
public string $productLink = '';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Costs / Revenue
|
|
||||||
*/
|
|
||||||
public array $money = [];
|
|
||||||
|
|
||||||
public bool $approved = false;
|
|
||||||
|
|
||||||
public array $attributes = [];
|
|
||||||
}
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* PHP Version 8.1
|
* PHP Version 8.1
|
||||||
*
|
*
|
||||||
* @package Modules\InvestmentManagement\Models
|
* @package Modules\LoanmentManagement\Models
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 2.0
|
* @license OMS License 2.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
|
|
@ -12,19 +12,19 @@
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Modules\InvestmentManagement\Models;
|
namespace Modules\LoanmentManagement\Models;
|
||||||
|
|
||||||
use phpOMS\Stdlib\Base\Enum;
|
use phpOMS\Stdlib\Base\Enum;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Investment status enum.
|
* Loanment status enum.
|
||||||
*
|
*
|
||||||
* @package Modules\InvestmentManagement\Models
|
* @package Modules\LoanmentManagement\Models
|
||||||
* @license OMS License 2.0
|
* @license OMS License 2.0
|
||||||
* @link https://jingga.app
|
* @link https://jingga.app
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
abstract class InvestmentStatus extends Enum
|
abstract class LoanStatus extends Enum
|
||||||
{
|
{
|
||||||
public const DRAFT = 1;
|
public const DRAFT = 1;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,45 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Karaka
|
|
||||||
*
|
|
||||||
* PHP Version 8.1
|
|
||||||
*
|
|
||||||
* @package Modules\InvestmentManagement\Models
|
|
||||||
* @copyright Dennis Eichhorn
|
|
||||||
* @license OMS License 2.0
|
|
||||||
* @version 1.0.0
|
|
||||||
* @link https://jingga.app
|
|
||||||
*/
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace Modules\InvestmentManagement\Models;
|
|
||||||
|
|
||||||
use phpOMS\Business\Finance\DepreciationType;
|
|
||||||
use phpOMS\Stdlib\Base\FloatInt;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Costs/Earnings.
|
|
||||||
*
|
|
||||||
* @package Modules\InvestmentManagement\Models
|
|
||||||
* @license OMS License 2.0
|
|
||||||
* @link https://orange-management.org
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
class Money
|
|
||||||
{
|
|
||||||
public int $id = 0;
|
|
||||||
|
|
||||||
public string $name = '';
|
|
||||||
|
|
||||||
public int $depreciationType = DepreciationType::STAIGHT_LINE;
|
|
||||||
|
|
||||||
public int $depreciationDuration = 0;
|
|
||||||
|
|
||||||
public FloatInt $amount;
|
|
||||||
|
|
||||||
public FloatInt $residualValue;
|
|
||||||
|
|
||||||
public MoneyType $moneyType;
|
|
||||||
|
|
||||||
public bool $recurring = false;
|
|
||||||
}
|
|
||||||
|
|
@ -1,38 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
* Karaka
|
|
||||||
*
|
|
||||||
* PHP Version 8.1
|
|
||||||
*
|
|
||||||
* @package Modules\InvestmentManagement\Models
|
|
||||||
* @copyright Dennis Eichhorn
|
|
||||||
* @license OMS License 2.0
|
|
||||||
* @version 1.0.0
|
|
||||||
* @link https://jingga.app
|
|
||||||
*/
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace Modules\InvestmentManagement\Models;
|
|
||||||
|
|
||||||
use phpOMS\Localization\BaseStringL11n;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Money type (one off cost, recurring, earnings).
|
|
||||||
*
|
|
||||||
* @package Modules\InvestmentManagement\Models
|
|
||||||
* @license OMS License 2.0
|
|
||||||
* @link https://orange-management.org
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
class MoneyType
|
|
||||||
{
|
|
||||||
public int $id = 0;
|
|
||||||
|
|
||||||
public string $name = '';
|
|
||||||
|
|
||||||
public BaseStringL11n $content;
|
|
||||||
|
|
||||||
public bool $cost = true;
|
|
||||||
|
|
||||||
public bool $recurring = false;
|
|
||||||
}
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Orange Management
|
* Karaka
|
||||||
*
|
*
|
||||||
* PHP Version 8.1
|
* PHP Version 8.1
|
||||||
*
|
*
|
||||||
* @package Modules\InvestmentManagement\Models
|
* @package Modules\LoanManagement\Models
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 2.0
|
* @license OMS License 2.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
|
|
@ -12,19 +12,19 @@
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Modules\InvestmentManagement\Models;
|
namespace Modules\LoanManagement\Models;
|
||||||
|
|
||||||
use phpOMS\Stdlib\Base\Enum;
|
use phpOMS\Stdlib\Base\Enum;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Permision state enum.
|
* Permision state enum.
|
||||||
*
|
*
|
||||||
* @package Modules\InvestmentManagement\Models
|
* @package Modules\LoanManagement\Models
|
||||||
* @license OMS License 2.0
|
* @license OMS License 2.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
abstract class PermissionCategory extends Enum
|
abstract class PermissionCategory extends Enum
|
||||||
{
|
{
|
||||||
public const INVESTMENT = 1;
|
public const LOAN = 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Orange Management
|
* Karaka
|
||||||
*
|
*
|
||||||
* PHP Version 8.1
|
* PHP Version 8.1
|
||||||
*
|
*
|
||||||
|
|
@ -13,6 +13,6 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
return ['Navigation' => [
|
return ['Navigation' => [
|
||||||
'Dashboard' => 'Dashboard',
|
'List' => 'List',
|
||||||
'Investment' => 'Investment',
|
'Loan' => 'Loan',
|
||||||
]];
|
]];
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Orange Management
|
* Karaka
|
||||||
*
|
*
|
||||||
* PHP Version 8.1
|
* PHP Version 8.1
|
||||||
*
|
*
|
||||||
* @package Modules\InvestmentManagement
|
* @package Modules\LoanManagement
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 2.0
|
* @license OMS License 2.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
|
|
@ -12,5 +12,5 @@
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
return ['InvestmentManagement' => [
|
return ['LoanManagement' => [
|
||||||
]];
|
]];
|
||||||
|
|
|
||||||
4
Theme/Backend/investment-dashboard.tpl.php → Theme/Backend/loan-list.tpl.php
Executable file → Normal file
4
Theme/Backend/investment-dashboard.tpl.php → Theme/Backend/loan-list.tpl.php
Executable file → Normal file
|
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Orange Management
|
* Karaka
|
||||||
*
|
*
|
||||||
* PHP Version 8.1
|
* PHP Version 8.1
|
||||||
*
|
*
|
||||||
* @package Modules\HumanResourceTimeRecording
|
* @package Modules\LoanManagement
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 2.0
|
* @license OMS License 2.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
18
info.json
18
info.json
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
"name": {
|
"name": {
|
||||||
"id": 1007100000,
|
"id": 1008300000,
|
||||||
"internal": "InvestmentManagement",
|
"internal": "LoanManagement",
|
||||||
"external": "Investment Management"
|
"external": "Loan Management"
|
||||||
},
|
},
|
||||||
"category": "Finance",
|
"category": "Finance",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
|
|
@ -14,8 +14,8 @@
|
||||||
"name": "Jingga",
|
"name": "Jingga",
|
||||||
"website": "jingga.app"
|
"website": "jingga.app"
|
||||||
},
|
},
|
||||||
"description": "Investment Management module.",
|
"description": "Loan Management module.",
|
||||||
"directory": "InvestmentManagement",
|
"directory": "LoanManagement",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"Finance": "*",
|
"Finance": "*",
|
||||||
"SupplierManagement": "*"
|
"SupplierManagement": "*"
|
||||||
|
|
@ -26,19 +26,19 @@
|
||||||
"load": [
|
"load": [
|
||||||
{
|
{
|
||||||
"pid": [
|
"pid": [
|
||||||
"/finance/investment"
|
"/finance/loan"
|
||||||
],
|
],
|
||||||
"type": 4,
|
"type": 4,
|
||||||
"for": 0,
|
"for": 0,
|
||||||
"from": "InvestmentManagement",
|
"from": "LoanManagement",
|
||||||
"file": "InvestmentManagement"
|
"file": "LoanManagement"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pid": [
|
"pid": [
|
||||||
"/"
|
"/"
|
||||||
],
|
],
|
||||||
"type": 5,
|
"type": 5,
|
||||||
"from": "InvestmentManagement",
|
"from": "LoanManagement",
|
||||||
"for": "Navigation",
|
"for": "Navigation",
|
||||||
"file": "Navigation"
|
"file": "Navigation"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user