Skip to content

Commit

Permalink
Update price_calculation.rb: use FoodsoftConfig[:deposit_with_markup]
Browse files Browse the repository at this point in the history
  • Loading branch information
mjavurek authored Dec 17, 2024
1 parent 2ec322e commit b5967b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/models/concerns/price_calculation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check failure on line 24 in app/models/concerns/price_calculation.rb

View workflow job for this annotation

GitHub Actions / test

Lint/LiteralAsCondition: Literal `false` appeared as a condition.

Check failure on line 24 in app/models/concerns/price_calculation.rb

View workflow job for this annotation

GitHub Actions / test

Layout/TrailingWhitespace: Trailing whitespace detected.
add_percent(gross_deposit, FoodsoftConfig[:price_markup])
else
gross_deposit
Expand Down

0 comments on commit b5967b4

Please sign in to comment.