P5-6491 use market instead of territory for price calculations (#37)

This commit is contained in:
Martin Carlsson
2021-01-25 09:24:26 +01:00
committed by GitHub
parent dee7344ba5
commit 464e2f1fa6
11 changed files with 127 additions and 256 deletions
+3 -3
View File
@@ -56,7 +56,7 @@ def wallpaper_price(
sqm = (width / 100) * (height / 100)
if market.territory == "US":
if market.name == "US":
min_sqm = 2
else:
min_sqm = 1
@@ -101,7 +101,7 @@ def canvas_cm2_price(cm2):
def package_price(product_group, width, height, market):
if market.territory == "US":
if market.name == "US":
if product_group in ["canvas", "poster"]:
if width > 110:
return 150
@@ -411,7 +411,7 @@ def framed_print_price(
},
}
price += extra_shipping_price[sku].get(market.territory, 0)
price += extra_shipping_price[sku].get(market.name, 0)
price *= market.price_adjustments