diff --git a/Controller/BackendController.php b/Controller/BackendController.php
index 2a27415..066c5ab 100755
--- a/Controller/BackendController.php
+++ b/Controller/BackendController.php
@@ -32,7 +32,7 @@ use phpOMS\Views\View;
final class BackendController extends Controller
{
/**
- * Routing end-point for application behaviour.
+ * Routing end-point for application behavior.
*
* @param RequestAbstract $request Request
* @param ResponseAbstract $response Response
@@ -60,7 +60,7 @@ final class BackendController extends Controller
}
/**
- * Routing end-point for application behaviour.
+ * Routing end-point for application behavior.
*
* @param RequestAbstract $request Request
* @param ResponseAbstract $response Response
@@ -80,16 +80,22 @@ final class BackendController extends Controller
$expense = ExpenseMapper::get()
->with('from')
+ ->with('notes')
+ ->with('elements')
+ ->with('elements/type')
+ ->with('elements/type/l11n')
->where('id', (int) $request->getData('id'))
->execute();
$view->data['expense'] = $expense;
+ $view->data['expense-notes'] = new \Modules\Editor\Theme\Backend\Components\Compound\BaseView($this->app->l11nManager, $request, $response);
+
return $view;
}
/**
- * Routing end-point for application behaviour.
+ * Routing end-point for application behavior.
*
* @param RequestAbstract $request Request
* @param ResponseAbstract $response Response
@@ -118,7 +124,7 @@ final class BackendController extends Controller
}
/**
- * Routing end-point for application behaviour.
+ * Routing end-point for application behavior.
*
* @param RequestAbstract $request Request
* @param ResponseAbstract $response Response
@@ -147,7 +153,7 @@ final class BackendController extends Controller
}
/**
- * Routing end-point for application behaviour.
+ * Routing end-point for application behavior.
*
* @param RequestAbstract $request Request
* @param ResponseAbstract $response Response
@@ -176,7 +182,7 @@ final class BackendController extends Controller
}
/**
- * Routing end-point for application behaviour.
+ * Routing end-point for application behavior.
*
* @param RequestAbstract $request Request
* @param ResponseAbstract $response Response
diff --git a/Docs/Dev/en/SUMMARY.md b/Docs/Dev/en/SUMMARY.md
new file mode 100644
index 0000000..8a97952
--- /dev/null
+++ b/Docs/Dev/en/SUMMARY.md
@@ -0,0 +1,3 @@
+# Developer Content
+
+* [Structure]({%}&page=Dev/structure)
diff --git a/Docs/Dev/en/structure.md b/Docs/Dev/en/structure.md
new file mode 100644
index 0000000..1e1ed19
--- /dev/null
+++ b/Docs/Dev/en/structure.md
@@ -0,0 +1,5 @@
+# Structure
+
+## ER
+
+
\ No newline at end of file
diff --git a/Docs/Dev/img/er.png b/Docs/Dev/img/er.png
new file mode 100644
index 0000000..55efbd2
Binary files /dev/null and b/Docs/Dev/img/er.png differ
diff --git a/Models/PermissionCategory.php b/Models/PermissionCategory.php
index 1b6d4fb..29db758 100755
--- a/Models/PermissionCategory.php
+++ b/Models/PermissionCategory.php
@@ -17,7 +17,7 @@ namespace Modules\BusinessExpenses\Models;
use phpOMS\Stdlib\Base\Enum;
/**
- * Permision state enum.
+ * Permission category enum.
*
* @package Modules\BusinessExpenses\Models
* @license OMS License 2.0
diff --git a/Theme/Backend/Lang/de.lang.php b/Theme/Backend/Lang/de.lang.php
index ad56852..a786e86 100644
--- a/Theme/Backend/Lang/de.lang.php
+++ b/Theme/Backend/Lang/de.lang.php
@@ -31,4 +31,7 @@ return ['BusinessExpenses' => [
'Start' => 'Start',
'Status' => 'Status',
'Title' => 'Titel',
+ 'Overview' => 'Übersicht',
+ 'Clocking' => 'Zeiterfassung',
+ 'Type' => 'Typ',
]];
diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php
index 49ee81a..25e1f31 100644
--- a/Theme/Backend/Lang/en.lang.php
+++ b/Theme/Backend/Lang/en.lang.php
@@ -31,4 +31,7 @@ return ['BusinessExpenses' => [
'Start' => 'Start',
'Status' => 'Status',
'Title' => 'Title',
+ 'Overview' => 'Overview',
+ 'Clocking' => 'Clocking',
+ 'Type' => 'Type',
]];
diff --git a/Theme/Backend/expense-single.tpl.php b/Theme/Backend/expense-single.tpl.php
index 0a953d1..060e4ab 100644
--- a/Theme/Backend/expense-single.tpl.php
+++ b/Theme/Backend/expense-single.tpl.php
@@ -14,123 +14,286 @@
declare(strict_types=1);
use Modules\BusinessExpenses\Models\NullExpense;
+use phpOMS\Uri\UriFactory;
/** @var \phpOMS\Views\View $this */
$expense = $this->getData('expense') ?? new NullExpense();
+$sessions = $this->data['sessions'] ?? [];
echo $this->data['nav']->render(); ?>
-
-
-
-
-
-
- | = $this->getHtml('Net'); ?>:
- |
- |
| = $this->getHtml('Gross'); ?>:
- |
- |
-
-
+
+
+
+ -
+
-
+
-
+
-
+
-
-
-
-
-
- | = $this->getHtml('Approved'); ?>:
- |
- |
| = $this->getHtml('Paid'); ?>:
- |
- |
-
-
-
-
-
-
-
-
- = $this->getHtml('Report'); ?>
-