Ignore refunded products in extended info for analytic orders report

This commit is contained in:
Ian Yu-Hsun Lin 2024-09-13 11:55:57 +08:00
parent fd26bc11c7
commit 455f4d3ea9
1 changed files with 3 additions and 2 deletions

View File

@ -489,8 +489,9 @@ class DataStore extends ReportsDataStore implements DataStoreInterface {
ELSE product_id
END
)
WHERE
order_id IN ({$included_order_ids})
WHERE 1 = 1
AND order_id IN ({$included_order_ids})
AND product_qty > 0
",
ARRAY_A
);