Skip to content

Commit

Permalink
Update price_calculation.rb: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mjavurek authored Dec 17, 2024
1 parent c7d479a commit f2868fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/concerns/price_calculation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)

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

View workflow job for this annotation

GitHub Actions / test

Lint/DeprecatedConstants: Use `true` instead of `TRUE`, deprecated since Ruby 2.4.
if include_deposit
add_percent(price + deposit, tax)
else
add_percent(price, tax)
Expand All @@ -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

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

View workflow job for this annotation

GitHub Actions / test

Lint/UselessAssignment: Useless assignment to variable - `include_deposit`.

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

View workflow job for this annotation

GitHub Actions / test

Lint/DeprecatedConstants: Use `false` instead of `FALSE`, deprecated since Ruby 2.4.
end

def gross_deposit
Expand Down

0 comments on commit f2868fe

Please sign in to comment.