This commit is contained in:
Dennis Eichhorn 2024-02-28 05:09:13 +00:00
parent b957ef8136
commit e9ee5ec255
6 changed files with 17 additions and 62 deletions

View File

@ -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.

View File

@ -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.

View File

@ -19,7 +19,7 @@
"type": 2, "type": 2,
"subtype": 1, "subtype": 1,
"name": "Stock", "name": "Stock",
"uri": "{/base}/warehouse/stock/list", "uri": "{/base}/warehouse/stock/list?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -33,7 +33,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Stocks", "name": "Stocks",
"uri": "{/base}/warehouse/stock/list", "uri": "{/base}/warehouse/stock/list?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -48,7 +48,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Locations", "name": "Locations",
"uri": "{/base}/warehouse/stock/location/list", "uri": "{/base}/warehouse/stock/location/list?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 5, "order": 5,
@ -63,7 +63,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Types", "name": "Types",
"uri": "{/base}/warehouse/stock/type/list", "uri": "{/base}/warehouse/stock/type/list?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 10, "order": 10,

View File

@ -73,7 +73,7 @@ final class Installer extends InstallerAbstract
private static function createDefaultStock(ApplicationAbstract $app) : void private static function createDefaultStock(ApplicationAbstract $app) : void
{ {
/** @var \Modules\WarehouseManagement\Controller\ApiController $module */ /** @var \Modules\WarehouseManagement\Controller\ApiController $module */
$module = $app->moduleManager->getModuleInstance('WarehouseManagement', 'Api'); $module = $app->moduleManager->get('WarehouseManagement', 'Api');
$response = new HttpResponse(); $response = new HttpResponse();
$request = new HttpRequest(); $request = new HttpRequest();
@ -100,7 +100,7 @@ final class Installer extends InstallerAbstract
$stockTypes = []; $stockTypes = [];
/** @var \Modules\WarehouseManagement\Controller\ApiStockTypeController $module */ /** @var \Modules\WarehouseManagement\Controller\ApiStockTypeController $module */
$module = $app->moduleManager->getModuleInstance('WarehouseManagement', 'ApiStockType'); $module = $app->moduleManager->get('WarehouseManagement', 'ApiStockType');
foreach ($types as $type) { foreach ($types as $type) {
$response = new HttpResponse(); $response = new HttpResponse();
@ -159,7 +159,7 @@ final class Installer extends InstallerAbstract
public static function personalStock(ApplicationAbstract $app, string $type) : void public static function personalStock(ApplicationAbstract $app, string $type) : void
{ {
/** @var \Modules\WarehouseManagement\Controller\ApiController $module */ /** @var \Modules\WarehouseManagement\Controller\ApiController $module */
$module = $app->moduleManager->getModuleInstance('WarehouseManagement', 'Api'); $module = $app->moduleManager->get('WarehouseManagement', 'Api');
$mapper = $type === 'client' $mapper = $type === 'client'
? \Modules\ClientManagement\Models\ClientMapper::class ? \Modules\ClientManagement\Models\ClientMapper::class

View File

@ -103,6 +103,14 @@ final class StockMapper extends DataMapperFactory
$reserved = []; $reserved = [];
$ordered = []; $ordered = [];
if (empty($items)) {
return [
'dists' => $dists,
'reserved' => $reserved,
'ordered' => $ordered,
];
}
$itemIdsString = \implode(',', $items); $itemIdsString = \implode(',', $items);
// @todo only select sales stock. Therefore we need a place to define the sales stock(s) // @todo only select sales stock. Therefore we need a place to define the sales stock(s)

View File

@ -50,7 +50,7 @@ echo $this->data['nav']->render();
<tr data-id="" draggable="false"> <tr data-id="" draggable="false">
<td> <td>
<i class="g-icon btn update-form">settings</i> <i class="g-icon btn update-form">settings</i>
<input id="attributeTable-remove-0" type="checkbox" class="hidden"> <input id="attributeTable-remove-0" type="checkbox" class="vh">
<label for="attributeTable-remove-0" class="checked-visibility-alt"><i class="g-icon btn form-action">close</i></label> <label for="attributeTable-remove-0" class="checked-visibility-alt"><i class="g-icon btn form-action">close</i></label>
<span class="checked-visibility"> <span class="checked-visibility">
<label for="attributeTable-remove-0" class="link default"><?= $this->getHtml('Cancel', '0', '0'); ?></label> <label for="attributeTable-remove-0" class="link default"><?= $this->getHtml('Cancel', '0', '0'); ?></label>
@ -70,7 +70,7 @@ echo $this->data['nav']->render();
<td> <td>
<i class="g-icon btn update-form">settings</i> <i class="g-icon btn update-form">settings</i>
<?php if (!$value->type->isRequired) : ?> <?php if (!$value->type->isRequired) : ?>
<input id="localizationTable-remove-<?= $value->id; ?>" type="checkbox" class="hidden"> <input id="localizationTable-remove-<?= $value->id; ?>" type="checkbox" class="vh">
<label for="localizationTable-remove-<?= $value->id; ?>" class="checked-visibility-alt"><i class="g-icon btn form-action">close</i></label> <label for="localizationTable-remove-<?= $value->id; ?>" class="checked-visibility-alt"><i class="g-icon btn form-action">close</i></label>
<span class="checked-visibility"> <span class="checked-visibility">
<label for="localizationTable-remove-<?= $value->id; ?>" class="link default"><?= $this->getHtml('Cancel', '0', '0'); ?></label> <label for="localizationTable-remove-<?= $value->id; ?>" class="link default"><?= $this->getHtml('Cancel', '0', '0'); ?></label>