blob: c07d7e229a4fd96fe9f65992a5bdfc1009487504 (
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
|
<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<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><th colspan=2><br></th></tr>
<tr><td colspan=2><br></td></tr>
<tr>
<td><b><u>Summary of New Charges</u></b></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>
</tr>
<tr><td colspan=2><br></td></tr>
<tr>
<td><b>Previous Past Due Charges</b></td>
<td align="right"><b><%= $dollar.$true_previous_balance %></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>
<td align="right"><b><%= $dollar.$current_less_finance %></b></td>
</tr>
<%= if ( $balance_adjustments > 0 ) {
$OUT .= "
<tr>
<td><b>Payments and Credits</b></td>
<th align='right'><b>-$dollar" . sprintf('%.2f', $balance_adjustments). "</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>
|