Sha256: 3b07de6831f954f62f8908f359cfb8e997103ed7c42b717831170e2d3380da97
Contents?: true
Size: 533 Bytes
Versions: 1
Compression:
Stored size: 533 Bytes
Contents
- bookings = Booking.by_reference(reference) - credit_accounts = bookings.select('credit_account_id').group('credit_account_id').map{|account| account.credit_account} - debit_accounts = bookings.select('debit_account_id').group('debit_account_id').map{|account| account.debit_account} - accounts = credit_accounts + debit_accounts - balance_accounts = accounts.uniq.select{|account| account.is_balance_account?} - for account in balance_accounts = render 'direct_bookings/show', :reference => resource, :direct_account => account
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bookyt-0.0.1 | app/views/direct_bookings/_show_all.html.haml |