anthonymidili/EasyKeep

View on GitHub
app/views/reports/_totals_for_quarter.html.haml

Summary

Maintainability
Test Coverage
.row
  .small-12.columns
    %h4= "#{active_date.year} - #{quarter_name} Quarter Income Report"
    %hr/

    %p
      = "Month of #{month_in_quarter_date(0).strftime('%B')}:"
      %b= number_to_currency(current_company.total_company_payments(:month, month_in_quarter_date(0)))
    %p
      = "Month of #{month_in_quarter_date(1).strftime('%B')}:"
      %b= number_to_currency(current_company.total_company_payments(:month, month_in_quarter_date(1)))
    %p
      = "Month of #{month_in_quarter_date(2).strftime('%B')}:"
      %b= number_to_currency(current_company.total_company_payments(:month, month_in_quarter_date(2)))

    = render 'totals'