X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_tax-xls.cgi;h=d0ef434f48354c86cc239bb715861b7fb8b1dce0;hp=7b936b7294c143c1dd540f33df6b35ddf1336bda;hb=642f5b08d9e9ac63252d07523d8f04b9e09752c2;hpb=c7560e90bea5f1450cf66254468d427b854c83c4 diff --git a/httemplate/search/report_tax-xls.cgi b/httemplate/search/report_tax-xls.cgi index 7b936b729..d0ef434f4 100755 --- a/httemplate/search/report_tax-xls.cgi +++ b/httemplate/search/report_tax-xls.cgi @@ -99,13 +99,30 @@ my %formatdef = ( valign => 'vcenter', bold => 1, }, + rowhead_outside => { + size => 11, + align => 'left', + valign => 'vcenter', + bg_color => 'gray', + bold => 1, + italic => 1, + }, + currency_outside => { + size => 11, + align => 'right', + valign => 'vcenter', + bg_color => 'gray', + italic => 1, + num_format=> 8, # ($#,##0.00_);[Red]($#,##0.00) + }, + ); my %default = ( font => 'Calibri', border => 1, ); my @widths = ( #ick - 18, (13) x 5, 3, 7.5, 3, 11, 11, 3, 11, 3, 11 + 30, (13) x 5, 3, 7.5, 3, 11, 11, 3, 11, 3, 11 ); my @format = ( {}, {}, {} ); # white row, gray row, yellow (totals) row @@ -195,6 +212,15 @@ foreach my $row (@rows) { $prev_row = $row; } +# at the end of everything +if ( $report->{outside} > 0 ) { + my $f = $format[0]; + $ws->set_row($y, 30); # height + $ws->write($y, 0, mt('Out of taxable region'), $f->{rowhead_outside}); + $ws->write($y, 1, $report->{outside}, $f->{currency_outside}); + $y++; +} + # ewwwww... for my $x (0..scalar(@widths)-1) { $ws->set_column($x, $x, $widths[$x]);