org -> unit change, some new functionality

This commit is contained in:
Dennis Eichhorn 2023-01-26 21:54:13 +01:00
parent 106bb36728
commit a37adb762a
3 changed files with 113 additions and 6 deletions

View File

@ -5,21 +5,21 @@
"type": 2,
"subtype": 1,
"name": "Investment",
"uri": "{/prefix}controlling/investment/dashboard?{?}",
"uri": "{/prefix}finance/investment/dashboard?{?}",
"target": "self",
"icon": null,
"order": 1,
"from": "InvestmentManagement",
"permission": { "permission": 2, "type": null, "element": null },
"parent": 1002801001,
"parent": 1008101001,
"children": [
{
"id": 1007102001,
"pid": "/controlling/investment",
"pid": "/finance/investment",
"type": 3,
"subtype": 1,
"name": "Dashboard",
"uri": "{/prefix}controlling/investment/dashboard?{?}",
"uri": "{/prefix}finance/investment/dashboard?{?}",
"target": "self",
"icon": null,
"order": 1,
@ -29,5 +29,20 @@
"children": []
}
]
},
{
"id": 1007103001,
"pid": "/",
"type": 2,
"subtype": 1,
"name": "PurchaseInquiries",
"uri": "{/lang}/{/app}/private/investment?{?}",
"target": "self",
"icon": null,
"order": 10,
"from": "InvestmentManagement",
"permission": { "permission": 2, "category": null, "element": null },
"parent": 1003401001,
"children": []
}
]

92
Admin/Install/db.json Normal file
View File

@ -0,0 +1,92 @@
{
"investmgmt_investment": {
"name": "investmgmt_investment",
"fields": {
"investmgmt_investment_id": {
"name": "investmgmt_investment_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"investmgmt_investment_title": {
"name": "investmgmt_investment_title",
"type": "VARCHAR(255)",
"null": false
},
"investmgmt_investment_description": {
"name": "investmgmt_investment_description",
"type": "TEXT",
"null": false
},
"investmgmt_investment_created_by": {
"name": "investmgmt_investment_created_by",
"type": "INT",
"null": false,
"foreignTable": "account",
"foreignKey": "account_id"
},
"investmgmt_investment_unit": {
"name": "investmgmt_investment_unit",
"type": "INT",
"default": null,
"null": true,
"foreignTable": "unit",
"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
}
}
}
}

View File

@ -17,7 +17,7 @@
"description": "Investment Management module.",
"directory": "InvestmentManagement",
"dependencies": {
"Controlling": "*"
"Finance": "*"
},
"providing": {
"Navigation": "*"
@ -25,7 +25,7 @@
"load": [
{
"pid": [
"/controlling/investment"
"/finance/investment"
],
"type": 4,
"for": 0,