diff options
author | Mark Wells <mark@freeside.biz> | 2015-02-04 21:39:12 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-02-04 21:39:12 -0800 |
commit | 84bd1a42758d23b5068f664bad602664954ddf83 (patch) | |
tree | 07a4e6d2184512c0190a6902bcf1fece87203830 /conf/invoice_latex | |
parent | 553e304b45d3f8467c43754ad2e15d01758ac1fe (diff) |
allow fees to be grouped with taxes on the invoice, #32223
Diffstat (limited to 'conf/invoice_latex')
-rw-r--r-- | conf/invoice_latex | 6 |
1 files changed, 3 insertions, 3 deletions
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}) {
|