Merge branch 'master' of git.freeside.biz:/home/git/freeside
[freeside.git] / conf / invoice_latexsummary
1 \begin{tabular}{ll}
2 \begin{minipage}{6.4cm}
3 \begin{tabular}{m{0cm}m{6.4cm}}
4 \rule{0cm}{10cm}&\begin{minipage}{6cm}[@-- $notes --@]\end{minipage}\\
5 \end{tabular}
6 \end{minipage} &
7 \rule{2cm}{0cm}
8 \begin{minipage}{12.8cm}
9 \begin{tabular}{lr}
10 \hline
11 &\\
12 \textbf{\underline{Summary of Previous Balance and Payments}} & \\
13 &\\
14 \textbf{Previous Balance}&\textbf{\dollar[@-- $true_previous_balance --@]}\\
15 \textbf{Payments}&\textbf{\dollar[@-- $balance_adjustments --@]}\\
16 \cline{2-2}
17 \textbf{Balance Outstanding}&\textbf{\dollar[@-- sprintf('%.2f', $true_previous_balance -$balance_adjustments) --@]}\\
18 &\\
19 \hline
20 &\\
21 \textbf{\underline{Summary of New Charges}} & \\
22 &\\
23 [@--
24   foreach my $section (@summary_subtotals) {
25     $OUT .= '\textbf{'. ($section->{'description'} ? $section->{'description'} : 'Charges' ). '}';
26     $OUT .= '&\textbf{'. $section->{'subtotal'}. '}\\\\';
27   }
28   $OUT .= '\cline{2-2}';
29 --@]
30 \textbf{New Charges Total}&\textbf{\dollar[@-- $current_less_finance --@]}\\
31 &\\
32 \hline
33 &\\
34 \textbf{\underline{Invoice Summary}} & \\
35 & \\
36 \textbf{Previous Past Due Charges}&\textbf{\dollar[@-- sprintf('%.2f', $true_previous_balance - $balance_adjustments) --@]}\\
37 \textbf{Finance charges on overdue amount}&\textbf{\dollar[@-- $finance_amount --@]}\\
38 \textbf{New Charges}&\textbf{\dollar[@-- $current_less_finance --@]}\\
39
40 [@--
41   #false laziness w/invoice_htmlsummary and above
42   foreach my $section ( grep $_->{adjust_section}, @sections ) {
43     $OUT .= '\textbf{'. ($section->{'description'} ? $section->{'description'} : 'Charges' ). '}';
44     $OUT .= '&\textbf{'. $section->{'subtotal'}. '}\\\\';
45   }
46 --@]
47
48 \cline{2-2}
49 \textbf{Total Amount Due}&\textbf{\dollar[@-- sprintf('%.2f', $balance) --@]}\\
50 &\\
51 \hline
52 \end{tabular}
53 \end{minipage} \\
54 \end{tabular}
55 \newpage