Sha256: fb4d87aa8cb9ee8ca4042b6f90b69c2d082e55f003fee62e59579336910afe5c

Contents?: true

Size: 824 Bytes

Versions: 15

Compression:

Stored size: 824 Bytes

Contents

FactoryBot.define do
  factory :sales_order_item, class: "Comee::Core::SalesOrderItem" do
    sales_order
    association :customer_order_item, :with_inventory
    source factory: :fulfillment_center
    product
    unit
    purchase_order_item { nil }
    customer_item_no { Faker::Alphanumeric.alpha(number: 10) }
    customer_item_description { Faker::Lorem.sentence }
    quantity { 100 }
    quantity_delivered { 0 }
    price { 50 }
    total_price { quantity * price }
    delivery_date { Date.current.advance(months: 1) }
    handover_date { Date.current }
    eb_number { Faker::Lorem.word }
    lead_time { nil }
    comment { Faker::Lorem.sentence }
    action_note { Faker::Lorem.sentence }
    canceled { false }
    processing_status { Comee::Core::SalesOrderItem.processing_statuses[:unprocessed] }
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
comee_core-0.2.50 spec/factories/comee/core/sales_order_items.rb
comee_core-0.2.49 spec/factories/comee/core/sales_order_items.rb
comee_core-0.2.48 spec/factories/comee/core/sales_order_items.rb
comee_core-0.2.47 spec/factories/comee/core/sales_order_items.rb
comee_core-0.2.46 spec/factories/comee/core/sales_order_items.rb
comee_core-0.2.45 spec/factories/comee/core/sales_order_items.rb
comee_core-0.2.44 spec/factories/comee/core/sales_order_items.rb
comee_core-0.2.43 spec/factories/comee/core/sales_order_items.rb
comee_core-0.2.42 spec/factories/comee/core/sales_order_items.rb
comee_core-0.2.41 spec/factories/comee/core/sales_order_items.rb
comee_core-0.2.40 spec/factories/comee/core/sales_order_items.rb
comee_core-0.2.39 spec/factories/comee/core/sales_order_items.rb
comee_core-0.2.38 spec/factories/comee/core/sales_order_items.rb
comee_core-0.2.37 spec/factories/comee/core/sales_order_items.rb
comee_core-0.2.36 spec/factories/comee/core/sales_order_items.rb