fix: price_markup with value nil gives exception

fixes #1011
This commit is contained in:
Philipp Rothmann 2023-06-16 13:04:03 +02:00
parent 026c3a6285
commit a1682932ac
2 changed files with 10 additions and 4 deletions

View file

@ -9,7 +9,7 @@ module PriceCalculation
# @return [Number] Price for the foodcoop-member.
def fc_price
add_percent(gross_price, FoodsoftConfig[:price_markup])
add_percent(gross_price, FoodsoftConfig[:price_markup].to_i)
end
private