diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2017-10-17 14:22:19 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2017-10-17 14:22:19 -0700 |
| commit | dfbcb60e8b9207bd9aa7ebd297ff9d2599121bf5 (patch) | |
| tree | 71955c86e09289dddd636a1f54c091e2d52b3000 /httemplate/graph/elements/report.html | |
| parent | 929783d1045757abbe5c84ff2439547b0f8eca23 (diff) | |
| parent | 689738f7c234903160cbe23f337c11f8c0621f00 (diff) | |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'httemplate/graph/elements/report.html')
| -rw-r--r-- | httemplate/graph/elements/report.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/httemplate/graph/elements/report.html b/httemplate/graph/elements/report.html index b5d214816..70c3a9e94 100644 --- a/httemplate/graph/elements/report.html +++ b/httemplate/graph/elements/report.html @@ -249,7 +249,7 @@ any delimiter and linked from the elements in @data. % my $e = 0; % foreach ( @$data_row ) { % my $entry = $_; -% $entry = $money_char . sprintf($sprintf, $entry); +% $entry = $money_char . sprintf($sprintf_fields->{$row} ? $sprintf_fields->{$row} : $sprintf, $entry); % $entry = $link_prefix . shift(@$links) . "\">$entry</A>" if $link_prefix; % push @{$cell[$i]}, $entry; % $bottom_total[$e++] += $_ unless $opt{no_graph}[$i-1]; @@ -343,6 +343,7 @@ my $conf = new FS::Conf; my $money_char = $opt{'disable_money'} ? '' : $conf->config('money_char'); my @items = @{ $opt{'items'} }; +my $sprintf_fields = $opt{'sprintf_fields'}; foreach my $other (qw( col_labels row_labels graph_labels axis_labels colors links )) { if ( ref($opt{$other}) eq 'HASH' ) { |
