summaryrefslogtreecommitdiff
path: root/conf/invoice_html
diff options
context:
space:
mode:
authorjeff <jeff>2008-05-16 19:26:40 +0000
committerjeff <jeff>2008-05-16 19:26:40 +0000
commitdc3217c61d6a62a8e599d8804e05ba45b3224c7e (patch)
treeca40ad45e8f1d70cc20d76e58d6b2dbffa61e896 /conf/invoice_html
parent38a7453130448e067e77fbb6966630bca4cc765b (diff)
typeset CDRs into 5 columns on invoices
Diffstat (limited to 'conf/invoice_html')
-rw-r--r--conf/invoice_html16
1 files changed, 9 insertions, 7 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">-&nbsp;'. $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">-&nbsp;'. $ext_desc. '</td>'.
+ '</tr>'
+ }
+ $OUT .= '</table></td><td></td></tr>';
}
}