locations working in locations table

This commit is contained in:
Micha 2026-02-01 20:59:28 +01:00
parent 8ac2cb2ef5
commit 49e134d5fe
3 changed files with 8 additions and 4 deletions

View File

@ -1171,6 +1171,12 @@ msgstr ""
msgid "Parent product"
msgstr ""
msgid "Parent location"
msgstr ""
msgid "Select a parent location to create a hierarchy (e.g., Building > Floor > Room)"
msgstr ""
msgid "Not possible because this product is already used as a parent product in another product"
msgstr ""

View File

@ -21,6 +21,7 @@ AS (
LIMIT 100 -- Safety limit to prevent infinite loops
)
SELECT
location_id AS id,
location_id,
ancestor_location_id,
level

View File

@ -118,10 +118,7 @@
</a>
</td>
<td>
@if($location->location_depth > 0)
<span class="text-muted">{{ str_repeat('&mdash; ', $location->location_depth) }}</span>
@endif
{{ $location->name }}
{{ $location->location_path }}
</td>
<td class="d-none">
@if($location->parent_location_id)