[freeside-commits] branch master updated. d88a4d4ce7b2852ee631164483d077783c048cba

Mitch Jackson mitch at freeside.biz
Thu Sep 20 11:21:29 PDT 2018


The branch, master has been updated
       via  d88a4d4ce7b2852ee631164483d077783c048cba (commit)
      from  8807939a466d20893efc5655e61ac38f891d6d05 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d88a4d4ce7b2852ee631164483d077783c048cba
Author: Mitch Jackson <mitch at freeside.biz>
Date:   Thu Sep 20 14:20:47 2018 -0400

    RT# 78547 Future autobill report - report totals

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>

-----------------------------------------------------------------------

Summary of changes:
 httemplate/search/future_autobill.html | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)




More information about the freeside-commits mailing list