Sha256: 5322891797ca47fa872e5ec42c0d13d3e5d26a2eec16cf20a42ee41998f8d749

Contents?: true

Size: 613 Bytes

Versions: 40

Compression:

Stored size: 613 Bytes

Contents

<%
order_date = Time.now
1.upto(100) do |i|
  order_date -= rand(12).hours
  item_total =  "#{1 + rand(400)}.#{rand(100)}".to_f
  charges_total = "#{1 + rand(30)}.#{rand(100)}".to_f
%>
order_<%= i %>:
  number: <%= "R#{Array.new(9){rand(9)}.join}" %>
  user: user_<%= i %>
  state: complete
  email: <%= Faker::Internet.email %>
  item_total: <%= item_total %>
  created_at: <%=order_date.to_s(:db)%>
  completed_at: <%=order_date.to_s(:db)%>
  total: <%= item_total + charges_total %>
  adjustment_total: <%= charges_total %>
  ship_address: ship_address_<%= i %>
  bill_address: bill_address_<%= i %>
<% end %>

Version data entries

40 entries across 38 versions & 7 rubygems

Version Path
spree_sample-0.70.7 db/sample/orders.yml
spree_sample-0.70.6 db/sample/orders.yml
apispree_sample-0.0.0 db/sample/orders.yml
My-Commerce_sample-1.1.0 db/sample/orders.yml
My-Commerce_sample-1.0.0 db/sample/orders.yml
MyCommerceapi-1.0.0 sandbox/db/sample/orders.yml
MyCommerceapi-1.0.0 sample/db/sample/orders.yml
MyCommerce-0.0.3 sample/db/sample/orders.yml
MyCommerce-0.0.3 sandbox/db/sample/orders.yml
rfcommerce_sandbox-0.0.3 db/sample/orders.yml
rfcommerce_sample-0.0.3 db/sample/orders.yml
spree_sample-0.60.6 db/sample/orders.yml
spree_sample-0.70.5 db/sample/orders.yml
spree_sample-0.70.4 db/sample/orders.yml
spree_sample-0.60.5 db/sample/orders.yml
spree_sample-0.70.3 db/sample/orders.yml
spree_sample-0.70.2 db/sample/orders.yml
spree_sample-0.30.2 db/sample/orders.yml
spree_sample-0.40.4 db/sample/orders.yml
spree_sample-0.50.4 db/sample/orders.yml