From b5967b49d6b4cd4fed07773689610c9fa2378184 Mon Sep 17 00:00:00 2001 From: mjavurek <57668028+mjavurek@users.noreply.github.com> Date: Tue, 17 Dec 2024 13:31:21 +0100 Subject: [PATCH] Update price_calculation.rb: use FoodsoftConfig[:deposit_with_markup] --- app/models/concerns/price_calculation.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/concerns/price_calculation.rb b/app/models/concerns/price_calculation.rb index e8d806bb2..e55f72728 100644 --- a/app/models/concerns/price_calculation.rb +++ b/app/models/concerns/price_calculation.rb @@ -21,8 +21,7 @@ def gross_deposit end def fc_deposit - deposit_with_markup = false # FoodsoftConfig[:deposit_with_markup] - if deposit_with_markup + if FoodsoftConfig[:deposit_with_markup] || false add_percent(gross_deposit, FoodsoftConfig[:price_markup]) else gross_deposit