P5-4105 update package price calculations

This commit is contained in:
Martin
2019-08-29 11:49:20 +02:00
parent 5990622b5b
commit 462b078342
2 changed files with 16 additions and 22 deletions
+4 -6
View File
@@ -81,14 +81,12 @@ def canvas_cm2_price(cm2):
def package_price(product_group, width, height, market):
if market.territory in ['US', 'EU']:
if product_group == 'canvas' and max(width, height) > 119:
return 100
elif product_group == 'poster':
if market.territory == 'US':
if product_group in ['canvas', 'poster']:
if width > 110:
return 400
return 150
else:
return 250
return 100
return 0