Did the same to inventory

This commit is contained in:
Alex
2026-04-07 14:55:43 -06:00
parent 679c451c04
commit 0813bb4b44
9 changed files with 113 additions and 188 deletions

View File

@@ -67,7 +67,23 @@
android:layout_marginBottom="12dp"
android:visibility="gone"/>
<!-- Product search label -->
<!-- Store selection label -->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Store"
android:textColor="@color/text_dark"
android:textSize="12sp"
android:layout_marginBottom="4dp"/>
<!-- Store Spinner -->
<Spinner
android:id="@+id/spinnerInventoryStore"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"/>
<!-- Product selection label -->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@@ -76,25 +92,12 @@
android:textSize="12sp"
android:layout_marginBottom="4dp"/>
<!-- AutoComplete search box -->
<AutoCompleteTextView
android:id="@+id/etProductSearch"
<!-- Product Spinner -->
<Spinner
android:id="@+id/spinnerInventoryProduct"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Search product name…"
android:inputType="text"
android:completionThreshold="1"
android:layout_marginBottom="4dp"/>
<!-- Selected product info (ID + category) shown after picking -->
<TextView
android:id="@+id/tvProductInfo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="#888888"
android:textSize="12sp"
android:layout_marginBottom="16dp"
android:visibility="gone"/>
android:layout_marginBottom="16dp"/>
<!-- Quantity label -->
<TextView

View File

@@ -47,7 +47,7 @@
android:id="@+id/tvQuantity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0"
android:text="Stock: 0"
android:textColor="@color/text_dark"
android:textSize="16sp"
android:textStyle="bold" />
@@ -55,31 +55,14 @@
</LinearLayout>
<TextView
android:id="@+id/tvInventoryId"
android:id="@+id/tvInventoryStore"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:text="Inv ID: —"
android:layout_marginTop="2dp"
android:text="Store: —"
android:textColor="#888888"
android:textSize="14sp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical"
android:layout_marginTop="8dp">
<TextView
android:id="@+id/tvProdId"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Prod ID: —"
android:textColor="#888888"
android:textSize="13sp" />
</LinearLayout>
android:textSize="14sp"
android:textStyle="italic" />
<View
android:layout_width="match_parent"