- $error=$cust_main->collect('invoice_time'=>$time,
- 'batch_card' => $opt_i ? 'no' : 'yes',
- );
- warn "Error collecting from customer #" . $cust_main->gcustnum. ":$error"
+ $error=$cust_main->collect( 'invoice_time' => $time);
+ warn "Error collecting from customer #" . $cust_main->custnum. ":$error"