|
@@ -19,24 +19,46 @@ |
|
|
%p.noprint.download |
|
|
%p.noprint.download |
|
|
%a{ :href => "/services/#{@service.slug}.csv" } |
|
|
%a{ :href => "/services/#{@service.slug}.csv" } |
|
|
Download data as CSV |
|
|
Download data as CSV |
|
|
|
|
|
|
|
|
|
|
|
%p |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%h3 Summary |
|
|
%h3 Summary |
|
|
|
|
|
|
|
|
%table |
|
|
%table |
|
|
%tr |
|
|
%tr |
|
|
%th.right Payments |
|
|
%th.right Payments |
|
|
%th.right Total £ |
|
|
|
|
|
%th.right Max £ |
|
|
|
|
|
%th.right Min £ |
|
|
|
|
|
%th.right Average £ |
|
|
|
|
|
|
|
|
%th.right Total |
|
|
|
|
|
%th.right Max |
|
|
|
|
|
%th.right Min |
|
|
|
|
|
%th.right Average |
|
|
|
|
|
|
|
|
%tr |
|
|
%tr |
|
|
%td.right= @count |
|
|
%td.right= @count |
|
|
%td.right= sprintf("%0d", @total) |
|
|
|
|
|
%td.right= sprintf("%0d", @max) |
|
|
|
|
|
%td.right= sprintf("%0d", @min) |
|
|
|
|
|
%td.right= sprintf("%0d", @avg) |
|
|
|
|
|
|
|
|
%td.right= sprintf("£%0d", @total) |
|
|
|
|
|
%td.right= sprintf("£%0d", @max) |
|
|
|
|
|
%td.right= sprintf("£%0d", @min) |
|
|
|
|
|
%td.right= sprintf("£%0d", @avg) |
|
|
|
|
|
|
|
|
|
|
|
%p |
|
|
|
|
|
|
|
|
|
|
|
%h3 Suppliers by Spend |
|
|
|
|
|
|
|
|
|
|
|
%table |
|
|
|
|
|
%tr |
|
|
|
|
|
%th Supplier |
|
|
|
|
|
%th Total £ |
|
|
|
|
|
%th Total % |
|
|
|
|
|
- for row in @results |
|
|
|
|
|
%tr |
|
|
|
|
|
%td |
|
|
|
|
|
%a{ :href => "/suppliers/#{row['supplier_slug']}" } |
|
|
|
|
|
= row['supplier_name'] |
|
|
|
|
|
%td.right= sprintf("%0d", row['total']) |
|
|
|
|
|
%td.right= sprintf("%0.1f", row['total'] / @total * 100) |
|
|
|
|
|
|
|
|
|
|
|
%p |
|
|
|
|
|
|
|
|
%h3 Payments to Suppliers |
|
|
%h3 Payments to Suppliers |
|
|
|
|
|
|
|
|
%table |
|
|
%table |
|
|