diff --git a/.github/dev_bug_report.md b/.github/dev_bug_report.md deleted file mode 100644 index ef93e56..0000000 --- a/.github/dev_bug_report.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -name: Dev Bug Report -about: Create a report to help us improve -title: '' -labels: stat_backlog, type_bug -assignees: '' - ---- - -# Bug Description -A clear and concise description of what the bug is. - -# How to Reproduce - -Steps to reproduce the behavior: - -1. Go to '...' -2. Click on '....' -3. Scroll down to '....' -4. See error - -## Minimal Code Example - -``` -// your code ... -``` - -# Expected Behavior -A clear and concise description of what you expected to happen. - -# Screenshots -If applicable, add screenshots to help explain your problem. - -# Additional Information -Add any other context about the problem here. diff --git a/.github/dev_feature_request.md b/.github/dev_feature_request.md deleted file mode 100644 index 9573c35..0000000 --- a/.github/dev_feature_request.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -name: Dev Feature Request -about: Suggest an idea for this project -title: '' -labels: stat_backlog, type_feature -assignees: '' - ---- - -# What is the feature you request -* A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -* A clear and concise description of what you want to happen. - -# Alternatives -A clear and concise description of any alternative solutions or features you've considered. - -# Additional Information -Add any other context or screenshots about the feature request here. diff --git a/Admin/Installer.php b/Admin/Installer.php index 163b12e..5bb2c19 100755 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -73,7 +73,7 @@ final class Installer extends InstallerAbstract $amountTypes = []; /** @var \Modules\InvestmentManagement\Controller\ApiController $module */ - $module = $app->moduleManager->getModuleInstance('InvestmentManagement', 'Api'); + $module = $app->moduleManager->get('InvestmentManagement', 'Api'); /** @var array $type */ foreach ($types as $type) { diff --git a/Controller/ApiController.php b/Controller/ApiController.php index e4c8d7f..ad80ca6 100644 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -47,6 +47,10 @@ use phpOMS\Stdlib\Base\FloatInt; * @license OMS License 2.0 * @link https://jingga.app * @since 1.0.0 + * + * @feature Comparison/calculations + * Add calculation which compares investment options (costs, profit, break-even) + * https://github.com/Karaka-Management/oms-InvestmentManagement/issues/1 */ final class ApiController extends Controller { diff --git a/Theme/Backend/investment-view.tpl.php b/Theme/Backend/investment-view.tpl.php index 0b39edb..154a916 100644 --- a/Theme/Backend/investment-view.tpl.php +++ b/Theme/Backend/investment-view.tpl.php @@ -124,7 +124,7 @@ echo $this->data['nav']->render(); ?> request->uri->fragment === 'c-tab-3' ? ' checked' : ''; ?>> -
+
data['note']->render('investment-notes', '', $investment->notes); ?>