support importing charges by agent_custid
[freeside.git] / httemplate / misc / process / cust_main-import_charges.cgi
index 3ca6894..bda3e3b 100644 (file)
@@ -16,7 +16,8 @@ my $fh = $cgi->upload('csvfile');
 my $error = defined($fh)
   ? FS::cust_main::batch_charge( {
       filehandle => $fh,
-      'fields'    => [qw( custnum amount pkg )],
+      'agentnum' => scalar($cgi->param('agentnum')),
+      'format'   => scalar($cgi->param('format')),
     } )
   : 'No file';