blob: 47bdbfb7cac1d5d6ce2dcf6e5c3bcb2dce3e37db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
<table>
<tr>
<td>
<table>
<tr><td><%= $notes %></td></tr>
</table>
</td>
<td>
<table class="invoice_summary">
<tr><th colspan=2><br></th></tr>
<tr>
<td><b><u><br>Summary of Previous Balance and Payments<br></u></b></td>
<td></td>
</tr>
<tr>
<td><b>Previous Balance</b></td>
<td align="right"><b><%= $dollar.$true_previous_balance %></b></td>
</tr>
<tr>
<td><b>Payments</b></td>
<th align="right"><b><%= $dollar.$balance_adjustments %></b></th>
</tr>
<tr>
<td><b>Balance Outstanding</b></td>
<td align="right"><b><%= $dollar.sprintf('%.2f', $true_previous_balance - $balance_adjustments) %></b></td>
</tr>
<tr><th colspan=2><br></th></tr>
<tr><td colspan=2><br></td></tr>
<tr>
<td><b><u>Summary of New Charges</u></b></td>
<td></td>
</tr>
<tr><td colspan=2><br></td></tr>
<%=
my $last = $summary_subtotals[-1];
foreach my $section (@summary_subtotals) {
$OUT .= '<tr><td><b>'. ($section->{'description'} ? $section->{'description'} : 'Charges' ). '</b></td>';
my $celltype = ($last == $section) ? 'th' : 'td';
$OUT .= qq(<$celltype align="right"><b>). $section->{'subtotal'}. "</b></$celltype></tr>";
}
%>
<tr>
<td><b>New Charges Total</b></td>
<td align="right"><b><%= $dollar.$current_less_finance %></b></td>
</tr>
<tr><th colspan=2><br></th></tr>
<tr><td colspan=2><br></td></tr>
<tr>
<td><b><u>Invoice Summary</u></b></td>
<td></td>
</tr>
<tr><td colspan=2><br></td></tr>
<tr>
<td><b>Previous Past Due Charges</b></td>
<td align="right"><b><%= $dollar.sprintf('%.2f', $true_previous_balance - $balance_adjustments) %></b></td>
</tr>
<tr>
<td><b>Finance charges on overdue amount</b></td>
<td align="right"><b><%= $dollar.$finance_amount %></b></td>
</tr>
<tr>
<td><b>New Charges</b></td>
<th align="right"><b><%= $dollar.$current_less_finance %></b></th>
</tr>
<%=
#false laziness w/invoice_latexsummary and above
foreach my $section ( grep $_->{adjust_section}, @sections) {
$OUT .= '<tr><td><b>'. ($section->{'description'} ? $section->{'description'} : 'Charges' ). '</b></td>';
$OUT .= qq(<th align="right"><b>). $section->{'subtotal'}. "</b></th></tr>";
}
%>
<tr>
<td><b>Total Amount Due</b></td>
<td align="right"><b><%= $dollar.sprintf('%.2f', $balance) %></b></td>
</tr>
<tr><th colspan=2><br></th></tr>
</table>
</td>
</tr>
</table>
|