mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-11 05:54:15 +01:00
17 lines
377 B
Ruby
17 lines
377 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Represents a due date and the associated amount for a PaymentSchedule
|
|
class PaymentScheduleItem < Footprintable
|
|
belongs_to :payment_schedule
|
|
belongs_to :invoice
|
|
after_create :chain_record
|
|
|
|
def first?
|
|
payment_schedule.ordered_items.first == self
|
|
end
|
|
|
|
def self.columns_out_of_footprint
|
|
%w[invoice_id stp_invoice_id]
|
|
end
|
|
end
|