enable CardFortress in test database, #71513
[freeside.git] / httemplate / misc / process / cust_main-import_charges.cgi
index 3ca6894..d877ad1 100644 (file)
@@ -14,9 +14,10 @@ my $fh = $cgi->upload('csvfile');
 #warn $fh;
 
 my $error = defined($fh)
-  ? FS::cust_main::batch_charge( {
+  ? FS::cust_main::Import_Charges::batch_charge( {
       filehandle => $fh,
-      'fields'    => [qw( custnum amount pkg )],
+      'agentnum' => scalar($cgi->param('agentnum')),
+      'format'   => scalar($cgi->param('format')),
     } )
   : 'No file';