X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=conf%2Finvoice_latex;h=40ec7031337ab516732ffcc4a0885f6cba80099e;hb=60f71e8b94fcd4403ad59c0508de59f90eb6edc5;hp=822afcbddea496db1c81906f68530c536c65ce84;hpb=745e36b35b36607f450d16944469f52e362bf934;p=freeside.git diff --git a/conf/invoice_latex b/conf/invoice_latex index 822afcbdd..40ec70313 100644 --- a/conf/invoice_latex +++ b/conf/invoice_latex @@ -327,12 +327,12 @@ # Don't break-up small packages. my $rowbreak = @$ext_description < 5 ? '*' : ''; - $OUT .= "\\hline\n" if ($line->{'ref'} && $line->{'ref'} ne $lastref); + $OUT .= "\\hline\n" if (($line->{'ref'} || 0) ne $lastref); if ($section->{description_generator}) { $OUT .= &{$section->{description_generator}}($line); } else { $OUT .= '\FSdesc'. - '{}'. #'{' . ( $line->{'ref'} ne $lastref ? $line->{'ref'} : '' ) . '}'. + '{}'. '{' . $line->{'description'} . '}' ; if ( $unitprices and length($line->{'unit_amount'}) ) { # then show the unit amount and quantity @@ -345,7 +345,7 @@ } $OUT .= '{\\dollar' . $line->{'amount'} . "}${rowbreak}\n"; } - $lastref = $line->{'ref'}; + $lastref = $line->{'ref'} || 0; foreach my $ext_desc (@$ext_description) { if ($section->{extended_description_generator}) {