From 0b6bd6405107c1abf8f2c5e2bc1b569870a02309 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Sun, 18 Jan 2015 15:13:28 -0800 Subject: [PATCH] remove Ref field from quotations and invoices, RT#22232 --- conf/invoice_html | 8 ++++---- conf/invoice_latex | 4 ++-- conf/quotation_html | 4 ++-- conf/quotation_latex | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/conf/invoice_html b/conf/invoice_html index ae17da3db..e9b0bdf95 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -143,7 +143,7 @@ $OUT .= $header; $columncount = scalar(my @array = split /<\/th>'. + $OUT .= ''. '' . emt('Description') . ''. ( $unitprices ? '' . emt('Unit Price') . ''. @@ -172,9 +172,9 @@ } $OUT .= ' '; - if ( $line->{'ref'} ne $lastref ) { - $OUT .= $line->{'ref'}; - } + #if ( $line->{'ref'} ne $lastref ) { + # $OUT .= $line->{'ref'}; + #} $OUT .= ' '. $line->{'description'}. ''; if ( $unitprices ) { diff --git a/conf/invoice_latex b/conf/invoice_latex index 99d12d5c7..822afcbdd 100644 --- a/conf/invoice_latex +++ b/conf/invoice_latex @@ -176,7 +176,7 @@ \newcommand{\FShead}{ \hline \rule{0pt}{2.5ex} - \makebox[1.4cm]{\textbf{Ref}} & + \makebox[1.4cm]{} & \multicolumn{\FSdescriptioncolumncount}{l}{\makebox[\FSdescriptionlength][l]{\textbf{[@-- emt('Description') --@]}}}& \FSunitcolumns \makebox[1.6cm][r]{\textbf{[@-- emt('Amount') --@]}} \\ @@ -332,7 +332,7 @@ $OUT .= &{$section->{description_generator}}($line); } else { $OUT .= '\FSdesc'. - '{' . ( $line->{'ref'} ne $lastref ? $line->{'ref'} : '' ) . '}'. + '{}'. #'{' . ( $line->{'ref'} ne $lastref ? $line->{'ref'} : '' ) . '}'. '{' . $line->{'description'} . '}' ; if ( $unitprices and length($line->{'unit_amount'}) ) { # then show the unit amount and quantity diff --git a/conf/quotation_html b/conf/quotation_html index 7d6920533..a05bb60b8 100644 --- a/conf/quotation_html +++ b/conf/quotation_html @@ -129,7 +129,7 @@ $OUT .= $header; $columncount = scalar(my @array = split /<\/th>'. + $OUT .= ''. '' . emt('Description') . ''. ( $unitprices ? '' . emt('Unit Price') . ''. @@ -156,7 +156,7 @@ '">'. ''. ( $line->{'ref'} ne $lastref - ? $line->{'preref_html'}. $line->{'ref'} + ? $line->{'preref_html'} #. $line->{'ref'} : '' ). ''. diff --git a/conf/quotation_latex b/conf/quotation_latex index d56a7fbdc..7ebc38d75 100644 --- a/conf/quotation_latex +++ b/conf/quotation_latex @@ -171,7 +171,7 @@ \newcommand{\FShead}{ \hline \rule{0pt}{2.5ex} - \makebox[1.4cm]{\textbf{Ref}} & + \makebox[1.4cm]{} & \multicolumn{\FSdescriptioncolumncount}{l}{\makebox[\FSdescriptionlength][l]{\textbf{[@-- emt('Description') --@]}}}& \FSunitcolumns \makebox[1.6cm][r]{\textbf{[@-- emt('Amount') --@]}} \\ @@ -313,7 +313,7 @@ $OUT .= &{$section->{description_generator}}($line); } else { $OUT .= '\FSdesc'. - '{' . ( $line->{'ref'} ne $lastref ? $line->{'ref'} : '' ) . '}'. + '{}'. #'{' . ( $line->{'ref'} ne $lastref ? $line->{'ref'} : '' ) . '}'. '{' . $line->{'description'} . '}' . '{' . ( $unitprices ? $line->{'unit_amount'} : '' ) . '}'. '{' . ( $unitprices ? $line->{'quantity'} : '' ) . '}' . -- 2.11.0