|
2 | 2 | = current_facility |
3 | 3 |
|
4 | 4 | = content_for :sidebar do |
5 | | - = render :partial => 'admin/shared/sidenav_billing', :locals => { :sidenav_tab => "accounts_receivable" } |
| 5 | + = render "admin/shared/sidenav_billing", sidenav_tab: "accounts_receivable" |
6 | 6 |
|
7 | 7 | %h2= t(".head") |
8 | 8 |
|
9 | 9 | - if params[:show_all] |
10 | | - = link_to t(".show_with_balance", :model => Account.model_name.human.pluralize.downcase), facility_accounts_receivable_path |
| 10 | + = link_to t(".show_with_balance", model: Account.model_name.human.pluralize.downcase), facility_accounts_receivable_path |
11 | 11 | - else |
12 | | - = link_to t(".show_all", :model => Account.model_name.human.pluralize.downcase), facility_accounts_receivable_path(:show_all => '1') |
| 12 | + = link_to t(".show_all", model: Account.model_name.human.pluralize.downcase), facility_accounts_receivable_path(show_all: "1") |
13 | 13 |
|
14 | 14 | %table.table.table-striped.table-hover |
15 | 15 | %thead |
|
28 | 28 | - balance[61] = a.facility_balance(current_facility, today - 61*24*60*60) - balance.values.inject{|sum, n| sum + n } |
29 | 29 | - balance[31] = a.facility_balance(current_facility, today - 31*24*60*60) - balance.values.inject{|sum, n| sum + n } |
30 | 30 | - balance[0] = a.facility_balance(current_facility, today) - balance.values.inject{|sum, n| sum + n } |
31 | | - %tr{:class => (balance[91] > 0 ? "reconcile-warning" : "")} |
32 | | - %td= link_to a, facility_transactions_path(current_facility, :accounts => [a.id]) |
| 31 | + %tr{ class: (balance[91] > 0 ? "reconcile-warning" : "") } |
| 32 | + %td= link_to a, facility_transactions_path(current_facility, search: { accounts: [a.id] }) |
33 | 33 | %td.currency= number_to_currency(balance[0]) |
34 | 34 | %td.currency= number_to_currency(balance[31]) |
35 | 35 | %td.currency= number_to_currency(balance[61]) |
|
0 commit comments