X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=conf%2Finvoice_htmlsummary;h=c07d7e229a4fd96fe9f65992a5bdfc1009487504;hp=a6ea1e9e31b94e95b77a56cce912cd051e3e4512;hb=51c0d6572357ba4d7c11a11e7ff506428c1cc045;hpb=54a357b171aa44f9399b4c146acd2afd3b686075 diff --git a/conf/invoice_htmlsummary b/conf/invoice_htmlsummary index a6ea1e9e3..c07d7e229 100644 --- a/conf/invoice_htmlsummary +++ b/conf/invoice_htmlsummary @@ -9,41 +9,22 @@ - + - - - - - - - - - + - - <%= - my ($last) = grep { $_->{tax_section} || !$_->{summarized} and !($finance_section && $_->{'description'} eq $finance_section) and $_->{'description'} !~ /^\d+ $/ } reverse @sections; - - #false laziness w/invoice_latexsummary - foreach my $section ( - grep { - $_->{tax_section} || !$_->{summarized} - and ! $_->{adjust_section} - and !($finance_section && $_->{'description'} eq $finance_section) - and $_->{'description'} !~ /^\d+ $/ - } - @sections - ) { + <%= + my $last = $summary_subtotals[-1]; + foreach my $section (@summary_subtotals) { $OUT .= ''; my $celltype = ($last == $section) ? 'th' : 'td'; $OUT .= qq(<$celltype align="right">). $section->{'subtotal'}. ""; @@ -57,12 +38,11 @@ - - + @@ -70,18 +50,16 @@ - + - - <%= - - #false laziness w/invoice_latexsummary and above - foreach my $section ( grep $_->{adjust_section}, @sections) { - $OUT .= ''; - $OUT .= qq("; - } - %> - + <%= if ( $balance_adjustments > 0 ) { + $OUT .= " + + + + + "; + } %>


Summary of Previous Balance and Payments

Summary of Previous Balance
Previous Balance<%= $dollar.$true_previous_balance %>
Payments<%= $dollar.$balance_adjustments %>
Balance Outstanding<%= $dollar.sprintf('%.2f', $true_previous_balance - $balance_adjustments) %><%= "${dollar}${true_previous_balance}" %>


Summary of New Charges

'. ($section->{'description'} ? $section->{'description'} : 'Charges' ). '

Invoice Summary

Previous Past Due Charges<%= $dollar.sprintf('%.2f', $true_previous_balance - $balance_adjustments) %><%= $dollar.$true_previous_balance %>
Finance charges on overdue amount
New Charges<%= $dollar.$current_less_finance %><%= $dollar.$current_less_finance %>
'. ($section->{'description'} ? $section->{'description'} : 'Charges' ). '). $section->{'subtotal'}. "
Payments and Credits-$dollar" . sprintf('%.2f', $balance_adjustments). "
Total Amount Due <%= $dollar.sprintf('%.2f', $balance) %>