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