P5-4105 update package price calculations
This commit is contained in:
+4
-6
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user