Stock Adjustment (Adj Stock) Menu
Purpose
The Adj Stock page is used to correct product stock in a specific warehouse: add stock, reduce stock, and run “Sync QTY” per product.
How it works (quick overview)
- Choose the warehouse you want to correct.
- Search products (type/voice/barcode).
- Enter a number in the Qty field on the product card.
- Tap + Add or - Reduce, then confirm.
Top toolbar
Select warehouse
- Tap “Warehouse” to select a warehouse.
- If there are no warehouses, you may see “Warehouse kosong” (no warehouses).
- After selection, stock data loads for that warehouse.
Product search
- “Search products…” field for name/code/barcode (depends on backend data).
- Search runs automatically shortly after typing.
Voice Search (🎤)
- Search products by voice.
- After speech input is recognized, the list reloads with the keyword.
Scan Barcode (📷)
- Opens the barcode scanner camera.
- After a barcode is read, the search field is filled and the list reloads.
Product list
Each product is shown as a card containing:
- Product name
- “Sync QTY” button (🔄)
- Sync product quantity.
- The button is temporarily disabled while syncing.
- Current stock badge
- Shows stock and base unit (for example “10 pcs”).
- Tap it to show a “Current Stock” popup.
Quick stock correction (add / reduce)
On each product card:
- + Add button
- Qty field
- Enter the amount to add/reduce.
- If empty or 0, the system rejects with “Invalid amount”.
- - Reduce button
When tapping Add/Reduce:
- A confirmation dialog appears.
- If you confirm (OK), changes are sent to the server and the list refreshes.
- On success, the Qty input is cleared again.
Pagination (Previous / Next)
At the bottom there is pagination info:
- “Showing X of Y products”
- Previous to go back.
- Next to go forward.
Notes:
- On the first page, Previous is disabled.
- On the last page, Next is disabled.
Refresh Data
Pull down to reload stock data from the beginning.
Common error messages
- “Warehouse wajib”
- Shown when you try to adjust stock without selecting a warehouse.
- “Invalid amount”
- Shown when Qty is empty, not a number, or ≤ 0.
- “Gagal memuat data stok” (failed to load stock data)
- Usually related to connection, login token, or server.
Tips
- Confirm the active warehouse before adjusting stock.
- Use Scan (📷) for barcode products to speed up.
- Use Sync QTY (🔄) if stock looks incorrect (for example after sync/transfer).