backport voip_cdr's upstream_simple, and the columnization features
[freeside.git] / conf / invoice_latex
index c635145..ba66d64 100644 (file)
@@ -229,10 +229,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}{\small{\begin{tabular}{llllll}';#cheating at 6\r
+      foreach my $ext_desc (@$ext_description) {\r
+        $ext_desc = substr($ext_desc, 0, 80) . '...'\r
+          if (length($ext_desc) > 80);\r
+        $OUT .= "$ext_desc \\\\${rowbreak}\n";\r
+      }\r
+      $OUT .="\\end{tabular}}}\\\\${rowbreak}\n";\r
     }\r
 \r
   }\r