stock_available_immediately computes wrong stock level

Bug #1320857 reported by Lionel Sausin - Initiatives/Numérigraphe
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Stock And Logistic Warehouse

Bug Description

The description of stock_available_immediately say it should compute "Immediately Usable" as: Quantity On Hand - Outgoing
but the code does not match that:
    res[product_id]['immediately_usable_qty'] = \
                    stock_qty['qty_available'] + stock_qty['outgoing_qty']

Changed in stock-logistic-warehouse:
assignee: nobody → Lionel Sausin - Numérigraphe (lionel-sausin)
Changed in stock-logistic-warehouse:
assignee: Lionel Sausin - Numérigraphe (lionel-sausin) → Numérigraphe (numerigraphe-team)
Revision history for this message
Lionel Sausin - Initiatives/Numérigraphe (ls-initiatives) wrote :

As Guewen Baconnier noticed, stock_qty['outgoing_qty'] is actually negative so there is no bug here.

Changed in stock-logistic-warehouse:
status: New → Invalid
assignee: Numérigraphe (numerigraphe-team) → nobody
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers