How do I export the line item return quantity where the return status is "In Progress"?

You can use the formula below in the Calculated Fields to export the returned line item quantity where the return status is "Return in progress":

get_total([i.quantity for i in load_json_data({{ line_items.returns }}) if i.status == "OPEN"])

Related Articles:


App: EZ Exporter

Tags: line item returns, returns in progress