Module: PriceCalculation
- Extended by:
- ActiveSupport::Concern
- Included in:
- Article, ArticlePrice
- Defined in:
- app/models/concerns/price_calculation.rb
Instance Method Summary collapse
-
#fc_price ⇒ Number
Price for the foodcoop-member.
-
#gross_price ⇒ Number
Gross price = net price + deposit + tax.
Instance Method Details
#fc_price ⇒ Number
Returns 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].to_i) end |
#gross_price ⇒ Number
Gross price = net price + deposit + tax.
6 7 8 |
# File 'app/models/concerns/price_calculation.rb', line 6 def gross_price add_percent(price + deposit, tax) end |