Class: Illiad::AR::Transaction
- Defined in:
- lib/illiad/activerecord/transaction.rb
Instance Method Summary collapse
Instance Method Details
#charged? ⇒ Boolean
7 8 9 10 11 12 13 14 15 |
# File 'lib/illiad/activerecord/transaction.rb', line 7 def charged? status = read_attribute(:TransactionStatus) (status == 'Checked Out to Customer' or status == 'Renewal Denied' or status =~ /Renewed by Customer to .*/ or status =~ /Renewed by ILL Staff to .*/ or status == 'Awaiting Renewal OK Processing' or status == 'Loans Recalled from Patrons') ? true : false end |