P5-4036 update poster prices

This commit is contained in:
Martin
2019-08-02 14:54:38 +02:00
parent e7d25ac41e
commit 5f02343fd3
3 changed files with 23 additions and 23 deletions
+5 -5
View File
@@ -155,10 +155,10 @@ def canvas_frame_price(width, height, market, reseller=None, rounded=True, inc_v
def poster_cm2_price(cm2):
price_cm2_at_1cm2 = 0.084
price_cm2_at_5000cm2 = 0.0392
price_cm2_at_10000cm2 = 0.0336
price_cm2_at_22500cm2 = 0.028
price_cm2_at_1cm2 = 0.1008
price_cm2_at_5000cm2 = 0.04704
price_cm2_at_10000cm2 = 0.04032
price_cm2_at_22500cm2 = 0.0336
if cm2 <= 5000:
diff = price_cm2_at_1cm2 - price_cm2_at_5000cm2
@@ -184,7 +184,7 @@ def poster_price(width, height, market, hanger=True, designer=None, reseller=Non
cm2 = width * height
cm2_price = poster_cm2_price(cm2)
price = cm2 * cm2_price
price = max(price, 134.4) # the price can never go below 134.4 SEK
price = max(price, 200) # the price can never go below 200 SEK
if(hanger):
price += _price_for_poster_hanger_size(width)