Module: SolidusTaxCloud::Spree::ShipmentDecorator
- Defined in:
- app/decorators/models/solidus_tax_cloud/spree/shipment_decorator.rb
Instance Method Summary collapse
Instance Method Details
#price_with_discounts ⇒ Object
20 21 22 |
# File 'app/decorators/models/solidus_tax_cloud/spree/shipment_decorator.rb', line 20 def price_with_discounts total_excluding_vat end |
#tax_cloud_cache_key ⇒ Object
6 7 8 9 10 11 12 |
# File 'app/decorators/models/solidus_tax_cloud/spree/shipment_decorator.rb', line 6 def tax_cloud_cache_key if ActiveRecord::Base.try(:cache_versioning) cache_key else "#{cache_key}--from:#{stock_location.cache_key}--to:#{order.shipping_address.cache_key}" end end |
#tax_cloud_cache_version ⇒ Object
14 15 16 17 18 |
# File 'app/decorators/models/solidus_tax_cloud/spree/shipment_decorator.rb', line 14 def tax_cloud_cache_version if ActiveRecord::Base.try(:cache_versioning) "#{cache_version}--from:#{stock_location.cache_version}--to:#{order.shipping_address.cache_version}" end end |