Stoqio FAQ & Troubleshooting
Frequently asked questions for stoqio inventory and POS operations, including stock, invoice, report, user roles, and deployment behavior.
General
1) Is stoqio multi-company and multi-warehouse?
Yes. Core operations are company-scoped and warehouse-scoped. Ensure correct company_id and warehouse selection during testing.
2) Why is a menu not visible for a user?
Usually due to role-right permission or feature preference gate. Check role rights and company_feature_preference flags.
Product and Stock
3) Why product appears but stock is zero?
Product master exists, but no effective stock batch available in inventory_items or quantity already consumed.
4) What controls stock-out order?
Stock-out behavior uses mode values like FIFO, LIFO, or RANDOM depending on configuration and service logic path.
5) Why stock mismatch happens?
Common causes: direct DB edits, incomplete migration patches, failed return/transfer flow, or custom code bypassing service layer updates.
Invoice and Return
6) Which invoice types are supported?
Core types include sale, purchase, return, draft, quotation, and expense.
7) Why VAT or totals look incorrect?
Check item-level VAT and discount values in invoice_items, then verify header aggregation in invoices.
8) Sell return not working, why?
Confirm SELL_RETURN feature is active, route is accessible, and original sale reference exists for return flow.
Waitlist and Stock Guard
9) Waitlist item stays pending after stock in, why?
Stock arrival does not always auto-close waitlist. Reservation/claim/release transitions must complete based on your workflow settings.
10) How to approve blocked stock actions?
Use stock guard request endpoints and approval actions from authorized roles.
Backoffice and API
11) API endpoint returns 401/403
Check auth token, middleware (auth:api, throttle:api), and permission/feature middleware assignments.
12) Which API prefix should be used?
Use versioned endpoints under /api/v1. Keep frontend API clients synced with current route definitions.
Deployment and Performance
13) Frontend route refresh gives 404
SPA rewrite rule is missing on frontend host. Configure web server fallback to index.html.
14) Slow reports or list pages
Use date range filters, ensure DB indexes for high-usage columns (company_id, warehouse_id, date, invoice_no), and avoid unbounded queries.
Support Escalation Checklist
- Reproduce steps
- Endpoint URL + method
- Request payload and response
- Relevant
laravel.logsnippet - Screenshot/video if UI issue