From 84bd1a42758d23b5068f664bad602664954ddf83 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Wed, 4 Feb 2015 21:39:12 -0800 Subject: allow fees to be grouped with taxes on the invoice, #32223 --- conf/invoice_latex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'conf/invoice_latex') 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}) { -- cgit v1.2.1