Skip to content

Commit

Permalink
Merge pull request #604 from weni-ai/feature/calculate_by_area
Browse files Browse the repository at this point in the history
change project to product in apply
  • Loading branch information
BarbosaJackson authored Jan 24, 2025
2 parents 3df40a1 + ef460fd commit 9f3223e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9f3223e

Please sign in to comment.