#status in the reseller scenario
$result{'status'} = substr($cust_pkg->ucfirst_status,0,1);
+ $result{'status'} = 'A' if $result{'status'} eq 'N';
# find "outbound service" y/n
my @cust_pkg = $cust_main->cust_pkg;
return {
'custnum' => $cust_main->custnum,
- 'name' => $cust_main->name,
+ 'name' => ( $svc_pbx->title || $cust_main->name ),
'email' => $cust_main->invoicing_list_emailonly_scalar,
#'agentnum' => $cust_main->agentnum,
#'agent' => $cust_main->agent->agent,
tie my %hash, 'Tie::RefHash';
%hash = ( $cust_pkg => \@svc );
#msgcat
- $error = $cust_main->order_pkgs( \%hash, '', 'noexport' => 1 );
+ $error = $cust_main->order_pkgs( \%hash, 'noexport' => 1 );
return { 'error' => $error } if $error;
# currently they're using this in the reseller scenario, so don't