Sha256: 7c33fbc2dfee2735d63229104a0001065a9ed9cbc6bae3bac43e508976cb8abf

Contents?: true

Size: 921 Bytes

Versions: 3

Compression:

Stored size: 921 Bytes

Contents

FactoryBot.define do
  factory :customer_order, class: "Comee::Core::CustomerOrder" do
    order_number { Faker::Alphanumeric.alpha(number: 8) }
    order_date { Date.current }
    client
    order_terms { Faker::Lorem.sentence }
    consignee { Faker::Name.name }
    shipment_address { Faker::Address.full_address }
    final_destination { Faker::Address.full_address }
    final_delivery_date { Faker::Date.between(from: Date.current.advance(days: 20), to: Date.current.advance(months: 2)) }
    handover_date { final_delivery_date.advance(days: -10) }
    shipping_date { handover_date.advance(days: 10) }
    delivery_address { Faker::Address.full_address }
    invoice_address { Faker::Address.full_address }
    status { 0 }
    consolidator_date { Date.current }
    voyage_no { Faker::Alphanumeric.alpha(number: 10) }
    shipping_arrangement { Comee::Core::CustomerOrder.shipping_arrangements[:own] }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
comee_core-0.3.7 spec/factories/comee/core/customer_orders.rb
comee_core-0.3.6 spec/factories/comee/core/customer_orders.rb
comee_core-0.3.5 spec/factories/comee/core/customer_orders.rb