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.1.24 spec/factories/comee/core/invoices.rb
comee_core-0.1.23 spec/factories/comee/core/invoices.rb
comee_core-0.1.22 spec/factories/comee/core/invoices.rb
comee_core-0.1.21 spec/factories/comee/core/invoices.rb
comee_core-0.1.20 spec/factories/comee/core/invoices.rb
comee_core-0.1.19 spec/factories/comee/core/invoices.rb
comee_core-0.1.18 spec/factories/comee/core/invoices.rb
comee_core-0.1.17 spec/factories/comee/core/invoices.rb
comee_core-0.1.16 spec/factories/comee/core/invoices.rb
comee_core-0.1.15 spec/factories/comee/core/invoices.rb
comee_core-0.1.14 spec/factories/comee/core/invoices.rb
comee_core-0.1.13 spec/factories/comee/core/invoices.rb