Freeside:3:Documentation:Developer/FS/cust main/Import

From Freeside
< Freeside:3:Documentation:Developer‎ | FS‎ | cust main
Revision as of 11:07, 10 April 2015 by Jeremyd (talk | contribs) (Edit via perl MediaWiki framework (1.13))

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

NAME

FS::cust_main::Import - Batch customer importing

SYNOPSIS

 use FS::cust_main::Import;

 #import
 FS::cust_main::Import::batch_import( {
   file      => $file,      #filename
   type      => $type,      #csv or xls
   format    => $format,    #extended, extended-plus_company, svc_external,
                            #extended-plus_company_and_options
                            #extended-plus_options, or svc_external_svc_phone
   agentnum  => $agentnum,
   refnum    => $refnum,
   pkgpart   => $pkgpart,
   job       => $job,       #optional job queue job, for progressbar updates
   custbatch => $custbatch, #optional batch unique identifier
 } );
 die $error if $error;

 #ajax helper
 use FS::UI::Web::JSRPC;
 my $server =
   new FS::UI::Web::JSRPC 'FS::cust_main::Import::process_batch_import', $cgi;
 print $server->process;

DESCRIPTION

Batch customer importing.

SUBROUTINES

process_batch_import
Load a batch import as a queued JSRPC job
batch_import

BUGS

Not enough documentation.

SEE ALSO

FS::cust_main, FS::cust_pkg, FS::svc_acct, FS::svc_external, FS::svc_phone

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

Around line 62:
'=item' outside of any '=over'
Around line 535:
You forgot a '=back' before '=head1'