planet telecom rate import, RT#83146
[freeside.git] / conf / quotation_html
index 7d69205..44164b6 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>'.
 
       foreach my $line ( @total_items ) {
 
+        # in the quotation logic, we specifically tag the total line
+        # instead of using "the second one from the bottom"
         $style .= 'border-bottom: 3px solid #000000;'
-          if ++$linenum == scalar(@total_items) - ( $balance_due_below_line ? 1 : 0 );
+          if $line->{break_after};
 
         $OUT .=
           '<tr class="invoice_totaldesc">';