emt('Customer'),
emt('Confidence'),
emt('Close date'),
+ emt('Description')
],
'fields' => [
'quotationnum',
$prospect_main ? $prospect_main->name : '';
},
sub { my $cust_main = shift->cust_main;
- $cust_main ? $cust_main->name : '';
+ $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' => [
'',
'confidence',
'close_date',
+ 'quotation_description'
],
'align' => 'rrrrllrr', #.FS::UI::Web::cust_aligns(),
'links' => [
$cust_link,
$link,
$link,
+ $link,
#( map { $_ ne 'Cust. Status' ? $cust_link : '' }
# FS::UI::Web::cust_header()
#),