Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix failing voucher recalculation

Maciej Korycinskif767075b57c4
diff --git a/saleor/checkout/utils.py b/saleor/checkout/utils.py
index 672099978b..e0890337b2 100644
--- a/saleor/checkout/utils.py
+++ b/saleor/checkout/utils.py
@@ -349,7 +349,7 @@ def get_prices_of_discounted_specific_product(
lines=lines,
checkout_line_info=line_info,
discounts=discounts,
- ).gross
+ )
line_unit_price = manager.calculate_checkout_line_unit_price(
line_total,
line.quantity,
@@ -358,7 +358,7 @@ def get_prices_of_discounted_specific_product(
line_info,
address,
discounts,
- )
+ ).gross
line_prices.extend([line_unit_price] * line.quantity)
return line_prices