Skip to content

Commit

Permalink
fix: ajust price
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatasoli committed Oct 6, 2024
1 parent 7360a46 commit 180f54d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/entities/cart.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def calculate_subtotal(
raise CouponLimitPriceError
self.discount = coupon.discount_price
self.subtotal = subtotal - self.discount
if self.freight and self.freight.price:
if self.freight and self.freight.price >= 0:
self.total = (subtotal + self.freight.price) - self.discount
except TypeError as err:
logger.error('Price or quantity not found in cart item')
Expand Down

0 comments on commit 180f54d

Please sign in to comment.