#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';