From 947c1f964f1304242f8a6ffabacccf040f1d505e Mon Sep 17 00:00:00 2001 From: jeff Date: Mon, 5 Oct 2009 00:49:34 +0000 Subject: leading summary page invoices #RT5086 --- conf/invoice_htmlsummary | 74 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 conf/invoice_htmlsummary (limited to 'conf/invoice_htmlsummary') diff --git a/conf/invoice_htmlsummary b/conf/invoice_htmlsummary new file mode 100644 index 000000000..b158478e1 --- /dev/null +++ b/conf/invoice_htmlsummary @@ -0,0 +1,74 @@ + + + + + +
+ + +
<%= $notes %>
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + <%= + 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 ) { + $OUT .= ''; + my $celltype = ($last == $section) ? 'th' : 'td'; + $OUT .= qq(<$celltype align="right">). $section->{'subtotal'}. ""; + } + %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + +


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


Summary of New Charges

'. ($section->{'description'} ? $section->{'description'} : 'Charges' ). '
New Charges Total<%= $dollar.$current_less_finance %>


Invoice Summary

Previous Past Due Charges<%= $dollar.sprintf('%.2f', $true_previous_balance - $balance_adjustments) %>
Finance charges on overdue amount<%= $dollar.$finance_amount %>
New Charges<%= $dollar.$current_less_finance %>
Total Amount Due<%= $dollar.sprintf('%.2f', $true_previous_balance + $current_charges - $balance_adjustments) %>

+
-- cgit v1.2.1