Sha256: 9d39b5b4f80a3e0d60f12f1d090c8b2667af60ff9220306d76a887d7668a08a2
Contents?: true
Size: 749 Bytes
Versions: 6
Compression:
Stored size: 749 Bytes
Contents
FactoryBot.define do factory :invoice, class: "Comee::Core::Invoice" do invoice_no { nil } sales_order pod date_issued { Date.current } due_date { Date.current.advance(days: 10) } total_price { 0 } amount_paid { 0 } payment_term { Faker::Lorem.sentence } notifications_sent { 0 } status { Comee::Core::Invoice.statuses[:draft] } payment_status { Comee::Core::Invoice.payment_statuses[:not_paid] } association :invoice_address, factory: :client_address, address_type: Comee::Core::ClientAddress::INVOICING_ADDRESS trait :approved do status { Comee::Core::Invoice.statuses[:approved] } end trait :issued do status { Comee::Core::Invoice.statuses[:issued] } end end end
Version data entries
6 entries across 6 versions & 1 rubygems