Sha256: ae1c2c04d4b8dce4ff5b655bd372409c1ca011e260118c2ac52533ee50a389ca

Contents?: true

Size: 717 Bytes

Versions: 12

Compression:

Stored size: 717 Bytes

Contents

- url_params = {:controller => 'accounts', :action => 'show', :id => params[:account_id] || params[:id]}

%table.table.table-striped.bookings.collection
  %thead
    = render 'accounts/booking_list_header'
    - @saldo = @account.saldo(@carry_booking, false)
  %tbody
    = render 'accounts/carry_booking' unless @saldo == 0

    - for @booking in @bookings
      - amount = @booking.amount
      - amount = -(amount) if @account.is_liability_account?
      - @saldo -= amount if @booking.debit_account == @account
      - @saldo += amount if @booking.credit_account == @account
      = render 'accounts/booking_item'
  %tfoot
    = render 'accounts/booking_list_footer' unless @bookings.empty?
= paginate @bookings

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
has_accounts_engine-1.1.2 app/views/accounts/_show_bookings.html.haml
has_accounts_engine-1.1.1 app/views/accounts/_show_bookings.html.haml
has_accounts_engine-1.1.0 app/views/accounts/_show_bookings.html.haml
has_accounts_engine-1.0.4 app/views/accounts/_show_bookings.html.haml
has_accounts_engine-1.0.3 app/views/accounts/_show_bookings.html.haml
has_accounts_engine-1.0.2 app/views/accounts/_show_bookings.html.haml
has_accounts_engine-1.0.1 app/views/accounts/_show_bookings.html.haml
has_accounts_engine-1.0.0 app/views/accounts/_show_bookings.html.haml
has_accounts-0.20.1 app/views/accounts/_show_bookings.html.haml
has_accounts-0.20.0 app/views/accounts/_show_bookings.html.haml
has_accounts-0.19.1 app/views/accounts/_show_bookings.html.haml
has_accounts-0.19.0 app/views/accounts/_show_bookings.html.haml