From c7b0a520d2a364f832668676e06a5354a8b6f71d Mon Sep 17 00:00:00 2001 From: Pauliina Ilmanen Date: Fri, 17 Jan 2025 14:20:09 +0200 Subject: [PATCH] Fix tax class in order creation When creating new order lines, use the tax class that is calculated in PriceList `get_price_info` method. Refs TTVA-224 --- payments/api/reservation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/payments/api/reservation.py b/payments/api/reservation.py index 5357be2f4..c86b20ef9 100644 --- a/payments/api/reservation.py +++ b/payments/api/reservation.py @@ -52,10 +52,10 @@ def create(self, validated_data): order_line_data["total_price"] = total_price order_line_data["unit_price"] = Decimal(order_line_price_info["amount"]) + order_line_data["tax_percentage"] = order_line_price_info["tax_percentage"] price_source = order_line_price_info["price_source"] - order_line_data["tax_percentage"] = price_source.tax_percentage order_line_data["price_period"] = price_source.price_period order_line_data["price_type"] = price_source.price_type