Skip to content

Commit

Permalink
Merge pull request #1469 from sparc-request/kg-protocol_report
Browse files Browse the repository at this point in the history
KG - Hide Zeroes in Consolidated Request Report
  • Loading branch information
Stuart-Johnson committed Aug 8, 2018
2 parents 0765056 + 0bbfb50 commit a653c0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/dashboard/protocols/show.xlsx.axlsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ centered = wb.styles.add_style alignment: {horizontal: :center}
money = wb.styles.add_style :format_code => '$* #,##0.00_);[Red]-$*#,###.00;$* -??_;'
bold_money = wb.styles.add_style :format_code => '$#,##0.00_);[Red]-$#,###.00;$* -??_;', b: true
percent = wb.styles.add_style :num_fmt => 9, b: true, alignment: { horizontal: :left }
hide_zeros = wb.styles.add_style format_code: '#;[Red]-#;-;', alignment: { horizontal: :center }
row_header_style = wb.styles.add_style b: true
header_style = wb.styles.add_style sz: 12, b: true, bg_color: '0099FF', fg_color: 'FFFFFF', alignment: { horizontal: :left, wrap_text: true}
header_center_style = wb.styles.add_style sz: 12, b: true, bg_color: '0099FF', fg_color: 'FFFFFF', alignment: { horizontal: :center, wrap_text: true}
Expand Down Expand Up @@ -121,7 +122,7 @@ arm_totals_ref = {}

liv.ordered_visits.each_with_index do |visit, index|
line_item_row += [visit.research_billing_qty, visit.insurance_billing_qty]
@line_item_style_array += [centered, centered]
@line_item_style_array += [hide_zeros, hide_zeros]
end

total_sponsor_unit_costs_formula = "=#{negotiated_reimbursement_column + current_row.to_s}*(#{r_columns.join(current_row.to_s + '+') + current_row.to_s})"
Expand Down

0 comments on commit a653c0c

Please sign in to comment.