many changes

This commit is contained in:
2025-09-29 20:54:29 -05:00
parent 67a999c418
commit 97cb5a6e3e
5 changed files with 65 additions and 16 deletions

View File

@@ -30,7 +30,7 @@ class AddLocationPage(rio.Component):
if get_location_id(self.parent) != False:
self.parent_code = self.parent
print("Found location " + get_location_id(self.parent).name)
self.parent = get_location_id(self.parent).name
self.parent = '*' + get_location_id(self.parent).name
async def add_part(self):
if self.code == "":
@@ -88,16 +88,19 @@ class AddLocationPage(rio.Component):
),
rio.TextInput(
label="Barcode",
text=self.bind().code
text=self.bind().code,
on_confirm=self._add_part_enter
),
rio.TextInput(
label="Parent Location (optional)",
text=self.bind().parent,
on_change=self._update_location
on_change=self._update_location,
on_confirm=self._add_part_enter
),
rio.TextInput(
label="Location Name",
text=self.bind().name
text=self.bind().name,
on_confirm=self._add_part_enter
),
rio.MultiLineTextInput(
label="Description (optional)",