[freeside-commits] branch master updated. b0798c516cf4e20fdb8eb949519d992122fcec3f

Ivan ivan at 420.am
Wed Jun 6 13:37:23 PDT 2012


The branch, master has been updated
       via  b0798c516cf4e20fdb8eb949519d992122fcec3f (commit)
      from  37805051fb90d22813cd3f5ad3995f92acdd9a72 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b0798c516cf4e20fdb8eb949519d992122fcec3f
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Jun 6 13:37:19 2012 -0700

    show one decimal place in duration summary format, RT#18000

diff --git a/FS/FS/detail_format/sum_duration_prefix.pm b/FS/FS/detail_format/sum_duration_prefix.pm
index d70ad0e..65959cc 100644
--- a/FS/FS/detail_format/sum_duration_prefix.pm
+++ b/FS/FS/detail_format/sum_duration_prefix.pm
@@ -71,7 +71,7 @@ sub finish {
       $prefix,
       map({ 
           $_->{count},
-          (int($_->{duration}/60) . ' min'),
+          sprintf('%.01f min',$_->{duration}/60),
         } @subtotals ),
       $self->money_char . sprintf('%.02f',$total_amount),
     );

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/detail_format/sum_duration_prefix.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)




More information about the freeside-commits mailing list