mirror of
https://github.com/grocy/grocy.git
synced 2026-04-08 13:46:14 +02:00
locations working in locations table
This commit is contained in:
parent
8ac2cb2ef5
commit
49e134d5fe
|
|
@ -1171,6 +1171,12 @@ msgstr ""
|
||||||
msgid "Parent product"
|
msgid "Parent product"
|
||||||
msgstr ""
|
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"
|
msgid "Not possible because this product is already used as a parent product in another product"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@ AS (
|
||||||
LIMIT 100 -- Safety limit to prevent infinite loops
|
LIMIT 100 -- Safety limit to prevent infinite loops
|
||||||
)
|
)
|
||||||
SELECT
|
SELECT
|
||||||
|
location_id AS id,
|
||||||
location_id,
|
location_id,
|
||||||
ancestor_location_id,
|
ancestor_location_id,
|
||||||
level
|
level
|
||||||
|
|
|
||||||
|
|
@ -118,10 +118,7 @@
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@if($location->location_depth > 0)
|
{{ $location->location_path }}
|
||||||
<span class="text-muted">{{ str_repeat('— ', $location->location_depth) }}</span>
|
|
||||||
@endif
|
|
||||||
{{ $location->name }}
|
|
||||||
</td>
|
</td>
|
||||||
<td class="d-none">
|
<td class="d-none">
|
||||||
@if($location->parent_location_id)
|
@if($location->parent_location_id)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user