openfoodfoundation / openfoodnetwork

Connect suppliers, distributors and consumers to trade local produce.
https://www.openfoodnetwork.org
GNU Affero General Public License v3.0
1.11k stars 720 forks source link

Shipment state should not be based on hidden stock for on demand products #4306

Open RachL opened 5 years ago

RachL commented 5 years ago

Description

Currently on demand products which have a hidden stock at "0" will make all order appear with an "out-of-stock or "backordered" shipment state.

Steps to Reproduce

  1. Order a product that is "on demand" and make sure the "hidden" stock value is at 0
  2. Go to /orders?q[s]=completed_at+desc
  3. See that your order has a shipment state as "out of stock" or "backordered"
  4. Go back to the product, uncheck the on demand checkbox, add a positive value and save
  5. Now your same order has a shipment state of "pending" or "ready"

Animated Gif/Screenshot

Step 1 :

image

After I've added some hidden stock on the product:

image

Severity

bug-s3: a feature is broken but there is a workaround

Your Environment

luisramos0 commented 5 years ago

this is related to #4267

Matt-Yorkley commented 3 years ago

I don't think this issue is valid anymore, right? Is it still possible to get the order state to change to backordered?