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.96 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.95 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.94 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.93 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.92 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.91 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.90 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.89 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.88 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.87 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.86 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.85 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.84 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.83 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.82 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.81 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.80 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.79 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.78 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.77 spec/factories/comee/core/sales_order_items.rb