summaryrefslogtreecommitdiff
path: root/conf/invoice_html
diff options
context:
space:
mode:
authorjeff <jeff>2008-05-19 04:07:45 +0000
committerjeff <jeff>2008-05-19 04:07:45 +0000
commit93810e2d18325d6f3b56cb3738d4400af69e6908 (patch)
treedf153b58bb9ab3a9bf6cd208d388240a3e3dbc45 /conf/invoice_html
parenta374e45e9ecbe5451e83dbb81f8873d2d909b2ac (diff)
backport voip_cdr's upstream_simple, and the columnization features
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 b13b08f46..ddede78ce 100644
--- a/conf/invoice_html
+++ b/conf/invoice_html
@@ -86,13 +86,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>';
}
}