% } elsif ( $sub eq 'smart_search' ) {
%
% my $string = $cgi->param('arg');
-% my @cust_main = smart_search( 'search' => $string,
-% 'no_fuzzy_on_exact' => ! $FS::CurrentUser::CurrentUser->option('enable_fuzzy_on_exact'),
-% );
+% my @cust_main = smart_search( 'search' => $string );
% my $return = [ map [ $_->custnum,
% $_->name,
% $_->balance,
-% $_->ucfirst_status,
+% $_->status_label,
% $_->statuscolor,
-% scalar($_->open_cust_bill)
+% scalar($_->open_cust_bill),
+% $_->display_custnum,
% ],
% @cust_main
% ];
[ $c->custnum,
$c->name,
$c->balance,
- $c->ucfirst_status,
+ $c->status_label,
$c->statuscolor,
- scalar($c->open_cust_bill)
+ scalar($c->open_cust_bill),
+ $c->display_custnum,
];
}
[ map [ $_->custnum,
$_->name,
$_->balance,
- $_->ucfirst_status,
+ $_->status_label,
$_->statuscolor,
scalar($_->open_cust_bill),
+ $_->display_custnum,
],
qsearch({