typeset CDRs into 5 columns on invoices
[freeside.git] / conf / invoice_latex
index 6a81c4c..e43fc3e 100644 (file)
@@ -242,10 +242,15 @@ Terms: [@-- $terms --@]\\
       $OUT .= '\FSdesc{' . $line->{'ref'} . '}{' . $line->{'description'} . '}' .\r
               '{' . $line->{'amount'} . "}${rowbreak}\n";\r
 \r
-      foreach my $ext_desc (@$ext_description) {\r
-        $ext_desc = substr($ext_desc, 0, 80) . '...'\r
-          if (length($ext_desc) > 80);\r
-        $OUT .= '\FSextdesc{' . $ext_desc . '}' . "${rowbreak}\n";\r
+      if (@$ext_description) {\r
+        $OUT .= '\multicolumn{1}{l}{\rule{0pt}{1.0ex}} &';\r
+        $OUT .= '\multicolumn{2}{l}{\begin{tabular}{lllll}'; %%cheating at 5\r
+        foreach my $ext_desc (@$ext_description) {\r
+          $ext_desc = substr($ext_desc, 0, 80) . '...'\r
+            if (length($ext_desc) > 80);\r
+          $OUT .= '\small{' . $ext_desc . '}' . "\\\\${rowbreak}\n";\r
+        }\r
+        $OUT .="\\end{tabular}}\\\\${rowbreak}\n";\r
       }\r
 \r
     }\r