Sha256: 52cbf05c7176914fb8983746537f80530b202befff67519a6e06425e78fd0a05

Contents?: true

Size: 557 Bytes

Versions: 239

Compression:

Stored size: 557 Bytes

Contents

FactoryBot.define do
  factory :back_order, class: "Comee::Core::BackOrder" do
    order_number { Faker::Alphanumeric.alpha(number: 10) }
    order_date { Date.current }
    delivery_date { Date.current.advance(months: 1) }
    supplier
    terms { {payment_terms: "NET 30 days", currency: "Euro", freight_terms: "FOB"} }
    delivery_address { Faker::Address.full_address }
    invoice_address { Faker::Address.full_address }
    status { Comee::Core::BackOrder.statuses[:draft] }
    price_changed { false }
    remark { Faker::Lorem.sentence }
  end
end

Version data entries

239 entries across 239 versions & 1 rubygems

Version Path
comee_core-0.1.39 spec/factories/comee/core/back_orders.rb
comee_core-0.1.38 spec/factories/comee/core/back_orders.rb
comee_core-0.1.37 spec/factories/comee/core/back_orders.rb
comee_core-0.1.36 spec/factories/comee/core/back_orders.rb
comee_core-0.1.35 spec/factories/comee/core/back_orders.rb
comee_core-0.1.34 spec/factories/comee/core/back_orders.rb
comee_core-0.1.33 spec/factories/comee/core/back_orders.rb
comee_core-0.1.32 spec/factories/comee/core/back_orders.rb
comee_core-0.1.31 spec/factories/comee/core/back_orders.rb
comee_core-0.1.30 spec/factories/comee/core/back_orders.rb
comee_core-0.1.29 spec/factories/comee/core/back_orders.rb
comee_core-0.1.28 spec/factories/comee/core/back_orders.rb
comee_core-0.1.27 spec/factories/comee/core/back_orders.rb
comee_core-0.1.26 spec/factories/comee/core/back_orders.rb
comee_core-0.1.25 spec/factories/comee/core/back_orders.rb
comee_core-0.1.24 spec/factories/comee/core/back_orders.rb
comee_core-0.1.23 spec/factories/comee/core/back_orders.rb
comee_core-0.1.22 spec/factories/comee/core/back_orders.rb
comee_core-0.1.21 spec/factories/comee/core/back_orders.rb