PW-349 change minium price for wallpaper on US to 2sqm
This commit is contained in:
+8
-1
@@ -22,7 +22,14 @@ def wallpaper_price(width, height, material_price, market, designer=None, resell
|
||||
|
||||
# calculate price per square meter
|
||||
sqm = (width / 100) * (height / 100)
|
||||
sqm = max(sqm, 1)
|
||||
|
||||
if market.territory == "US":
|
||||
min_sqm = 2
|
||||
else:
|
||||
min_sqm = 1
|
||||
|
||||
sqm = max(sqm, min_sqm)
|
||||
|
||||
price = sqm * m2_price
|
||||
|
||||
# add vat
|
||||
|
||||
Reference in New Issue
Block a user