FactoryBot.define do factory :supplier, class: "Comee::Core::Supplier" do sequence(:code) { |n| "#{Faker::Alphanumeric.alpha(number: 8)}-#{n}" } name { Faker::Name.name } address { Faker::Address.full_address } locale { "en" } payment_terms { Faker::Lorem.word } vat_number { Faker::Alphanumeric.alpha(number: 8) } tax_code { Faker::Alphanumeric.alpha(number: 8) } user currency end end