From b1b067e53910ee8e95d5107d1fbea39a00949f2d Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 15 Apr 2021 12:47:37 -0300 Subject: stock management diagram --- .../017-backoffice-inventory-management.rst | 49 ++++++++++++---------- 1 file changed, 27 insertions(+), 22 deletions(-) (limited to 'design-documents/017-backoffice-inventory-management.rst') diff --git a/design-documents/017-backoffice-inventory-management.rst b/design-documents/017-backoffice-inventory-management.rst index 5513dd8b..af25767d 100644 --- a/design-documents/017-backoffice-inventory-management.rst +++ b/design-documents/017-backoffice-inventory-management.rst @@ -39,8 +39,6 @@ Listing the product will shown this columns: * image * description * sell price -* total taxes -* profit (price - taxes) * stock left (with next_restock in days if present) * stock sold @@ -50,27 +48,10 @@ Actions will be * delete: with a confirm popup, it may fail if have some locked -.. _backoffice-create-product: - Create and Update Product form ------------------------------ -Creating without stock -********************** - -.. image:: ../backoffice-product-create.with-stock.svg - :width: 800 - -Creating with defined stock -*************************** - -.. image:: ../backoffice-product-create.without-stock.svg - :width: 800 - -Updating -*************************** - -.. image:: ../backoffice-product-update.svg +.. image:: ../backoffice-product-create.svg :width: 800 Update product will use the same form except for the ``product_id`` @@ -96,12 +77,36 @@ Update product will use the same form except for the ``product_id`` * Stock: button that opens more fields for stock control - * initial stock: number + * stock remaining: number * address: first collapsed, then field for Location * next_restock: date * cancel: button to set the stock to infinity, closing the section - +Stock management +---------------- + +* ``manage stock`` button will open the dialog below + +* ``without stock`` will close the dialog and set stock props to not defined (no valid for update product with stock) + +* ``update stock`` will close the dialog and set stock props to input values + +* ``set/change`` button will open next restock sub dialog + +* ``update`` button will close subdialog and set the next restock value to input date + +* ``not known`` button will close subdialog and set next restock value to undefined + +* ``never`` button will close subdialog and set next restock to never + +* ``add`` button will show an input to incresse the stock + +* if stock as added ``add`` button will be ``add more`` and a label with ``+ `` will be shown + +.. image:: ../backoffice-product-create.stock.svg + :width: 800 + + Alternatives ============ -- cgit v1.2.3