X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Ffuture_autobill.html;h=2e723ec79d025d281cc8818e51b288800e73fb76;hb=d88a4d4ce7b2852ee631164483d077783c048cba;hp=3385dd88015ec99e7957f6b70a05dea277a350f7;hpb=dcf1ad84924e58127a42e0c905e940eb4e076ac7;p=freeside.git diff --git a/httemplate/search/future_autobill.html b/httemplate/search/future_autobill.html index 3385dd880..2e723ec79 100644 --- a/httemplate/search/future_autobill.html +++ b/httemplate/search/future_autobill.html @@ -35,6 +35,36 @@ there will be 1,400 billing and payment cycles simulated suppress_header => $job ? 1 : 0, suppress_footer => $job ? 1 : 0, &> +% if ( %pmt_type_subtotal ) { + + + + +% for my $pmt_type ( sort keys %pmt_type_subtotal ) { + + + + +% } +% if ( keys %pmt_type_subtotal > 1 ) { +% $pmt_type_subtotal{Total} += $_ for values %pmt_type_subtotal; + + + + +
+ Summary +
+ <% sprintf '$%.2f', $pmt_type_subtotal{ $pmt_type } %> + + <% $pmt_type |h %> +
+ <% sprintf( '$%.2f', $pmt_type_subtotal{Total} ) %> + + Total +
+% } +% } <%init> use DateTime; @@ -134,6 +164,7 @@ there will be 1,400 billing and payment cycles simulated my $fakebill_time = time(); my %abreport; my @rows; + my %pmt_type_subtotal; local $@; local $SIG{__DIE__}; @@ -239,6 +270,9 @@ there will be 1,400 billing and payment cycles simulated ] }; + $pmt_type_subtotal{ $cust_pay->paycardtype || $cust_pay-> payby } + += $cust_pay->paid; + } # /foreach payment # Roll back database at the end of each customer