diff options
author | Mark Wells <mark@freeside.biz> | 2015-10-26 23:44:19 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-10-26 23:44:19 -0700 |
commit | 3a2b8908272ca64add0522d1e6536fa011b3ef9b (patch) | |
tree | 5fcd4410f31e2afca3a30f03995a17dd349fbfc3 /httemplate/search/report_tax.cgi | |
parent | 018b487f771a0713a5ee2b8b3f0658d87261dbec (diff) |
show "out of taxable region" credits on tax report, #37088
Diffstat (limited to 'httemplate/search/report_tax.cgi')
-rw-r--r-- | httemplate/search/report_tax.cgi | 27 |
1 files changed, 24 insertions, 3 deletions
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 </TBODY> -% if ( $report->{outside} > 0 ) { +% if ( $report->{out_sales} > 0 ) { <TBODY CLASS="total" STYLE="background-color: #cccccc; line-height: 3"> <TR> <TD CLASS="rowhead"> @@ -175,7 +175,7 @@ TD.rowhead { font-weight: bold; text-align: left; padding: 0px 3px } </TD> <TD STYLE="text-align: right"> <A HREF="<% $saleslink %>;out=1;taxname=<% encode_entities($params{'taxname'}) %>"> - <% $money_sprintf->( $report->{outside } ) %> + <% $money_sprintf->( $report->{out_sales } ) %> </A> </TD> <TD COLSPAN=0></TD> @@ -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'}); + <TBODY CLASS="total" STYLE="background-color: #cccccc; line-height: 3"> + <TR> + <TD CLASS="rowhead"> + <% emt('Out of taxable region') %> + </TD> + <TD STYLE="text-align: right"> + <A HREF="<% $creditlink %>"> + <% $money_sprintf->( $report->{out_credit } ) %> + </A> + </TD> + <TD COLSPAN=0></TD> + </TR> + </TBODY> +% } </TBODY> </TABLE> |