Skip to content

Commit ec486a8

Browse files
Ahmed Osamaclaude
andcommitted
feat: add warehouse field to items for stock validation
Add warehouse information to each item returned from get_items API to enable proper stock validation in the frontend. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent d229d0d commit ec486a8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pos_next/api/items.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,9 @@ def get_items(pos_profile, search_term=None, item_group=None, start=0, limit=20)
613613
else:
614614
item["actual_qty"] = 0
615615

616+
# Add warehouse to item (needed for stock validation)
617+
item["warehouse"] = pos_profile_doc.warehouse
618+
616619
# Add barcode from map
617620
item["barcode"] = barcode_map.get(item["item_code"], "")
618621

0 commit comments

Comments
 (0)