summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorivan <ivan>2009-11-19 09:47:02 +0000
committerivan <ivan>2009-11-19 09:47:02 +0000
commit457cf05ffc31212de613249c95a8ab05aed34f47 (patch)
tree0ce85765bb021c52d3c3b572a68afc49879c1a57 /bin
parent8efd6f2dd2b81f42fdd573c3a194dd0eb6e28206 (diff)
proper cdr_batch table, RT#6386
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cdr-transnexus.import8
-rwxr-xr-xbin/cdr.http_and_import8
-rw-r--r--bin/cdr.import6
3 files changed, 11 insertions, 11 deletions
diff --git a/bin/cdr-transnexus.import b/bin/cdr-transnexus.import
index 9686f7d2f..b9fe41ab1 100755
--- a/bin/cdr-transnexus.import
+++ b/bin/cdr-transnexus.import
@@ -66,10 +66,10 @@ foreach my $dir ( @$lsdir ) {
warn "Processing $filename\n" if $opt_v;
my $error = FS::cdr::batch_import( {
- 'file' => "$cachedir/$filename",
- 'format' => $format,
- 'params' => { 'cdrbatch' => $filename, },
- 'empty_ok' => 1,
+ 'file' => "$cachedir/$filename",
+ 'format' => $format,
+ 'batch_namevalue' => $filename,
+ 'empty_ok' => 1,
} );
die $error if $error;
diff --git a/bin/cdr.http_and_import b/bin/cdr.http_and_import
index 5637fa526..8910eece6 100755
--- a/bin/cdr.http_and_import
+++ b/bin/cdr.http_and_import
@@ -85,10 +85,10 @@ foreach my $file ( @files ) {
warn "Processing $filename\n" if $opt_v;
my $error = FS::cdr::batch_import( {
- 'file' => "$cachedir/$filename",
- 'format' => $format,
- 'params' => { 'cdrbatch' => $filename },
- 'empty_ok' => 1,
+ 'file' => "$cachedir/$filename",
+ 'format' => $format,
+ 'batch_namevalue' => $filename,
+ 'empty_ok' => 1,
} );
die $error if $error;
diff --git a/bin/cdr.import b/bin/cdr.import
index a17417b85..36266efbf 100644
--- a/bin/cdr.import
+++ b/bin/cdr.import
@@ -16,9 +16,9 @@ my $format = shift or die &usage;
my $file = shift;
my $error = FS::cdr::batch_import( {
- 'file' => $file,
- 'format' => $format,
- 'params' => { 'cdrbatch' => $file },
+ 'file' => $file,
+ 'format' => $format,
+ 'batch_namevalue' => $file,
} );
die $error if $error;