feat: add SQL helper functions for inventory management (#15) #44

Merged
makiolaj merged 1 commits from feature/issue-15-sql-functions into develop 2026-02-09 12:59:06 +00:00
Owner

Closes #15

Closes #15
makiolaj added 1 commit 2026-02-09 12:58:54 +00:00
feat: add SQL helper functions for inventory management (#15)
Some checks failed
Pull Request Checks / Validate PR (pull_request) Has been cancelled
Deploy to Coolify / Run Tests (pull_request) Has been cancelled
Deploy to Coolify / Deploy to Development (pull_request) Has been cancelled
Deploy to Coolify / Deploy to Production (pull_request) Has been cancelled
Deploy to Coolify / Code Quality (pull_request) Has been cancelled
Deploy to Coolify / Deploy to Test (pull_request) Has been cancelled
f70b90748a
Created 8 helper functions for common inventory operations:

1. get_inventory_details() - Full inventory list with denormalized data
2. get_expiring_items(days) - Items expiring within N days
3. get_items_by_tag(tag_name) - Filter by tag
4. get_low_stock_items(threshold) - Items below quantity threshold
5. update_item_quantity() - Consume/restock with optional auto-delete
6. get_inventory_stats() - Dashboard statistics
7. search_inventory() - Full-text search across items and products

All functions include comments and are optimized for frontend queries.

Closes #15
makiolaj merged commit 4eec4923af into develop 2026-02-09 12:59:06 +00:00
Sign in to join this conversation.