X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=conf%2Finvoice_latex;h=34ae4cbebe8f903a350b496bdeebff3256ff1b7b;hb=36de6f6f3b7ec8cafc8f5247af750b331ee13a1b;hp=6a81c4c2e1e4d3ee515e3adb68564d2af3084e05;hpb=5e05724a635a22776f1b973f5d7e77989da4e048;p=freeside.git diff --git a/conf/invoice_latex b/conf/invoice_latex index 6a81c4c2e..34ae4cbeb 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}{\small{\begin{tabular}{llllll}';#cheating at 6 + foreach my $ext_desc (@$ext_description) { + $ext_desc = substr($ext_desc, 0, 80) . '...' + if (length($ext_desc) > 80); + $OUT .= "$ext_desc \\\\${rowbreak}\n"; + } + $OUT .="\\end{tabular}}}\\\\${rowbreak}\n"; } }