Sha256: 1606cdf93798dd80525d772fd4479c19ef2168332e543b6d2940ff5bcd7025e6

Contents?: true

Size: 550 Bytes

Versions: 76

Compression:

Stored size: 550 Bytes

Contents

FactoryBot.define do
  factory :shipment_item, class: "Comee::Core::ShipmentItem" do
    sales_order_item
    quantity { 50 }
    shipment_status { Comee::Core::ItemStatus::INITIALIZED }
    status { Comee::Core::ShipmentItem.statuses[:active] }
    handover_date { Date.current.advance(days: 3) }
    delivery_date { Date.current.advance(days: 6) }
    pallet_no { Faker::Alphanumeric.alpha(number: 10) }
    consignee { Faker::Name.name }
    order_number { sales_order_item.sales_order.order_number }
    package_type { "PX - Palette" }
  end
end

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
comee_core-0.3.62 spec/factories/comee/core/shipment_items.rb
comee_core-0.3.61 spec/factories/comee/core/shipment_items.rb
comee_core-0.3.60 spec/factories/comee/core/shipment_items.rb
comee_core-0.3.59 spec/factories/comee/core/shipment_items.rb
comee_core-0.3.58 spec/factories/comee/core/shipment_items.rb
comee_core-0.3.57 spec/factories/comee/core/shipment_items.rb
comee_core-0.3.56 spec/factories/comee/core/shipment_items.rb
comee_core-0.3.55 spec/factories/comee/core/shipment_items.rb
comee_core-0.3.54 spec/factories/comee/core/shipment_items.rb
comee_core-0.3.53 spec/factories/comee/core/shipment_items.rb
comee_core-0.3.51 spec/factories/comee/core/shipment_items.rb
comee_core-0.3.50 spec/factories/comee/core/shipment_items.rb
comee_core-0.3.49 spec/factories/comee/core/shipment_items.rb
comee_core-0.3.48 spec/factories/comee/core/shipment_items.rb
comee_core-0.3.47 spec/factories/comee/core/shipment_items.rb
comee_core-0.3.46 spec/factories/comee/core/shipment_items.rb
comee_core-0.3.45 spec/factories/comee/core/shipment_items.rb
comee_core-0.3.44 spec/factories/comee/core/shipment_items.rb
comee_core-0.3.43 spec/factories/comee/core/shipment_items.rb
comee_core-0.3.42 spec/factories/comee/core/shipment_items.rb