******
Design
******

The *Stock Quantity Issue Module* introduces the following concepts:

.. _model-stock.quantity.issue:

Stock Quantity Issue
====================

*Quantity Issues* are generated by a `Scheduled Task <trytond:model-ir.cron>`.
They represent planning issues regarding the quantity of stock available for
future `Shipments <stock:concept-stock.shipment>` or `Productions
<production:model-production>`.

A best planned date is calculated for each issue.
Applying this date updates the shipment's, or production's, planned date.
The issue also lists the `Products <product:concept-product>` for which there
is a quantity issue.

The `Employee <company:model-company.employee>` who processes or solves the
issue is recorded.

.. seealso::

   Quantity Issues can be found by opening the main menu item:

      |Inventory & Stock --> Quantity Issues|__

      .. |Inventory & Stock --> Quantity Issues| replace:: :menuselection:`Inventory & Stock --> Quantity Issues`
      __ https://demo.tryton.org/model/stock.quantity.issue

Wizards
-------

.. _wizard-stock.quantity.issue.generate:

Generate Stock Quantity Issues
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The *Generate Stock Quantity Issues* wizard creates for each warehouse the
`Stock Quantity Issues <model-stock.quantity.issue>` if there are any.
When running it deletes any open issues, updates the processing issues with the
new products and creates new issues.

.. seealso::

   The wizard can be launched by opening:

      :menuselection:`Inventory & Stock --> Quantity Issues --> Generate Stock Quantity Issues`
