X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=conf%2Finvoice_latexsummary;h=bd4ea6975aa140de8ab0a23df4c6f8a557ccb19e;hb=f6a21d8aa8eb308a3764515297b32562888a46e1;hp=4e4f62bf8f18121a8b2295a98f87181c78103259;hpb=76a1ecdb1b69fa83a8385adc4a50ac243096c994;p=freeside.git diff --git a/conf/invoice_latexsummary b/conf/invoice_latexsummary index 4e4f62bf8..bd4ea6975 100644 --- a/conf/invoice_latexsummary +++ b/conf/invoice_latexsummary @@ -21,7 +21,7 @@ \textbf{\underline{Summary of New Charges}} & \\ &\\ [@-- - foreach my $section ( grep { $_->{tax_section} || !$_->{summarized} and !($finance_section && $_->{'description'} eq $finance_section) and $_->{'description'} !~ /^\d+ $/ } @sections ) { + foreach my $section (@summary_subtotals) { $OUT .= '\textbf{'. ($section->{'description'} ? $section->{'description'} : 'Charges' ). '}'; $OUT .= '&\textbf{'. $section->{'subtotal'}. '}\\\\'; } @@ -36,10 +36,20 @@ \textbf{Previous Past Due Charges}&\textbf{\dollar[@-- sprintf('%.2f', $true_previous_balance - $balance_adjustments) --@]}\\ \textbf{Finance charges on overdue amount}&\textbf{\dollar[@-- $finance_amount --@]}\\ \textbf{New Charges}&\textbf{\dollar[@-- $current_less_finance --@]}\\ + +[@-- + #false laziness w/invoice_htmlsummary and above + foreach my $section ( grep $_->{adjust_section}, @sections ) { + $OUT .= '\textbf{'. ($section->{'description'} ? $section->{'description'} : 'Charges' ). '}'; + $OUT .= '&\textbf{'. $section->{'subtotal'}. '}\\\\'; + } +--@] + \cline{2-2} -\textbf{Total Amount Due}&\textbf{\dollar[@-- sprintf('%.2f', $true_previous_balance + $current_charges - $balance_adjustments) --@]}\\ +\textbf{Total Amount Due}&\textbf{\dollar[@-- sprintf('%.2f', $balance) --@]}\\ &\\ \hline \end{tabular} \end{minipage} \\ \end{tabular} +\newpage