Module: Spree::VatPriceCalculation

Included in:
Calculator::DefaultTax, Price, Stock::Estimator
Defined in:
app/models/concerns/spree/vat_price_calculation.rb

Instance Method Summary collapse

Instance Method Details

#gross_amount(amount, price_options) ⇒ Object


3
4
5
6
# File 'app/models/concerns/spree/vat_price_calculation.rb', line 3

def gross_amount(amount, price_options)
  return amount unless outside_default_vat_zone?(price_options)
  round_to_two_places(add_foreign_vat_for(amount, price_options))
end