From ef460fdec8b5e6bc211a902c3a7baac71056fe1d Mon Sep 17 00:00:00 2001 From: Jackson Barbosa <=> Date: Fri, 24 Jan 2025 16:45:58 -0300 Subject: [PATCH] change project to product in apply --- .../vtex/business/rules/currency_pt_br_round_floor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/marketplace/services/vtex/business/rules/currency_pt_br_round_floor.py b/marketplace/services/vtex/business/rules/currency_pt_br_round_floor.py index eafbe3fa..a02f0659 100644 --- a/marketplace/services/vtex/business/rules/currency_pt_br_round_floor.py +++ b/marketplace/services/vtex/business/rules/currency_pt_br_round_floor.py @@ -4,10 +4,11 @@ from decimal import Decimal, ROUND_FLOOR -class CurrencyBRLRoudingDown(Rule): +class CurrencyBRLRoudingFloor(Rule): + def apply(self, product: FacebookProductDTO, **kwargs) -> bool: product.price = self.format_price(product.price) - project.sale_price = self.format_price(product.sale_price) + product.sale_price = self.format_price(product.sale_price) return True @staticmethod