15 16 17 18 19 20 21 22 23
# File 'app/models/spree/shipping_rate.rb', line 15 def display_price if Spree::Config[:shipment_inc_vat] price = (1 + Spree::TaxRate.default) * cost else price = cost end Spree::Money.new(price, { currency: currency }) end