P5-7013 Move wallpaperkit price to api (#38)
This commit is contained in:
@@ -511,3 +511,25 @@ def inquiry_price(
|
||||
price = round_half_up(price)
|
||||
|
||||
return price
|
||||
|
||||
def wallpaper_kit_price(
|
||||
market, reseller=None, rounded=True, inc_vat=True
|
||||
):
|
||||
# Hardcode price as it hasn't been updated for a long time
|
||||
# price from "product-stockprices"
|
||||
price = 143.2
|
||||
|
||||
price *= market.price_adjustments
|
||||
|
||||
if reseller:
|
||||
price *= (float(reseller.pricepremium) / 100) + 1
|
||||
|
||||
price *= market.exchange_rate
|
||||
|
||||
if inc_vat:
|
||||
price *= market.vat
|
||||
|
||||
if rounded:
|
||||
price = round_half_up(price)
|
||||
|
||||
return price
|
||||
|
||||
Reference in New Issue
Block a user