mirror of
https://github.com/grocy/grocy.git
synced 2026-03-28 07:39:25 +01:00
locations working in locations table
This commit is contained in:
parent
8ac2cb2ef5
commit
49e134d5fe
|
|
@ -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 ""
|
||||
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ AS (
|
|||
LIMIT 100 -- Safety limit to prevent infinite loops
|
||||
)
|
||||
SELECT
|
||||
location_id AS id,
|
||||
location_id,
|
||||
ancestor_location_id,
|
||||
level
|
||||
|
|
|
|||
|
|
@ -118,10 +118,7 @@
|
|||
</a>
|
||||
</td>
|
||||
<td>
|
||||
@if($location->location_depth > 0)
|
||||
<span class="text-muted">{{ str_repeat('— ', $location->location_depth) }}</span>
|
||||
@endif
|
||||
{{ $location->name }}
|
||||
{{ $location->location_path }}
|
||||
</td>
|
||||
<td class="d-none">
|
||||
@if($location->parent_location_id)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user