Skip to content

Instantly share code, notes, and snippets.

@8vius
Created September 3, 2018 16:28
Show Gist options
  • Save 8vius/1fe24620233e00054fd2ac27c20cc8fc to your computer and use it in GitHub Desktop.
Save 8vius/1fe24620233e00054fd2ac27c20cc8fc to your computer and use it in GitHub Desktop.
Cost Report view
%h5 PORTFOLIO COST REPORT
%table.report
%thead.print
.nobreak
%tr
%th(colspan=2 style="text-align: left; width:16% !important") Project Name
%th
Baseline Budget
%th
Revisions<br>to Budget
%th
Approved Budget
%th Contracts&nbsp;or Purchase&nbsp;Orders
%th Change Orders or Revisions
%th Estimated<br>Additional&nbsp;Costs
%th Estimated<br>Final Cost
%th Budget Variance
%th Previous Draw Amounts
%th Current Draw Amount
%th Total Draw Amounts
%th Balance Remaining
%tbody
- report.rows.each do |row|
.nobreak
%tr
%td.left(colspan=2 title="#{row.project_name}" style="text-align: left; width:16% !important")
= row.project_name
= render "reports/portfolio_cost_report_row", rows: [row]
%table.report(style="border-width: 0")
%tbody.project-total
.nobreak
%tr(style="border-top: 4px double black")
%th(colspan=2 style="text-align: left; width:16% !important") PROJECT TOTAL
= render "reports/portfolio_cost_report_row", rows: report.rows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment