RT# 74666 - added description field to the report sort fields and a link back to...
[freeside.git] / httemplate / search / quotation.html
index 16affeb..6a4fef0 100755 (executable)
@@ -17,6 +17,7 @@
                                            emt('Customer'),
                                            emt('Confidence'),
                                            emt('Close date'),
+                                           emt('Description')
                                          ],
                  'fields'             => [
                    'quotationnum',
                    sub { my $cust_main = shift->cust_main;
                          $cust_main ? encode_entities($cust_main->name) : '';
                        },
-                   'confidence',
-                   sub { my $quot = shift;
-                         $quot->close_date ? time2str('%b %d %Y', $quot->close_date) : '';
+                   sub { my $quotation = shift;
+                         length($quotation->confidence) ? $quotation->confidence . '%' : '';
+                       },
+                   sub { my $quotation = shift;
+                         $quotation->close_date ? time2str('%b %d %Y', $quotation->close_date) : '';
                        },
+                   'quotation_description',
                    #\&FS::UI::Web::cust_fields,
                  ],
                  'sort_fields'        => [
@@ -44,6 +48,7 @@
                    '',
                    'confidence',
                    'close_date',
+                   'quotation_description'
                  ],
                  'align' => 'rrrrllrr', #.FS::UI::Web::cust_aligns(),
                  'links' => [
@@ -55,6 +60,7 @@
                    $cust_link,
                    $link,
                    $link,
+                   $link,
                    #( map { $_ ne 'Cust. Status' ? $cust_link : '' }
                    #      FS::UI::Web::cust_header()
                    #),