From 9f11da4c53dda39e95e33aaf3c5dfae63afb41be Mon Sep 17 00:00:00 2001 From: mjavurek <57668028+mjavurek@users.noreply.github.com> Date: Tue, 17 Dec 2024 12:57:22 +0100 Subject: [PATCH] Update price_calculation.rb: lc true/false --- app/models/concerns/price_calculation.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/concerns/price_calculation.rb b/app/models/concerns/price_calculation.rb index d2bb6bf60..be2069a85 100644 --- a/app/models/concerns/price_calculation.rb +++ b/app/models/concerns/price_calculation.rb @@ -3,7 +3,7 @@ module PriceCalculation # Gross price = net price + deposit + tax. # @return [Number] Gross price. - def gross_price(include_deposit = TRUE) + def gross_price(include_deposit = true) if include_deposit add_percent(price + deposit, tax) else @@ -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