diff options
author | jeff <jeff> | 2008-05-16 19:26:40 +0000 |
---|---|---|
committer | jeff <jeff> | 2008-05-16 19:26:40 +0000 |
commit | dc3217c61d6a62a8e599d8804e05ba45b3224c7e (patch) | |
tree | ca40ad45e8f1d70cc20d76e58d6b2dbffa61e896 /conf | |
parent | 38a7453130448e067e77fbb6966630bca4cc765b (diff) |
typeset CDRs into 5 columns on invoices
Diffstat (limited to 'conf')
-rw-r--r-- | conf/invoice_html | 16 | ||||
-rw-r--r-- | conf/invoice_latex | 13 |
2 files changed, 18 insertions, 11 deletions
diff --git a/conf/invoice_html b/conf/invoice_html index 9d97243e4..14b25c671 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -106,13 +106,15 @@ '<td align="right">'. $line->{'amount'}. '</td>'. '</tr>' ; - foreach my $ext_desc ( @{$line->{'ext_description'} } ) { - $OUT .= - '<tr class="invoice_extdesc">'. - '<td></td>'. - '<td align="left">- '. $ext_desc. '</td>'. - '<td></td>'. - '</tr>' + if ( @{$line->{'ext_description'} } ) { + $OUT .= '<tr class="invoice_extdesc"><td></td><td><table>'; + foreach my $ext_desc ( @{$line->{'ext_description'} } ) { + $OUT .= + '<tr class="invoice_extdesc">'. + '<td align="left">- '. $ext_desc. '</td>'. + '</tr>' + } + $OUT .= '</table></td><td></td></tr>'; } } diff --git a/conf/invoice_latex b/conf/invoice_latex index 6a81c4c2e..e43fc3eb0 100644 --- a/conf/invoice_latex +++ b/conf/invoice_latex @@ -242,10 +242,15 @@ Terms: [@-- $terms --@]\\ $OUT .= '\FSdesc{' . $line->{'ref'} . '}{' . $line->{'description'} . '}' .
'{' . $line->{'amount'} . "}${rowbreak}\n";
- foreach my $ext_desc (@$ext_description) {
- $ext_desc = substr($ext_desc, 0, 80) . '...'
- if (length($ext_desc) > 80);
- $OUT .= '\FSextdesc{' . $ext_desc . '}' . "${rowbreak}\n";
+ if (@$ext_description) {
+ $OUT .= '\multicolumn{1}{l}{\rule{0pt}{1.0ex}} &';
+ $OUT .= '\multicolumn{2}{l}{\begin{tabular}{lllll}'; %%cheating at 5
+ foreach my $ext_desc (@$ext_description) {
+ $ext_desc = substr($ext_desc, 0, 80) . '...'
+ if (length($ext_desc) > 80);
+ $OUT .= '\small{' . $ext_desc . '}' . "\\\\${rowbreak}\n";
+ }
+ $OUT .="\\end{tabular}}\\\\${rowbreak}\n";
}
}
|