+ #status in the reseller scenario
+ $result{'status'} = substr($cust_pkg->ucfirst_status,0,1);
+
+ # find "outbound service" y/n
+ my @cust_pkg = $cust_main->cust_pkg;
+ #XXX what about outbound service per-reseller ?
+ my $conf = new FS::Conf;
+ my %outbound_pkgs = map { $_=>1 } $conf->config('mc-outbound_packages');
+ $result{'outbound_service'} =
+ scalar( grep { $outbound_pkgs{ $_->pkgpart }
+ && !$_->get('cancel')
+ }
+ @cust_pkg
+ )
+ ? 1 : 0;
+
+ # find "good till" date/time stamp (this package)
+ $result{'good_till'} = time2str('%c', $cust_pkg->bill || time );