Update a list of things

I would like to update stockQuantity after a purchase, so I’m updating the list of the products of the order ( orderItem’s product )
I should so filter the orderitems to find the Quantity of it then remove this quantity from the product’s stock quantity.

I issue that I can’t find “this product” of the filtered window

most likely you need to reference it like

this order items > product

your data structure is likely

products
orders
order items (with qty of product per order and possibly fulfilment status etc (or maybe that is order level… depends on how you fulfil)

Hi , thanks ,
I dont understand well your proposition sorry .
How can i select This order item ?
I’m getting this order item in the filtered popup , but is it the order item of actual product or the the order item of the filtered loop ?

@mitchbaylis
I selected order item’s product is empty

This topic was automatically closed after 70 days. New replies are no longer allowed.