Sha256: a3e98d1cc064c5536a60afe76a60e5dd65f08525010abd6158c305537520f216
Contents?: true
Size: 534 Bytes
Versions: 99
Compression:
Stored size: 534 Bytes
Contents
FactoryBot.define do factory :supplier_invoice, class: "Comee::Core::SupplierInvoice" do purchase_order invoice_no { Faker::Alphanumeric.alpha(number: 8) } description { Faker::Lorem.sentence } date_issued { Date.current } total_price { 0 } amount_paid { 0 } status { Comee::Core::SupplierInvoice.statuses[:draft] } payment_status { Comee::Core::SupplierInvoice.payment_statuses[:not_paid] } trait :approved do status { Comee::Core::SupplierInvoice.statuses[:approved] } end end end
Version data entries
99 entries across 99 versions & 1 rubygems