Sha256: 3b72ca5291a72aebd65ca56c4655aea3f2ffefead4d85090e0099601adca570b

Contents?: true

Size: 534 Bytes

Versions: 92

Compression:

Stored size: 534 Bytes

Contents

FactoryBot.define do
  factory :invoice, class: "Comee::Core::Invoice" do
    invoice_no { Faker::Alphanumeric.alpha(number: 8) }
    sales_order
    date_issued { Date.current }
    ship_name { Faker::Name.name }
    delivery_date { Date.current.advance(days: -7) }
    voyage_no { Faker::Alphanumeric.alpha(number: 10) }
    additional_charges { 0 }
    total_price { 0 }
    payment_term { Faker::Lorem.sentence }
    notifications_sent { 0 }
    status { Comee::Core::Invoice.statuses[:draft] }
    payment_status { 0 }
  end
end

Version data entries

92 entries across 92 versions & 1 rubygems

Version Path
comee_core-0.2.1 spec/factories/comee/core/invoices.rb
comee_core-0.2.0 spec/factories/comee/core/invoices.rb
comee_core-0.1.99 spec/factories/comee/core/invoices.rb
comee_core-0.1.98 spec/factories/comee/core/invoices.rb
comee_core-0.1.97 spec/factories/comee/core/invoices.rb
comee_core-0.1.96 spec/factories/comee/core/invoices.rb
comee_core-0.1.95 spec/factories/comee/core/invoices.rb
comee_core-0.1.94 spec/factories/comee/core/invoices.rb
comee_core-0.1.93 spec/factories/comee/core/invoices.rb
comee_core-0.1.92 spec/factories/comee/core/invoices.rb
comee_core-0.1.91 spec/factories/comee/core/invoices.rb
comee_core-0.1.90 spec/factories/comee/core/invoices.rb
comee_core-0.1.89 spec/factories/comee/core/invoices.rb
comee_core-0.1.88 spec/factories/comee/core/invoices.rb
comee_core-0.1.87 spec/factories/comee/core/invoices.rb
comee_core-0.1.86 spec/factories/comee/core/invoices.rb
comee_core-0.1.85 spec/factories/comee/core/invoices.rb
comee_core-0.1.84 spec/factories/comee/core/invoices.rb
comee_core-0.1.83 spec/factories/comee/core/invoices.rb
comee_core-0.1.82 spec/factories/comee/core/invoices.rb