diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index 7b321d0..f310f2e 100644 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -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": [] } ] diff --git a/Admin/Install/db.json b/Admin/Install/db.json new file mode 100644 index 0000000..9d2c723 --- /dev/null +++ b/Admin/Install/db.json @@ -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 + } + } + } +} \ No newline at end of file diff --git a/info.json b/info.json index 2c4c7a2..b836009 100644 --- a/info.json +++ b/info.json @@ -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,