Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix get_product_costs_data
michal06df0495afbf
diff --git a/saleor/product/utils.py b/saleor/product/utils.pyindex 4916accdd9..c2b131d9c6 100644--- a/saleor/product/utils.py+++ b/saleor/product/utils.py@@ -330,6 +330,7 @@ def get_product_costs_data(product):if costs:purchase_costs_range = PriceRange(min(costs), max(costs))+ if margins:gross_margin = (margins[0], margins[-1])return purchase_costs_range, gross_margin