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

= render 'search_form'

= paginated_section @bookings, :params => url_params.merge(:query => params[:query]) do
  %table#booking_list.list.booking_list
    = render 'accounts/booking_list_header'
    - @saldo = @account.saldo(@carry_booking, false)

    = 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'

    = render 'accounts/booking_list_footer' unless @bookings.empty?

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

= paginated_section @bookings, :params => url_params.merge(:query => params[:query]) do
  %table#booking_list.list.booking_list
    = render 'accounts/booking_list_header'
    - @saldo = @account.saldo(@carry_booking, false)

    = 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'

    = render 'accounts/booking_list_footer' unless @bookings.empty?

Drop search form in account view.
Drop search form in account view.
