Module: PriceCalculation

Extended by:
ActiveSupport::Concern
Included in:
Article, ArticlePrice
Defined in:
app/models/concerns/price_calculation.rb

Instance Method Summary collapse

Instance Method Details

#fc_priceNumber

Returns Price for the foodcoop-member.

Returns:

  • (Number)

    Price for the foodcoop-member.


11
12
13
# File 'app/models/concerns/price_calculation.rb', line 11

def fc_price
  add_percent(gross_price, FoodsoftConfig[:price_markup])
end

#gross_priceNumber

Gross price = net price + deposit + tax.

Returns:

  • (Number)

    Gross price.


6
7
8
# File 'app/models/concerns/price_calculation.rb', line 6

def gross_price
  add_percent(price + deposit, tax)
end