projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
somehow rc install wound up without any data
[freeside.git]
/
bin
/
cdr.sftp_and_import
diff --git
a/bin/cdr.sftp_and_import
b/bin/cdr.sftp_and_import
index
57d4e87
..
79e743f
100755
(executable)
--- a/
bin/cdr.sftp_and_import
+++ b/
bin/cdr.sftp_and_import
@@
-16,8
+16,8
@@
use FS::cdr;
# parse command line
###
# parse command line
###
-use vars qw( $opt_e $opt_d $opt_
u $opt_
v );
-getopts('e:d:
u:
v');
+use vars qw( $opt_e $opt_d $opt_v );
+getopts('e:d:v');
$opt_e ||= 'csv';
#$opt_e = ".$opt_e" unless $opt_e =~ /^\./;
$opt_e ||= 'csv';
#$opt_e = ".$opt_e" unless $opt_e =~ /^\./;
@@
-64,7
+64,7
@@
foreach my $file ( @$ls ) {
my $error = FS::cdr::batch_import( {
'file' => "$cachedir/$filename"
'format' => $format,
my $error = FS::cdr::batch_import( {
'file' => "$cachedir/$filename"
'format' => $format,
- '
cdrbatch' => $filename
,
+ '
params' => { 'cdrbatch' => $filename, }
,
'empty_ok' => 1,
} );
die $error if $error;
'empty_ok' => 1,
} );
die $error if $error;