X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FMaestro.pm;h=399e7406f9d6bebf2f41822c8c00f7d631d86934;hb=5af515ac6bdc6ff88860c618207660eac48c276a;hp=84f278c2f62968a22ca85e0289f831b3654f9fdd;hpb=ee1618742c61507c09d8ed406d0608351c8c1404;p=freeside.git diff --git a/FS/FS/Maestro.pm b/FS/FS/Maestro.pm index 84f278c2f..399e7406f 100644 --- a/FS/FS/Maestro.pm +++ b/FS/FS/Maestro.pm @@ -116,6 +116,7 @@ sub service_status { #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; @@ -135,7 +136,7 @@ sub service_status { 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, @@ -218,7 +219,7 @@ sub order_pkg { 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