X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_tax.cgi;fp=httemplate%2Fsearch%2Freport_tax.cgi;h=bbb3bc199ccf4af34e8bf9ab8c3604c9596ea002;hp=9e625c80f5e014923e1e4118ec297e54efaffd8c;hb=83a9d7e9afedfa270dcdf942df04fb50989afc4f;hpb=27f72f8225edc0d903ce534613ad037b7baf3bcf diff --git a/httemplate/search/report_tax.cgi b/httemplate/search/report_tax.cgi index 9e625c80f..bbb3bc199 100644 --- a/httemplate/search/report_tax.cgi +++ b/httemplate/search/report_tax.cgi @@ -167,7 +167,7 @@ TD.rowhead { font-weight: bold; text-align: left; padding: 0px 3px } % } # foreach my $row % # at the end of everything -% if ( $report->{outside} > 0 ) { +% if ( $report->{out_sales} > 0 ) { @@ -175,7 +175,7 @@ TD.rowhead { font-weight: bold; text-align: left; padding: 0px 3px } - <% $money_sprintf->( $report->{outside } ) %> + <% $money_sprintf->( $report->{out_sales } ) %> @@ -253,7 +253,28 @@ TD.rowhead { font-weight: bold; text-align: left; padding: 0px 3px } % $rownum++; % $prev_row = $row; % } # foreach my $row -% # no "out of taxable region" for credits (yet) +% # "out of taxable region" for credits (there is a need for it) +% if ( $report->{out_credit} > 0 ) { +% my $creditlink = "cust_credit_bill_pkg.html?out=1;$dateagentlink"; +% if ( $params{'credit_date'} eq 'cust_credit_bill' ) { +% $creditlink =~ s/begin/credit_begin/; +% $creditlink =~ s/end/credit_end/; +% } +% $creditlink .= ";taxname=" . encode_entities($params{'taxname'}); + + + + <% emt('Out of taxable region') %> + + + + <% $money_sprintf->( $report->{out_credit } ) %> + + + + + +% }