Browse Source

Added totals to summary tables in service and supplier views

pull/3/head
Adrian Short 14 years ago
parent
commit
389ecd47db
2 changed files with 4 additions and 0 deletions
  1. +2
    -0
      views/service.haml
  2. +2
    -0
      views/supplier.haml

+ 2
- 0
views/service.haml View File

@@ -25,12 +25,14 @@
%table %table
%tr %tr
%th.right Payments %th.right Payments
%th.right Total £
%th.right Max £ %th.right Max £
%th.right Min £ %th.right Min £
%th.right Average £ %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", @max)
%td.right= sprintf("%0d", @min) %td.right= sprintf("%0d", @min)
%td.right= sprintf("%0d", @avg) %td.right= sprintf("%0d", @avg)


+ 2
- 0
views/supplier.haml View File

@@ -23,12 +23,14 @@
%table %table
%tr %tr
%th.right Payments %th.right Payments
%th.right Total £
%th.right Max £ %th.right Max £
%th.right Min £ %th.right Min £
%th.right Average £ %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", @max)
%td.right= sprintf("%0d", @min) %td.right= sprintf("%0d", @min)
%td.right= sprintf("%0d", @avg) %td.right= sprintf("%0d", @avg)


Loading…
Cancel
Save