From 18e205a2179f58196842b7dc0a60b13cc0b9a32b Mon Sep 17 00:00:00 2001 From: Viggo de Vries Date: Tue, 3 Dec 2024 16:22:15 +0100 Subject: [PATCH] Change the price to the price incl tax (#56) --- oscar_odin/mappings/catalogue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oscar_odin/mappings/catalogue.py b/oscar_odin/mappings/catalogue.py index 4b0c618..29eedc7 100644 --- a/oscar_odin/mappings/catalogue.py +++ b/oscar_odin/mappings/catalogue.py @@ -269,7 +269,7 @@ def map_stock_price(self) -> Tuple[Decimal, str, int, bool]: else: price_info = stock_strategy.fetch_for_product(self.source) return ( - getattr(price_info.price, "excl_tax", Decimal(0)), + getattr(price_info.price, "incl_tax", Decimal(0)), getattr(price_info.price, "currency", ""), getattr(price_info.availability, "num_available", 0), price_info.availability.is_available_to_buy,