Difference between revisions of "Freeside:3:Documentation:Developer/FS/cdr/Import"

From Freeside
Jump to: navigation, search
(Edit via perl MediaWiki framework (1.13))
(No difference)

Revision as of 13:41, 27 June 2014

NAME

FS::cdr::Import - CDR importing

SYNOPSIS

 use FS::cdr::Import;

 FS::cdr::Import->dbi_import(
   'dbd'         => 'mysql', #Pg, Sybase, etc.
   'table'       => 'TABLE_NAME',
   'primary_key' => 'BILLING_ID',
   'column_map'  => { #freeside => remote_db
     'freeside_column' => 'remote_db_column',
     'freeside_column' => sub { my $row = shift; $row->{remote_db_column}; },
   },
 );

DESCRIPTION

CDR importing

CLASS METHODS

do_cli_import

BUGS

Not everything has been refactored out of the various bin/cdr-*.import scripts, let alone other places.

Sparse documentation.

SEE ALSO

FS::cdr

POD ERRORS

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

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