Class: InvoicePayment

Inherits:
Transaction show all
Defined in:
app/models/invoice_payment.rb

Instance Attribute Summary

Attributes inherited from Transaction

#account_from, #account_to, #amount

Instance Method Summary collapse

Methods inherited from Transaction

belongs_to_auxilliary_model, #completed?, #readonly?, required_auxilliary_model, #transaction_date

Instance Method Details

#pays_in_full?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'app/models/invoice_payment.rb', line 6

def pays_in_full?
  amount >= invoice.amount_billed
end