X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=conf%2Finvoice_htmlsummary;h=c07d7e229a4fd96fe9f65992a5bdfc1009487504;hp=a06c8ffea841c164d966995559381078be5f0fc3;hb=51c0d6572357ba4d7c11a11e7ff506428c1cc045;hpb=fb4ab1073f0d15d660c6cdc4e07afebf68ef3924 diff --git a/conf/invoice_htmlsummary b/conf/invoice_htmlsummary index a06c8ffea..c07d7e229 100644 --- a/conf/invoice_htmlsummary +++ b/conf/invoice_htmlsummary @@ -9,32 +9,22 @@ - + - - - - - - - - - + - - <%= - my ($last) = grep { $_->{tax_section} || !$_->{summarized} and !($finance_section && $_->{'description'} eq $finance_section) and $_->{'description'} !~ /^\d+ $/ } reverse @sections; - - foreach my $section ( grep { $_->{tax_section} || !$_->{summarized} 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'}. ""; @@ -48,12 +38,11 @@ - - + @@ -61,11 +50,19 @@ - + + <%= 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 %>
Payments and Credits-$dollar" . sprintf('%.2f', $balance_adjustments). "
Total Amount Due<%= $dollar.sprintf('%.2f', $true_previous_balance + $current_charges - $balance_adjustments) %><%= $dollar.sprintf('%.2f', $balance) %>