Sha256: 67b315615443d4910359c21cf4d527bc7600a535766eb63c372aa8005bba8ba8

Contents?: true

Size: 430 Bytes

Versions: 10

Compression:

Stored size: 430 Bytes

Contents

FactoryBot.define do
  factory :purchase_order, class: "Comee::Core::PurchaseOrder" do
    po_number { nil }
    order_reference { Faker::Alphanumeric.alpha(number: 8) }
    supplier
    order_date { Date.current }
    status { 0 }
    delivery_address { "Korsu warehouse address" }
    delivery_date { Date.current.advance(days: 10) }
    terms { Faker::Lorem.sentence }
    discount { 0 }
    confirmed_discount { 0 }
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
comee_core-0.3.62 spec/factories/comee/core/purchase_orders.rb
comee_core-0.3.61 spec/factories/comee/core/purchase_orders.rb
comee_core-0.3.60 spec/factories/comee/core/purchase_orders.rb
comee_core-0.3.59 spec/factories/comee/core/purchase_orders.rb
comee_core-0.3.58 spec/factories/comee/core/purchase_orders.rb
comee_core-0.3.57 spec/factories/comee/core/purchase_orders.rb
comee_core-0.3.56 spec/factories/comee/core/purchase_orders.rb
comee_core-0.3.55 spec/factories/comee/core/purchase_orders.rb
comee_core-0.3.54 spec/factories/comee/core/purchase_orders.rb
comee_core-0.3.53 spec/factories/comee/core/purchase_orders.rb