X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=conf%2Finvoice_htmlsummary;h=c07d7e229a4fd96fe9f65992a5bdfc1009487504;hp=b158478e1441a2d5ee5d7b8eedca3143f6cea31f;hb=51c0d6572357ba4d7c11a11e7ff506428c1cc045;hpb=b5c4237a34aef94976bc343c8d9e138664fc3984 diff --git a/conf/invoice_htmlsummary b/conf/invoice_htmlsummary index b158478e1..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)} reverse @sections; - - foreach my $section ( grep { $_->{tax_section} || !$_->{summarized} and !($finance_section && $_->{'description'} eq $finance_section)} @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) %>