Skip to content

Commit

Permalink
Update price_calculation.rb: add gross_deposit and fc_deposit
Browse files Browse the repository at this point in the history
  • Loading branch information
mjavurek authored Dec 16, 2024
1 parent e853e19 commit 5bfeff8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/models/concerns/price_calculation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ def fc_price
add_percent(gross_price, FoodsoftConfig[:price_markup].to_i)
end

# deposit
def gross_deposit
add_percent(deposit, tax)
end

def fc_deposit
add_percent(gross_deposit, FoodsoftConfig[:price_markup])
end

private

def add_percent(value, percent)
Expand Down

0 comments on commit 5bfeff8

Please sign in to comment.