Sha256: d3b6d119fcf3c96e5027a612e66ba0f7a25eba69d9709dc17058066bebdf45b7

Contents?: true

Size: 1.02 KB

Versions: 39

Compression:

Stored size: 1.02 KB

Contents

FactoryBot.define do
  factory :sales_order, class: "Comee::Core::SalesOrder" do
    order_number { Faker::Alphanumeric.alpha(number: 10) }
    order_date { Date.current }
    customer_order
    fulfillment_center
    client
    order_terms { Faker::Lorem.sentence }
    shipment_address { Faker::Address.full_address }
    delivery_address { Faker::Address.full_address }
    invoice_address { Faker::Address.full_address }
    destination { Faker::Address.city }
    handover_date { Date.current.advance(weeks: 1) }
    shipping_date { Date.current.advance(days: 10) }
    delivery_date { Date.current.advance(days: 15) }
    consignee { Faker::Name.name }
    parent_client_name { Faker::Name.name }
    payment_term { Faker::Lorem.sentence }
    delivery_term { Faker::Lorem.sentence }
    payment_penalty { 0 }
    status { Comee::Core::SalesOrder.statuses[:draft] }
    total_price { 0 }
    amount_paid { 0 }
    pallete_note { Faker::Lorem.sentence }
    remark { Faker::Lorem.sentence }
    created_by { Faker::Name.name }
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
comee_core-0.2.50 spec/factories/comee/core/sales_orders.rb
comee_core-0.2.49 spec/factories/comee/core/sales_orders.rb
comee_core-0.2.48 spec/factories/comee/core/sales_orders.rb
comee_core-0.2.47 spec/factories/comee/core/sales_orders.rb
comee_core-0.2.46 spec/factories/comee/core/sales_orders.rb
comee_core-0.2.45 spec/factories/comee/core/sales_orders.rb
comee_core-0.2.44 spec/factories/comee/core/sales_orders.rb
comee_core-0.2.43 spec/factories/comee/core/sales_orders.rb
comee_core-0.2.42 spec/factories/comee/core/sales_orders.rb
comee_core-0.2.41 spec/factories/comee/core/sales_orders.rb
comee_core-0.2.40 spec/factories/comee/core/sales_orders.rb
comee_core-0.2.39 spec/factories/comee/core/sales_orders.rb
comee_core-0.2.38 spec/factories/comee/core/sales_orders.rb
comee_core-0.2.37 spec/factories/comee/core/sales_orders.rb
comee_core-0.2.36 spec/factories/comee/core/sales_orders.rb
comee_core-0.2.35 spec/factories/comee/core/sales_orders.rb
comee_core-0.2.34 spec/factories/comee/core/sales_orders.rb
comee_core-0.2.33 spec/factories/comee/core/sales_orders.rb
comee_core-0.2.32 spec/factories/comee/core/sales_orders.rb
comee_core-0.2.31 spec/factories/comee/core/sales_orders.rb