X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=conf%2Finvoice_htmlsummary;h=249db9b07d25fe67ee95c1e424d2a5271c9c0567;hp=a6ea1e9e31b94e95b77a56cce912cd051e3e4512;hb=11bbf29de447fe39e9d7155fe280a0df70fa8c3c;hpb=f3e0ac2b009c4edd5692cb587ff709dac2223ebe diff --git a/conf/invoice_htmlsummary b/conf/invoice_htmlsummary index a6ea1e9e3..249db9b07 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'}. ""; @@ -54,15 +35,23 @@ + + + + + + + + + - - + @@ -70,18 +59,18 @@ - + - - <%= - - #false laziness w/invoice_latexsummary and above + <%= foreach my $section ( grep $_->{adjust_section}, @sections) { $OUT .= ''; $OUT .= qq("; } %> - + + + +


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' ). '
<%= $dollar.$current_less_finance %>


Summary of Payments and Credits
Payments and Credits-<%= $dollar.$balance_adjustments %>


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) %>