Sha256: 6e7ac5b1e7dbd140963420a9764ae79a315d57cc868cd972d98af5d650c65f34
Contents?: true
Size: 574 Bytes
Versions: 42
Compression:
Stored size: 574 Bytes
Contents
Spree::Sample.load_sample('orders') first_order = Spree::Order.find_by!(number: 'R123456789') last_order = Spree::Order.find_by!(number: 'R987654321') first_order.adjustments.where( source: Spree::TaxRate.find_by!(name: 'North America'), order: first_order, label: 'Tax', state: 'open', mandatory: true ).first_or_create! do |adj| adj.amount = 0 end last_order.adjustments.where( source: Spree::TaxRate.find_by!(name: 'North America'), order: last_order, label: 'Tax', state: 'open', mandatory: true ).first_or_create! do |adj| adj.amount = 0 end
Version data entries
42 entries across 42 versions & 1 rubygems