diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index 936c993..bd488dd 100644 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -27,6 +27,21 @@ "permission": { "permission": 2, "type": null, "element": null }, "parent": 1006701001, "children": [] + }, + { + "id": 1006703001, + "pid": "/warehouse/stocktaking", + "type": 3, + "subtype": 1, + "name": "Create", + "uri": "{/base}/warehouse/stocktaking/list?{?}", + "target": "self", + "icon": null, + "order": 1, + "from": "StockTaking", + "permission": { "permission": 2, "type": null, "element": null }, + "parent": 1006701001, + "children": [] } ] } diff --git a/Admin/Routes/Web/Backend.php b/Admin/Routes/Web/Backend.php index d782fb5..b07a2d5 100644 --- a/Admin/Routes/Web/Backend.php +++ b/Admin/Routes/Web/Backend.php @@ -1,4 +1,5 @@ -app->l11nManager, $request, $response); + $view->setTemplate('/Modules/StockTaking/Theme/Backend/stocktaking-list'); + $view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1006701001, $request, $response); + + return $view; + } } diff --git a/Models/PermissionState.php b/Models/PermissionState.php index 34104e2..e68561f 100644 --- a/Models/PermissionState.php +++ b/Models/PermissionState.php @@ -17,7 +17,7 @@ namespace Modules\StockTaking\Models; use phpOMS\Stdlib\Base\Enum; /** - * Permision state enum. + * Permission category enum. * * @package Modules\StockTaking\Models * @license OMS License 2.0 diff --git a/Theme/Backend/Lang/Navigation.de.lang.php b/Theme/Backend/Lang/Navigation.de.lang.php index 19dfb46..d9772ad 100644 --- a/Theme/Backend/Lang/Navigation.de.lang.php +++ b/Theme/Backend/Lang/Navigation.de.lang.php @@ -14,5 +14,5 @@ declare(strict_types=1); return ['Navigation' => [ 'StockTaking' => 'Inventur', - 'Dashboard' => 'Dashboard', + 'Dashboard' => 'Dashboard', ]]; diff --git a/Theme/Backend/Lang/Navigation.en.lang.php b/Theme/Backend/Lang/Navigation.en.lang.php index dcce652..504cc17 100644 --- a/Theme/Backend/Lang/Navigation.en.lang.php +++ b/Theme/Backend/Lang/Navigation.en.lang.php @@ -13,6 +13,6 @@ declare(strict_types=1); return ['Navigation' => [ - 'StockTaking' => 'StockTaking', - 'Dashboard' => 'Dashboard', + 'StockTaking' => 'Stocktaking', + 'Dashboard' => 'Dashboard', ]]; diff --git a/Theme/Backend/stock-counting.tpl.php b/Theme/Backend/stock-counting.tpl.php index 71a1fc3..8e886c4 100644 --- a/Theme/Backend/stock-counting.tpl.php +++ b/Theme/Backend/stock-counting.tpl.php @@ -1,10 +1,11 @@ data['nav']->render(); +use phpOMS\Uri\UriFactory; + +/** @var \phpOMS\Views\View $this */ +$assets = $this->data['assets'] ?? []; + +echo $this->data['nav']->render(); ?> +
+
+
+
getHtml('Stocktaking'); ?>download
+
+ + + + + $value) : + ++$count; + $url = UriFactory::build('{/base}/accounting/asset/profile?{?}&id=' . $value->id); + ?> + +
+ getHtml('Stock'); ?> + getHtml('Location'); ?> + getHtml('No'); ?> + getHtml('Item'); ?> + getHtml('Quantity'); ?> + getHtml('Stock'); ?> +
+ printHtml((string) $value->id); ?> + getHtml(':status' . $value->status); ?> + printHtml($value->name); ?> + printHtml($value->type->getL11n()); ?> + + +
getHtml('Empty', '0', '0'); ?> + +
+
+
+
+
\ No newline at end of file diff --git a/Theme/Backend/stocktaking-list.tpl.php b/Theme/Backend/stocktaking-list.tpl.php new file mode 100644 index 0000000..19f4633 --- /dev/null +++ b/Theme/Backend/stocktaking-list.tpl.php @@ -0,0 +1,52 @@ +data['assets'] ?? []; + +echo $this->data['nav']->render(); ?> +
+
+
+
getHtml('Stocktaking'); ?>download
+
+ + + + + $value) : + ++$count; + $url = UriFactory::build('{/base}/accounting/asset/profile?{?}&id=' . $value->id); + ?> + +
+ getHtml('Date'); ?> + getHtml('Status'); ?> +
+ printHtml((string) $value->id); ?> + + + +
getHtml('Empty', '0', '0'); ?> + +
+
+
+
+