This commit is contained in:
2025-02-16 22:49:18 -05:00
parent 92d1356c0e
commit 721b26ce97
2 changed files with 12 additions and 11 deletions

View File

@@ -126,15 +126,16 @@ class PricingService:
# Apply pricing rules
if tcg_market_price < 1 and tcg_market_price > 0.25:
new_price = tcg_market_price
new_price = tcg_market_price * 1.05
elif tcg_market_price < 0.25:
new_price = 0.25
elif tcg_low < 5 or tcg_low_shipping < 5:
new_price = round(tcg_low+((abs(tcg_market_price-tcg_low))/2), 2)
new_price = round(tcg_low+((abs(tcg_market_price-tcg_low))*.75), 2)
elif tcg_low_shipping > 20:
new_price = round(tcg_low_shipping * 1.0125, 2)
else:
new_price = round(tcg_low_shipping * 1.08, 2)
# new_price = round(tcg_low_shipping * 1.08, 2)
new_price = round(tcg_market_price * 1.03)
# if new price is less than half of market price, set to 90% market
if new_price < (tcg_market_price / 2):
new_price = round(tcg_market_price * 0.85, 2)