Sha256: 3f67a90eba1da55e0b0f30c0092f4c0d9dcd2837bde7f4f96577a79a2c24669e

Contents?: true

Size: 684 Bytes

Versions: 15

Compression:

Stored size: 684 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 }
    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 }
    po_reference { Faker::Alphanumeric.alpha(number: 10) }
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
comee_core-0.2.11 spec/factories/comee/core/sales_order_items.rb
comee_core-0.2.10 spec/factories/comee/core/sales_order_items.rb
comee_core-0.2.9 spec/factories/comee/core/sales_order_items.rb
comee_core-0.2.8 spec/factories/comee/core/sales_order_items.rb
comee_core-0.2.7 spec/factories/comee/core/sales_order_items.rb
comee_core-0.2.6 spec/factories/comee/core/sales_order_items.rb
comee_core-0.2.5 spec/factories/comee/core/sales_order_items.rb
comee_core-0.2.4 spec/factories/comee/core/sales_order_items.rb
comee_core-0.2.3 spec/factories/comee/core/sales_order_items.rb
comee_core-0.2.2 spec/factories/comee/core/sales_order_items.rb
comee_core-0.2.1 spec/factories/comee/core/sales_order_items.rb
comee_core-0.2.0 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.99 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.98 spec/factories/comee/core/sales_order_items.rb
comee_core-0.1.97 spec/factories/comee/core/sales_order_items.rb