From f2868fe4e741eeca9fa297110362535f9912a645 Mon Sep 17 00:00:00 2001 From: mjavurek <57668028+mjavurek@users.noreply.github.com> Date: Tue, 17 Dec 2024 12:56:35 +0100 Subject: [PATCH] Update price_calculation.rb: typo --- app/models/concerns/price_calculation.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/concerns/price_calculation.rb b/app/models/concerns/price_calculation.rb index e021b7ba7..d2bb6bf60 100644 --- a/app/models/concerns/price_calculation.rb +++ b/app/models/concerns/price_calculation.rb @@ -3,8 +3,8 @@ module PriceCalculation # Gross price = net price + deposit + tax. # @return [Number] Gross price. - def gross_price(include_deposit=TRUE) - if include_depost + def gross_price(include_deposit = TRUE) + if include_deposit add_percent(price + deposit, tax) else add_percent(price, tax) @@ -13,7 +13,7 @@ def gross_price(include_deposit=TRUE) # @return [Number] Price for the foodcoop-member. def fc_price - add_percent(gross_price(include_deposit=FALSE), FoodsoftConfig[:price_markup]) + fc_deposit + add_percent(gross_price(include_deposit = FALSE), FoodsoftConfig[:price_markup]) + fc_deposit end def gross_deposit