diff options
| author | Mitch Jackson <mitch@freeside.biz> | 2018-09-20 14:20:47 -0400 |
|---|---|---|
| committer | Mitch Jackson <mitch@freeside.biz> | 2018-09-20 14:21:57 -0400 |
| commit | af172030b12bc994d91e02b12883d2e67151996c (patch) | |
| tree | f76aaf02e5438c92f5e5b50d7094f2d47270a90a | |
| parent | edef3cc1226f64506d2bbc92e2a3dc0507e77b81 (diff) | |
RT# 78547 Future autobill report - report totals
| -rw-r--r-- | httemplate/search/future_autobill.html | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/httemplate/search/future_autobill.html b/httemplate/search/future_autobill.html index 8f59d71db..2e723ec79 100644 --- a/httemplate/search/future_autobill.html +++ b/httemplate/search/future_autobill.html @@ -52,16 +52,18 @@ there will be 1,400 billing and payment cycles simulated </td> </tr> % } -% $pmt_type_subtotal{Total} += $_ for values %pmt_type_subtotal; - <tr class="gridreport" style="border-top: solid 1px #999;"> - <td class="gridreport" style="text-align: right; margin-right: 1em; border-top: solid 1px #666;"> - <% sprintf( '$%.2f', $pmt_type_subtotal{Total} ) %> - </td> - <td class="gridreport" style="border-top: solid 1px #666;"> - Total - </td> - </tr> - </table> +% if ( keys %pmt_type_subtotal > 1 ) { +% $pmt_type_subtotal{Total} += $_ for values %pmt_type_subtotal; + <tr class="gridreport" style="border-top: solid 1px #999;"> + <td class="gridreport" style="text-align: right; margin-right: 1em; border-top: solid 1px #666;"> + <% sprintf( '$%.2f', $pmt_type_subtotal{Total} ) %> + </td> + <td class="gridreport" style="border-top: solid 1px #666;"> + Total + </td> + </tr> + </table> +% } % } <%init> |
