Niyu Smart Stock

Forecast Data Pipeline & Job Lifecycle

Details exactly what data is sent to the AI engine, how exceptions are handled, and how forecast synchronization jobs operate.

Eligible Demand Data

  • Sales Orders: Pulls confirmed orders in Sale or Done state for stockable/consumable, purchase-enabled products within the configured history window.
  • POS Demand (Optional): Pulls paid, done, or invoiced POS orders mapped via the POS picking type.
  • Zero-Demand Seeds: Generates a short zero-demand series for items with stock/supply but no sales history so they can be evaluated.

The Run Lifecycle

  • Forecasts are triggered manually or via the scheduled cron job (running daily around 02:00 server time).
  • The system submits a compressed payload (schema v3.0) requesting a 120-day horizon.
  • A local polling record checks the Niyu Cloud job status approximately every minute.
  • Once complete, the results update the operational Action Lines locally.

Quota & Limit Behaviour

  • Manual and scheduled refreshes use separate backend allowances.
  • If quota is exhausted, a structured notice appears showing remaining limits and shortcuts to the Settings page, preventing actual errors from being disguised as quota events.