Sha256: 3f574636bbfefa10ee44db10f43a944bc1f7b61fa00babf789acd15b135857f1

Contents?: true

Size: 586 Bytes

Versions: 1

Compression:

Stored size: 586 Bytes

Contents

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

= paginate @bookings

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

    - for @booking in @bookings
      - amount = @booking.amount
      - amount = -(amount) if @account.liability_account?
      - @saldo += @booking.accounted_amount(@account)
      = render 'accounts/booking_item'
  %tfoot
    = render 'accounts/booking_list_footer'

= paginate @bookings

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
has_accounts_engine-3.0.0.beta13 app/views/accounts/_show_bookings.html.haml