From 389ecd47db3ba630724cee0aa1fa4ad1fd7db8e7 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Wed, 9 Jun 2010 01:18:43 +0100 Subject: [PATCH] Added totals to summary tables in service and supplier views --- views/service.haml | 2 ++ views/supplier.haml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/views/service.haml b/views/service.haml index 05fe24d..c4716a9 100644 --- a/views/service.haml +++ b/views/service.haml @@ -25,12 +25,14 @@ %table %tr %th.right Payments + %th.right Total £ %th.right Max £ %th.right Min £ %th.right Average £ %tr %td.right= @count + %td.right= sprintf("%0d", @total) %td.right= sprintf("%0d", @max) %td.right= sprintf("%0d", @min) %td.right= sprintf("%0d", @avg) diff --git a/views/supplier.haml b/views/supplier.haml index 1c6836b..da7adce 100644 --- a/views/supplier.haml +++ b/views/supplier.haml @@ -23,12 +23,14 @@ %table %tr %th.right Payments + %th.right Total £ %th.right Max £ %th.right Min £ %th.right Average £ %tr %td.right= @count + %td.right= sprintf("%0d", @total) %td.right= sprintf("%0d", @max) %td.right= sprintf("%0d", @min) %td.right= sprintf("%0d", @avg)