Sha256: d427ccf2d5570c1b287ff9b464d92f79ead4b63ae8fa61dbfd74495c44ff6787

Contents?: true

Size: 647 Bytes

Versions: 41

Compression:

Stored size: 647 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
    customer_item_no { Faker::Alphanumeric.alpha(number: 10) }
    quantity { 100 }
    quantity_delivered { 0 }
    price { 50 }
    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 }
    po_reference { Faker::Alphanumeric.alpha(number: 10) }
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
comee_core-0.1.76 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.75 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.74 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.73 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.72 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.71 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.70 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.69 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.68 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.67 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.64 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.63 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.62 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.61 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.60 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.59 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.58 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.57 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.56 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.55 spec/factories/comee/core/sales_order_items.rb