@@ -40,7 +40,7 @@ class ReservationEmailContext(BaseEmailContext):
4040 price : Decimal
4141 non_subsidised_price : Decimal
4242 subsidised_price : Decimal
43- tax_percentage : int
43+ tax_percentage : Decimal
4444
4545 confirmed_instructions : str
4646 pending_instructions : str
@@ -89,7 +89,7 @@ def from_reservation(
8989 price = reservation .price ,
9090 non_subsidised_price = reservation .non_subsidised_price ,
9191 subsidised_price = cls ._get_reservation_subsidised_price (reservation ),
92- tax_percentage = int ( reservation .tax_percentage_value ) ,
92+ tax_percentage = reservation .tax_percentage_value ,
9393 # Instructions
9494 confirmed_instructions = cls ._get_instruction_field (reservation , "confirmed" , language ),
9595 pending_instructions = cls ._get_instruction_field (reservation , "pending" , language ),
@@ -162,7 +162,7 @@ def from_mock_data(cls) -> ReservationEmailContext:
162162 price = Decimal ("12.30" ),
163163 non_subsidised_price = Decimal ("15.00" ),
164164 subsidised_price = Decimal ("5.00" ),
165- tax_percentage = 24 ,
165+ tax_percentage = Decimal ( "25.5" ) ,
166166 # Instructions
167167 confirmed_instructions = "[lisäohje: hyväksytty]" ,
168168 pending_instructions = "[lisäohje: käsittelyssä]" ,
0 commit comments