remove Ref field from quotations and invoices, RT#22232
authorIvan Kohler <ivan@freeside.biz>
Sun, 18 Jan 2015 23:13:30 +0000 (15:13 -0800)
committerIvan Kohler <ivan@freeside.biz>
Sun, 18 Jan 2015 23:13:30 +0000 (15:13 -0800)
conf/invoice_html
conf/invoice_latex
conf/quotation_html
conf/quotation_latex

index ae17da3..e9b0bdf 100644 (file)
             $OUT .= $header;
             $columncount = scalar(my @array = split /<\/th><th/i, $header);
           } else {
-            $OUT .=  '<th align="center">' . emt('Ref') . '</th>'.
+            $OUT .=  '<th align="center"></th>'.
                      '<th align="left">' . emt('Description') . '</th>'.
                      ( $unitprices 
                        ? '<th align="right">' . emt('Unit Price') . '</th>'.
               }
               $OUT .= '<tr class="'.$class.'">
                        <td align="center">';
-              if ( $line->{'ref'} ne $lastref ) {
-                $OUT .= $line->{'ref'};
-              }
+              #if ( $line->{'ref'} ne $lastref ) {
+              #  $OUT .= $line->{'ref'};
+              #}
               $OUT .= '</td>
                        <td align="left">'. $line->{'description'}. '</td>';
               if ( $unitprices ) {
index 99d12d5..822afcb 100644 (file)
 \newcommand{\FShead}{\r
   \hline\r
   \rule{0pt}{2.5ex}\r
-  \makebox[1.4cm]{\textbf{Ref}} &\r
+  \makebox[1.4cm]{} &\r
   \multicolumn{\FSdescriptioncolumncount}{l}{\makebox[\FSdescriptionlength][l]{\textbf{[@-- emt('Description') --@]}}}&\r
   \FSunitcolumns\r
   \makebox[1.6cm][r]{\textbf{[@-- emt('Amount') --@]}} \\\r
           $OUT .= &{$section->{description_generator}}($line);\r
         } else {\r
           $OUT .= '\FSdesc'.\r
-                  '{' . ( $line->{'ref'} ne $lastref ? $line->{'ref'} : '' ) . '}'.\r
+                  '{}'. #'{' . ( $line->{'ref'} ne $lastref ? $line->{'ref'} : '' ) . '}'.\r
                   '{' . $line->{'description'} . '}' ;\r
           if ( $unitprices and length($line->{'unit_amount'}) ) {\r
             # then show the unit amount and quantity\r
index 7d69205..a05bb60 100644 (file)
             $OUT .= $header;
             $columncount = scalar(my @array = split /<\/th><th/i, $header);
           } else {
-            $OUT .=  '<th align="center">' . emt('Ref') . '</th>'.
+            $OUT .=  '<th align="center"></th>'.
                      '<th align="left">' . emt('Description') . '</th>'.
                      ( $unitprices 
                        ? '<th align="left">' . emt('Unit Price') . '</th>'.
                        '">'.
                        '<td align="center">'. 
                          ( $line->{'ref'} ne $lastref
-                             ? $line->{'preref_html'}. $line->{'ref'}
+                             ? $line->{'preref_html'} #. $line->{'ref'}
                              : ''
                          ).
                        '</td>'.
index d56a7fb..7ebc38d 100644 (file)
 \newcommand{\FShead}{\r
   \hline\r
   \rule{0pt}{2.5ex}\r
-  \makebox[1.4cm]{\textbf{Ref}} &\r
+  \makebox[1.4cm]{} &\r
   \multicolumn{\FSdescriptioncolumncount}{l}{\makebox[\FSdescriptionlength][l]{\textbf{[@-- emt('Description') --@]}}}&\r
   \FSunitcolumns\r
   \makebox[1.6cm][r]{\textbf{[@-- emt('Amount') --@]}} \\\r
           $OUT .= &{$section->{description_generator}}($line);\r
         } else {\r
           $OUT .= '\FSdesc'.\r
-                  '{' . ( $line->{'ref'} ne $lastref ? $line->{'ref'} : '' ) . '}'.\r
+                  '{}'. #'{' . ( $line->{'ref'} ne $lastref ? $line->{'ref'} : '' ) . '}'.\r
                   '{' . $line->{'description'} . '}' .\r
                   '{' . ( $unitprices ? $line->{'unit_amount'} : '' ) . '}'.\r
                   '{' . ( $unitprices ? $line->{'quantity'} : ''  ) . '}' .\r